Skip to main content

What is an Activity?

An Activity is a single log entry that records something that happened during a session. Activities answer:
“What did the agent do, and in what order?”
They form a complete, inspectable timeline of a session’s execution.

Why Activities exist

Agents in production need more than a final status. You need to know:
  • When did execution start?
  • What messages did the agent produce?
  • When did it request input?
  • When was that input resolved?
  • Did it write results to a sink?
  • What state changes occurred?
Activities provide this without parsing logs, tracing calls, or instrumenting your framework.

Activity types


Activity sources

Each activity has a source indicating who created it:

Structure


Automatic activities

OpenSink creates some activities automatically:
  • session_started — when a session is created
  • session_ended — when a session status becomes completed or failed
  • input_request_created — when an input request is created
  • input_request_resolved — when an input request is resolved
You don’t need to log these yourself.

Creating activities from your agent

Your agent can log its own activities during execution:
This makes the agent’s progress visible without requiring a custom UI.

Viewing activities

Activities are listed in reverse chronological order and can be filtered by:
  • session_id — activities for a specific session
  • agent_id — activities across all sessions for an agent
  • type — only specific activity types
  • source — only system, agent, or user activities

What Activities are not

Activities are not:
  • debug logs
  • LLM traces
  • metrics or telemetry
  • a replacement for structured logging
They are high-level, meaningful events that tell you what an agent did during a session.

When to use Activities

Activities are useful when:
  • you need to understand what happened during a session
  • you want agent progress visible in the UI
  • you need an audit trail for compliance
  • debugging requires knowing the sequence of events
If your agent does something worth knowing about — log an activity.