Skip to content
Docs
GitHub

Event Reference

All Everruns event types, with schemas and SSE examples for the common ones: input, output, tool, lifecycle, and error events.

21 min readEdit on GitHub

This page lists every event type in the Everruns event protocol and documents the schema of the most common ones. Types without a section below are listed in the table with a short description.

Event typeDescription
input.messageUser message submitted to the session.
output.message.startedAssistant message started.
output.message.deltaStreaming chunk of assistant text.
output.message.completedAssistant message finished and persisted.
conversation.messageAn agent that uses explicit communication sent a message with send_message.
output.message.replacedClients discard streamed text for the turn and show a replacement; the next output.message.completed carries it.
turn.startedTurn began.
turn.completedTurn finished successfully.
turn.failedTurn failed with an error.
turn.completion_checkedA finishing turn was reviewed; says whether it finished or continued automatically.
turn.credit_shortfallThe provider refused a request for lack of credits; says whether the turn retried smaller, waits for credits, resumed, or gave up.
turn.sealedTurn stopped without success or error (for example repeated crash-reclaims or exhausted work budget); carries a reason.
turn.cancelledTurn cancelled by the user.
reason.startedLLM inference step began.
reason.completedLLM inference step finished.
reason.recoveredA reason step was recovered after a failure.
reason.thinking.startedModel thinking started.
reason.thinking.deltaStreaming chunk of model thinking.
reason.thinking.completedModel thinking finished.
reason.itemProvider reasoning artifact (opaque or encrypted items plus safe summary text).
act.startedTool execution phase began.
act.completedTool execution phase finished.
tool.startedA tool call began.
tool.completedA tool call finished.
tool.progressProgress update from a running tool.
tool.output.deltaStreaming chunk of tool output.
tool.call_requestedA client-side tool call is waiting for a result from the client.
tool.call_repairedA malformed tool call was repaired, or repair was attempted, by the tool_call_repair capability.
tool.hosted_callA provider-executed (hosted) tool call changed state.
tool.nested_callA tool a shell script called through tools (Tools in Shell) finished, was refused, or stopped the script for approval. Carries the parent bash call id.
transcript.repairedThe conversation transcript was repaired before a provider request.
capability.usageUsage of a capability by the agent.
llm.generationOne LLM call: model, usage, and timing.
session.startedSession created.
session.activatedSession started working on a turn.
session.idledSession returned to idle.
session.title.updatedSession title changed.
session.model.changedModel override differs from the previous turn’s.
sandbox.instance_lostManaged Sandbox compute disappeared and will be replaced.
sandbox.recoveredManaged Sandbox compute was replaced and its durable workspace restored.
environment.instance_lostLegacy compatibility name for sandbox.instance_lost.
environment.recoveredLegacy compatibility name for sandbox.recovered.
timer.setThe session set a timer, such as a schedule.
timer.firedA timer’s occurrence was delivered to the session.
timer.cancelledA timer will not fire again.
task.createdSession task created.
task.updatedSession task changed.
task.message.sentMessage sent to a session task.
task.message.receivedMessage received from a session task.
context.compactingContext compaction started.
context.compactedContext compaction installed a summary.
context.compaction.skippedA compaction evaluation ran but installed nothing.
context.compaction.failedA compaction attempt errored before installing.
dreaming.activityBackground Memory consolidation status, note count, model, usage, and cost; excludes evidence and generated notes. See Dreaming.
file.writtenA session file was written.
budget.warningBudget crossed its warning threshold.
budget.pausedBudget paused the session.
budget.exhaustedBudget has no room left.
budget.resumedBudget resumed.
voice.session.startedVoice session started.
voice.input_transcript.deltaStreaming chunk of the user’s speech transcript.
voice.input_transcript.completedUser’s speech transcript finished.
voice.output_transcript.deltaStreaming chunk of the assistant’s speech transcript.
voice.output_transcript.completedAssistant’s speech transcript finished.
voice.session.endedVoice session ended.
voice.session.failedVoice session failed.
voice.output.interruptedThe caller talked over a spoken answer; carries what was heard and what was dropped.

Emitted when a user message is submitted to the session.

FieldTypeDescription
messageMessageThe user message object
{
"type": "input.message",
"data": {
"message": {
"id": "message_...",
"role": "user",
"content": [{"type": "text", "text": "Hello!"}],
"created_at": "2024-01-15T10:30:00.000Z"
}
}
}

Emitted when the LLM starts generating a response. This marks the start of generation, not model reasoning: reasoning has its own events (see Reasoning Events) and its own channel.

FieldTypeDescription
turn_idstringTurn ID this output belongs to
modelstring?Optional model name being used
phasestring?Best-effort phase hint: commentary or final_answer. Absent means unclassified, never “reasoning”.
{
"type": "output.message.started",
"data": {
"turn_id": "turn_...",
"model": "gpt-6.1-sol"
}
}

Incremental text update during LLM generation. Events are batched (~100ms).

FieldTypeDescription
turn_idstringTurn ID this delta belongs to
deltastringNew text since last delta
accumulatedstringTotal text so far
{
"type": "output.message.delta",
"data": {
"turn_id": "turn_...",
"delta": "Hello",
"accumulated": "Hello"
}
}

Emitted when the agent response is complete.

FieldTypeDescription
messageMessageThe complete agent message
metadataModelMetadata?Model information
usageTokenUsage?Token usage statistics

message.phase is authoritative for whether this message is intermediate commentary or the turn’s final_answer, and message.phase_source says whether the provider reported that phase (provider) or the runtime inferred it from tool-call presence (derived). Reasoning artifacts appear as reasoning content parts inside message.content, in the order the provider emitted them.

{
"type": "output.message.completed",
"data": {
"message": {
"id": "message_...",
"role": "assistant",
"content": [{"type": "text", "text": "Hello! How can I help?"}]
},
"usage": {
"input_tokens": 50,
"output_tokens": 25
}
}
}

Emitted when an agent that uses explicit communication sends a message with the send_message tool. For these agents this event, not output.message.completed, carries what the agent said: their assistant text is recorded as output.message.completed with message.phase: "commentary" and is working notes, not a reply.

FieldTypeDescription
message_idstringIdentifier of the sent message
textstringThe message as the agent wrote it, in Markdown
tool_call_idstringThe send_message call that sent it
deliveryobject?Present only when an external platform accepted the message (for example a Slack thread)
delivery.platformstringDestination platform, such as slack
delivery.channelstringPlatform channel or conversation identifier
delivery.message_refstringPlatform message identifier

When the conversation is the session itself (web chat, API, A2A, AG-UI, MCP, FCP), delivery is absent and this event is the delivery.

{
"type": "conversation.message",
"data": {
"message_id": "message_...",
"text": "The report is ready. Revenue grew 12% quarter over quarter.",
"tool_call_id": "call_abc123",
"delivery": {
"platform": "slack",
"channel": "C0123456789",
"message_ref": "1712345678.000200"
}
}
}

Emitted when a turn begins execution.

FieldTypeDescription
turn_idstringTurn identifier
input_message_idstringMessage that triggered this turn
input_contentstring?Optional input content preview
{
"type": "turn.started",
"data": {
"turn_id": "turn_...",
"input_message_id": "message_...",
"input_content": "Hello!"
}
}

Emitted when a turn completes successfully.

FieldTypeDescription
turn_idstringTurn identifier
iterationsintegerNumber of reason-act iterations
duration_msinteger?Duration in milliseconds
usageTokenUsage?Aggregated token usage
input_contentstring?Optional input content
final_message_idstring?Canonical final assistant message ID
final_answer_previewstring?Bounded final answer preview
time_to_first_token_msinteger?First-token latency
tool_call_countinteger?Completed tool-call count
llm_call_countinteger?LLM generation count
issue_countinteger?Failed tool calls the turn recovered from. The turn still succeeded; see Issues and errors
statusstring?Optional completion status
stop_reasonstring?How the final model call ended (stop, length, content_filter, …)
{
"type": "turn.completed",
"data": {
"turn_id": "turn_...",
"iterations": 3,
"duration_ms": 1500,
"usage": {
"input_tokens": 500,
"output_tokens": 200
},
"final_message_id": "message_...",
"final_answer_preview": "Done.",
"time_to_first_token_ms": 120,
"tool_call_count": 2,
"llm_call_count": 3,
"issue_count": 0,
"status": "completed",
"stop_reason": "stop"
}
}

Emitted when a turn that was about to finish is reviewed by the agent’s completion_check setting. When action is continued, an input.message with metadata everruns_origin: "turn_continuation" follows in the same turn, and the turn keeps going.

FieldTypeDescription
turn_idstringTurn identifier
verdictstring?achieved, in_progress or blocked; absent when the review failed
reasonstringThe review’s short reason, or the failure
actionstringfinished, continued, budget_exhausted or review_failed
continuations_usedintegerAutomatic continuations this turn has used, including this one
max_continuationsintegerContinuations the turn may use
tokens_usedintegerTokens the turn’s continuations have used
elapsed_msintegerTime since the first continuation
continuation_message_idstring?The continuation input, when action is continued
{
"type": "turn.completion_checked",
"data": {
"turn_id": "turn_...",
"verdict": "in_progress",
"reason": "The review was announced but never submitted.",
"action": "continued",
"continuations_used": 1,
"max_continuations": 6,
"tokens_used": 0,
"elapsed_ms": 0,
"continuation_message_id": "message_..."
}
}

Emitted when the provider refuses a request because the account cannot pay for it (provider_quota_exhausted), once per decision the runtime makes about it. When the balance still covers at least 4,096 output tokens, the same request is retried once with max output tokens lowered to what it covers (shrunk). Otherwise the turn fails and a check for credits runs every minute for up to an hour, as a scheduled run of the session that reads the provider balance without a model call (wait_started, then still_waiting per check). When credits are back the work continues (resumed); when the hour runs out the turn fails with provider_quota_exhausted (gave_up).

FieldTypeDescription
turn_idstringTurn identifier
actionstringshrunk, wait_started, still_waiting, resumed or gave_up
requested_max_tokensinteger?Max output tokens the refused request asked for, when the provider said
affordable_tokensinteger?Output tokens the balance covered, when the provider said
max_tokensinteger?Max output tokens of the smaller retry (shrunk)
wait_untilstring?When the wait ends at the latest (RFC 3339)
next_check_atstring?When the next check runs, when one was scheduled
balance_checkedboolean?true when a check read the provider balance (OpenRouter); false when the provider has no balance API and the request itself was the check
{
"type": "turn.credit_shortfall",
"data": {
"turn_id": "turn_...",
"action": "wait_started",
"requested_max_tokens": 65536,
"affordable_tokens": 283,
"wait_until": "2026-11-03T15:04:05Z",
"next_check_at": "2026-11-03T14:05:05Z"
}
}

Emitted when a turn fails with an error. A failed turn is always an error: the work stopped.

FieldTypeDescription
turn_idstringTurn identifier
errorstringError message
error_codestring?Optional error code
{
"type": "turn.failed",
"data": {
"turn_id": "turn_...",
"error": "The model provider is rate limiting requests. Please try again shortly.",
"error_code": "provider_rate_limited"
}
}

Emitted when a turn is cancelled by the user.

FieldTypeDescription
turn_idstringTurn identifier
reasonstring?Cancellation reason
usageTokenUsage?Usage before cancellation
{
"type": "turn.cancelled",
"data": {
"turn_id": "turn_...",
"reason": "User requested",
"usage": {
"input_tokens": 100,
"output_tokens": 50
}
}
}

Model reasoning, as distinct from the reason.started / reason.completed lifecycle events further down, which mark an LLM inference step in the reason/act loop and are unrelated to whether the model reasoned.

These events are emitted by models that expose reasoning (Anthropic Claude with thinking enabled, OpenAI GPT-5.x and o-series with reasoning effort configured, Gemini with a thinking budget, and Chat Completions models that return reasoning_content). Everything here belongs to the reasoning channel and must never be rendered as assistant text.

Emitted when extended thinking begins.

FieldTypeDescription
turn_idstringTurn ID
modelstring?Model name
{
"type": "reason.thinking.started",
"data": {
"turn_id": "turn_...",
"model": "claude-4-opus"
}
}

Streams incremental thinking content.

FieldTypeDescription
turn_idstringTurn ID
deltastringNew thinking text
accumulatedstringTotal thinking so far
{
"type": "reason.thinking.delta",
"data": {
"turn_id": "turn_...",
"delta": "Let me think about this...",
"accumulated": "Let me think about this..."
}
}

Emitted when extended thinking completes.

FieldTypeDescription
turn_idstringTurn ID
thinkingstringComplete thinking content
{
"type": "reason.thinking.completed",
"data": {
"turn_id": "turn_...",
"thinking": "I need to consider the user's request carefully..."
}
}

Emitted when one reasoning artifact completes. One event per provider reasoning block, in emission order.

Carries identity and safe summary text only. The opaque payloads that make the artifact replayable — provider signatures and encrypted reasoning context — are deliberately excluded: they are replay state, not content, and never appear in events or on any API surface.

FieldTypeDescription
turn_idstringTurn ID this artifact belongs to
providerstringProvider that produced it (anthropic, openai, google)
modelstring?Model reported by the provider
item_idstringProvider-assigned identifier, when the provider issues one
summarystring[]Provider-curated summary segments. Never raw chain-of-thought.
token_countinteger?Reasoning tokens attributed to this artifact
{
"type": "reason.item",
"data": {
"turn_id": "turn_...",
"provider": "openai",
"model": "gpt-6.1-sol",
"item_id": "rs_68a1f...",
"summary": ["Checking the build logs before answering."],
"token_count": 412
}
}

These events mark steps of the reason/act execution loop. reason.* here means “the LLM inference step”, not model reasoning — for that see Reasoning Events.

Emitted when LLM inference begins.

FieldTypeDescription
agent_idstringAgent ID
metadataModelMetadata?Model information
{
"type": "reason.started",
"data": {
"agent_id": "agent_...",
"metadata": {
"model": "gpt-6.1-sol"
}
}
}

Emitted when LLM inference completes.

FieldTypeDescription
successbooleanWhether the call succeeded
text_previewstring?First 200 chars of response
has_tool_callsbooleanWhether tools were requested
tool_call_countintegerNumber of tool calls
errorstring?Error if failed
duration_msinteger?Duration
usageTokenUsage?Token usage
{
"type": "reason.completed",
"data": {
"success": true,
"text_preview": "Hello! I can help you with...",
"has_tool_calls": false,
"tool_call_count": 0,
"duration_ms": 1200,
"usage": {
"input_tokens": 100,
"output_tokens": 50
}
}
}

Emitted when tool execution batch begins.

FieldTypeDescription
tool_callsToolCallSummary[]Tools to be executed
{
"type": "act.started",
"data": {
"tool_calls": [
{"id": "tc_1", "name": "get_weather"},
{"id": "tc_2", "name": "search_web"}
]
}
}

Emitted when tool execution batch completes.

FieldTypeDescription
completedbooleanAll tools completed
success_countintegerSuccessful tool calls
error_countintegerFailed tool calls. Each is an issue the turn carries on from, not a turn error
duration_msinteger?Total duration
{
"type": "act.completed",
"data": {
"completed": true,
"success_count": 2,
"error_count": 0,
"duration_ms": 500
}
}

Emitted when individual tool execution begins.

FieldTypeDescription
tool_callToolCallFull tool call with arguments
{
"type": "tool.started",
"data": {
"tool_call": {
"id": "tc_1",
"name": "get_weather",
"arguments": {"city": "London"}
}
}
}

Emitted when individual tool execution completes.

FieldTypeDescription
tool_call_idstringTool call ID
tool_namestringTool name
successbooleanWhether it succeeded
statusstring“success”, “error”, “timeout”, “cancelled”
resultContentPart[]?Result content
errorstring?Error message
severitystring?issue when the call failed; absent on success. See Issues and errors
duration_msinteger?Wall-clock duration
worker_thread_cpu_nsinteger?Observed worker-thread CPU during executor-future polls; absent means unknown
executed_argumentsJSON?Arguments the tool actually ran with. Present only when a pre_tool_use hook rewrote the arguments the model sent (those stay on tool.started). Values under credential-named keys such as password, access_token, or Authorization read [REDACTED], and credential-looking text inside other values (bearer tokens, common provider API keys, URL user info) is replaced with [REDACTED]. Larger than 8 KiB serialized, it is a truncated JSON string.
executed_arguments_truncatedboolean?true when executed_arguments is truncated
{
"type": "tool.completed",
"data": {
"tool_call_id": "tc_1",
"tool_name": "get_weather",
"success": true,
"status": "success",
"result": [{"type": "text", "text": "Sunny, 22°C"}],
"duration_ms": 250
}
}

Native Linux/macOS hosts measure CPU only while polling the invoked tool executor future, including clock-bracketing overhead. Async waits, hooks, child processes, separately spawned/blocking work and remote compute are outside this scope. Unsupported or failed observations are absent, not zero. This is not total tool CPU, and duration_ms remains elapsed wall time.

A failure is either an issue or an error, and the event says which:

  • Issue: the work recovered. A failed tool call goes back to the model as a result and the turn carries on. Failed tool.completed events carry "severity": "issue", and turn.completed counts them in issue_count. Show issues as warnings.
  • Error: the work stopped. turn.failed and a session task in the failed state are errors. Reserve error styling for these.

Do not infer severity from success: false alone. Failed tool.completed events recorded before severity existed omit it; read them as issues.

Full visibility into LLM API calls. Emitted after each call.

Background dreaming calls emit usage and timing with metadata.dreaming_operation_id on the event envelope. Their messages, tools, output, and captured request are empty to keep private consolidation content out of the session log.

FieldTypeDescription
messagesMessage[]Messages sent to LLM
toolsToolDefinitionSummary[]Available tools
outputLlmGenerationOutputLLM response
metadataLlmGenerationMetadataCall metadata

metadata.finish_reasons holds the normalized reason (stop, tool_calls, length, content_filter). When the call was cut off, metadata also carries provider_finish_reason (the provider’s own value, such as max_tokens) and, when non-zero, tool_calls_dropped (tool calls discarded because the response ended mid-call or their arguments were not valid JSON; they never run) and tool_calls_truncated_executed (complete calls run from a response that was cut off after them). truncation_gate is retried or failed when the output truncation policy acted on the dropped calls.

{
"type": "llm.generation",
"data": {
"messages": [...],
"tools": [{"name": "get_weather", "description": "..."}],
"output": {
"text": "Hello!",
"tool_calls": []
},
"metadata": {
"model": "gpt-6.1-sol",
"provider": "openai",
"usage": {"input_tokens": 100, "output_tokens": 50},
"duration_ms": 1200,
"time_to_first_token_ms": 150,
"success": true,
"finish_reasons": ["stop"]
}
}
}

Emitted when a session begins.

FieldTypeDescription
agent_idstringAgent ID
model_idstring?Model ID if specified
{
"type": "session.started",
"data": {
"agent_id": "agent_..."
}
}

Emitted when a session becomes active (turn started).

FieldTypeDescription
turn_idstringTurn that activated session
input_message_idstringTriggering message
{
"type": "session.activated",
"data": {
"turn_id": "turn_...",
"input_message_id": "message_..."
}
}

Emitted when a session becomes idle (turn completed).

FieldTypeDescription
turn_idstringCompleted turn
iterationsinteger?Iterations in turn
usageTokenUsage?Cumulative session usage
{
"type": "session.idled",
"data": {
"turn_id": "turn_...",
"iterations": 3,
"usage": {
"input_tokens": 1500,
"output_tokens": 800
}
}
}

Managed Sandboxes keep a durable logical workspace while their physical compute instance may be replaced. These events make that replacement visible on the session event stream. Provider process state is not restored.

Emitted after Everruns observes that a managed Sandbox’s physical compute instance is gone and before it creates a replacement.

Emitted after Everruns creates the replacement instance, restores the durable workspace, and persists the new generation.

Both events use the same payload:

FieldTypeDescription
sandbox_idstring?Durable logical Sandbox ID when hosted persistence is available.
providerstringCompute provider selected by the Sandbox Template.
previous_instance_idstringPhysical provider resource that disappeared.
current_instance_idstring?Replacement resource; present only for sandbox.recovered.
generationinteger?Current incarnation fence when hosted persistence is available.
process_state_lostbooleanAlways true; processes and memory do not survive replacement.
{
"type": "sandbox.recovered",
"data": {
"sandbox_id": "sandbox_...",
"provider": "daytona",
"previous_instance_id": "old-provider-instance",
"current_instance_id": "new-provider-instance",
"generation": 2,
"process_state_lost": true
}
}

The subagent.spawned, subagent.completed, subagent.failed, and subagent.cancelled events have been retired. The subagent flow is now modeled as Session Tasks, which emit task.* lifecycle events (task.created, task.updated, task.message.sent, task.message.received) on the parent session instead. New sessions never emit subagent.*.

These event types are no longer produced or part of the supported contract. Historical subagent.* events recorded in older session logs remain in storage, but are filtered out of the events and SSE APIs like any unsupported type, they are not returned to consumers (aggregate counters such as error_count still include them). Consumers should read task.* events going forward.

Token consumption statistics.

FieldTypeDescription
input_tokensintegerInput/prompt tokens
output_tokensintegerOutput/completion tokens
cache_read_tokensinteger?Tokens read from cache
cache_creation_tokensinteger?Tokens written to cache (Anthropic)

Information about the model used.

FieldTypeDescription
modelstringModel name (e.g., “gpt-6.1-sol”)
model_idstring?Internal model ID
provider_idstring?Internal provider ID

Compact tool call representation.

FieldTypeDescription
idstringTool call ID
namestringTool name

Full tool call with arguments.

FieldTypeDescription
idstringTool call ID
namestringTool name
argumentsobjectTool arguments (JSON)