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_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_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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalToolTextResultForLlm
impl Debug for ExternalToolTextResultForLlm
Source§impl Default for ExternalToolTextResultForLlm
impl Default for ExternalToolTextResultForLlm
Source§fn default() -> ExternalToolTextResultForLlm
fn default() -> ExternalToolTextResultForLlm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalToolTextResultForLlm
impl<'de> Deserialize<'de> for ExternalToolTextResultForLlm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExternalToolTextResultForLlm
impl RefUnwindSafe for ExternalToolTextResultForLlm
impl Send for ExternalToolTextResultForLlm
impl Sync for ExternalToolTextResultForLlm
impl Unpin for ExternalToolTextResultForLlm
impl UnsafeUnpin for ExternalToolTextResultForLlm
impl UnwindSafe for ExternalToolTextResultForLlm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more