Returns structured tool invocation and inference events for a running agent. Container events (shell, filesystem, runtime) come from the JSONL event log. Inference events (model_usage) are merged from the database with owner scoping. With follow=true, returns an SSE stream with initial inference backfill and 3-second polling for new inference rows alongside real-time container events. Without follow, returns a merged JSON array sorted by (timestamp, id). Scoped to ownership — users see own agents and own inference rows only.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Number of tail events
If "true", stream events via SSE
true, false Event output (JSON array or SSE stream)
Event ID. Container events use UUID format. Inference events use "inference-
Event type. Container events use command_start/complete, file_*, etc. Inference events use inference_complete for success, or inference_
command_start, command_complete, file_read, file_write, directory_list, identity_read, health_check, inference_complete, inference_error, inference_rate_limited, inference_budget_exceeded, inference_client_disconnect Tool category. Inference events always have tool=inference.
shell, filesystem, runtime, identity, health, inference Truncated human-readable input (max 200 chars). For inference events, formatted as "model_name (request_type)".
Metadata-only result summary. For container events: exit codes, byte counts. For inference events: "input_tokens+output_tokens tokens, $cost, latency_ms". Never contains raw output or prompt/completion content.
Additional structured data. For inference events, contains: model_name (string), request_type (string), status (string), input_tokens (integer), output_tokens (integer), cost_usd (number). No prompt or completion content is included.