Skip to content
pi-c Artifact [d94aec462d]
Login

Artifact [d94aec462d]

Artifact d94aec462d0e50fb99d337bea68050f0f7aebb01ff2203c9dc2451b3ba8b1179:


JSON events

The event lines pic --json and pic --mode rpc write to stdout, as Pi's JSON mode does. Each is one JSON object with a type.

Event When
agent_start a request starts
agent_end a request ends; status and, for a cut-short request, stopReason (such as request_cap)
agent_settled RPC mode: the request and everything it queued have finished
turn_start a reply request starts
turn_end a reply request and its tool calls have finished
message_start a message starts
message_update streamed text or thinking
message_end a message is complete
tool_execution_start a tool call starts
tool_execution_update a tool call's partial output
tool_execution_end a tool call's result
auto_retry_start a failed reply request will be retried
compaction_start a compaction starts; reason (such as lapse)
compaction_end a compaction ends
queue_update the steering and follow-up queues changed
queue_returned a queued message came back, for example because a hook blocked it
bash_execution_update a bash command's output so far
session_info_changed RPC mode: the conversation's name changed
thinking_level_changed RPC mode: the thinking level changed