API referenceAgents APISession event types

Session event types

⚠️
Preview — this feature is being built; the design below is the spec.

A session’s history is a list of events. Events from the session describe what the agent did; events from you steer it. Each event has an id (evt_...), a type, a created_at time and, when the agent delegated work, a thread_id.

EventDirectionMeaning
status.changedfrom the sessionThe session’s status changed.
message.deltafrom the sessionA fragment of the agent’s reply as it is written.
message.completedfrom the sessionThe agent’s full reply for one message.
tool_call.startedfrom the sessionThe agent called a tool.
tool_call.progressfrom the sessionPartial output from a long-running tool, such as a command on a self-hosted runner.
tool_call.completedfrom the sessionA Syntic-run tool finished.
approval.requiredfrom the sessionA tool on the agent’s approval list wants to run.
usage.updatedfrom the sessionRunning token and cost totals after each model call.
errorfrom the sessionSomething failed inside the turn.
resource.addedfrom the sessionA file, repository or memory store was mounted into the session.
resource.removedfrom the sessionA resource was unmounted.
thread.startedfrom the sessionThe agent delegated work to a sub-agent in a new thread.
thread.completedfrom the sessionA delegate thread ended.
user.messagefrom youSay something to the agent.
user.tool_resultfrom youReturn the result of a tool your code ran.
user.approvalfrom youApprove or reject a tool call that needs approval.
user.interruptfrom youStop the current turn.
Was this page helpful?