pub struct ExternalToolTextResultForLlm {
pub binary_results_for_llm: Option<Vec<ExternalToolTextResultForLlmBinaryResultsForLlm>>,
pub contents: Option<Vec<Value>>,
pub error: Option<String>,
pub result_type: Option<String>,
pub session_log: Option<String>,
pub text_result_for_llm: String,
pub tool_references: Option<Vec<String>>,
pub tool_telemetry: Option<HashMap<String, Value>>,
}Expand description
Expanded external tool result payload
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§binary_results_for_llm: Option<Vec<ExternalToolTextResultForLlmBinaryResultsForLlm>>Base64-encoded binary results returned to the model
contents: Option<Vec<Value>>Structured content blocks from the tool
error: Option<String>Optional error message for failed executions
result_type: Option<String>Execution outcome classification. Optional for back-compat; normalized to ‘success’ (or ‘failure’ when error is present) when missing or unrecognized.
session_log: Option<String>Detailed log content for timeline display
text_result_for_llm: StringText result returned to the model
tool_references: Option<Vec<String>>Tool references returned by a tool-search override: names of deferred tools to surface to the model. When set, the tool result is materialized as tool_reference content blocks (rather than plain text) so the model knows which deferred tools are now available.
tool_telemetry: Option<HashMap<String, Value>>Optional tool-specific telemetry
Trait Implementations§
Source§impl Clone for ExternalToolTextResultForLlm
impl Clone for ExternalToolTextResultForLlm
Source§fn clone(&self) -> ExternalToolTextResultForLlm
fn clone(&self) -> ExternalToolTextResultForLlm
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more