pub struct ToolExecutionCompleteResult {
pub content: String,
pub contents: Vec<Value>,
pub detailed_content: Option<String>,
}Expand description
Tool execution result on success
Fields§
§content: StringConcise tool result text sent to the LLM for chat completion, potentially truncated for token efficiency
contents: Vec<Value>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.
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<'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