pub struct ToolExecutionCompleteResult {
pub binary_results_for_llm: Option<Vec<Value>>,
pub content: String,
pub contents: Option<Vec<ToolExecutionCompleteContent>>,
pub detailed_content: Option<String>,
pub structured_content: Option<Value>,
pub ui_resource: Option<ToolExecutionCompleteUIResource>,
}Expand description
Tool execution result on success
Fields§
§binary_results_for_llm: Option<Vec<Value>>Model-facing binary results (base64 inline or size-omitted markers) sent to the LLM for this tool call
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
content: StringConcise tool result text sent to the LLM for chat completion, potentially truncated for token efficiency
contents: Option<Vec<ToolExecutionCompleteContent>>Structured content blocks (text, images, audio, resources) returned by the tool in their native format
detailed_content: Option<String>Full detailed tool result for UI/timeline display, preserving complete content such as diffs. Falls back to content when absent.
structured_content: Option<Value>Structured content (arbitrary JSON) returned verbatim by the MCP tool
ui_resource: Option<ToolExecutionCompleteUIResource>MCP Apps UI resource content for rendering in a sandboxed iframe
Trait Implementations§
Source§impl Clone for ToolExecutionCompleteResult
impl Clone for ToolExecutionCompleteResult
Source§fn clone(&self) -> ToolExecutionCompleteResult
fn clone(&self) -> ToolExecutionCompleteResult
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 ToolExecutionCompleteResult
impl Debug for ToolExecutionCompleteResult
Source§impl Default for ToolExecutionCompleteResult
impl Default for ToolExecutionCompleteResult
Source§fn default() -> ToolExecutionCompleteResult
fn default() -> ToolExecutionCompleteResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolExecutionCompleteResult
impl<'de> Deserialize<'de> for ToolExecutionCompleteResult
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 ToolExecutionCompleteResult
impl RefUnwindSafe for ToolExecutionCompleteResult
impl Send for ToolExecutionCompleteResult
impl Sync for ToolExecutionCompleteResult
impl Unpin for ToolExecutionCompleteResult
impl UnsafeUnpin for ToolExecutionCompleteResult
impl UnwindSafe for ToolExecutionCompleteResult
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