pub struct ToolResult {
pub output: String,
pub durable_content: Option<DurableContent>,
pub is_error: bool,
pub disposition: ToolResultDisposition,
pub tokens: Option<u32>,
}Expand description
An inline tool result body. call_id lives on InlineToolResult, not here — one id, one
place.
spc_011-B-03: same name, different thing as types::message::ContentPart::ToolResult and
types::message::ToolResult — see the doc comment on the former for the full three-way
distinction. This one is the Host→Kernel execution-result wire payload (#[serde(deny_unknown_fields)],
crosses all 4 SDK bindings) — semantically “the Host is telling the Kernel a tool call
finished, here’s the result,” not “a content block being rendered into a provider request.”
output is the text projection. durable_content, when present, carries the
versioned provider-neutral blocks that the transcript and checkpoint preserve.
Fields§
§output: String§durable_content: Option<DurableContent>§is_error: bool§disposition: ToolResultDispositionWhether the executor can keep going after this result. Mandatory — see
ToolResultDisposition.
tokens: Option<u32>Trait Implementations§
Source§impl Clone for ToolResult
impl Clone for ToolResult
Source§fn clone(&self) -> ToolResult
fn clone(&self) -> ToolResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more