Expand description
Wire-side support types for streaming session events: content chunks, tool-call envelopes, tool-output metadata, plan entries.
Re-exports§
use serde::Deserialize;🔒use serde::Deserialize;🔒use serde::Serialize;🔒use serde::Serialize;🔒use serde_json::Value;🔒
Structs§
- Bash
Output Metadata - Task
Metadata - Tool
Call - Tool
Call Location - File path + optional 1-based line number a tool call inspected
or modified. Used by the chat renderer’s clickable file glyphs
and by
/diffto open the right file. - Tool
Call Update - Tool
Call Update Fields - Tool
Output Metadata
Enums§
- Chunk
Content - Render-side chunk payload for streaming session updates
(
SessionUpdate::AgentMessageChunketc.). Distinct from the wire-sidecrate::content::ContentBlock, which carriesToolUse,ToolResult,Thinking, and server-tool variants. - Tool
Call Content - Tool
Call Status - Lifecycle state of a tool call. Unknown wire values fall through
to
Pendingso a new CLI variant doesn’t break decode. - Tool
Kind - Typed tool-call category. Unknown wire values fall through to
Otherso a new CLI variant doesn’t break decode.
Functions§
- raw_
input_ 🔒carries_ content - A tool’s input is fixed at dispatch; a later update that carries no
input (
None) or an empty object{}must not clobber it.