Skip to main content

Module session_update

Module session_update 

Source
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§

BashOutputMetadata
TaskMetadata
ToolCall
ToolCallLocation
File path + optional 1-based line number a tool call inspected or modified. Used by the chat renderer’s clickable file glyphs and by /diff to open the right file.
ToolCallUpdate
ToolCallUpdateFields
ToolOutputMetadata

Enums§

ChunkContent
Render-side chunk payload for streaming session updates (SessionUpdate::AgentMessageChunk etc.). Distinct from the wire-side crate::content::ContentBlock, which carries ToolUse, ToolResult, Thinking, and server-tool variants.
ToolCallContent
ToolCallStatus
Lifecycle state of a tool call. Unknown wire values fall through to Pending so a new CLI variant doesn’t break decode.
ToolKind
Typed tool-call category. Unknown wire values fall through to Other so 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.