pub struct ToolCallResult {
pub success: bool,
pub past_tense_message: StringOrMarkdown,
pub content: Option<Vec<ToolResultContent>>,
pub structured_content: Option<JsonObject>,
pub error: Option<AnyValue>,
}Expand description
Tool execution result details, available after execution completes.
Fields§
§success: boolWhether the tool succeeded
past_tense_message: StringOrMarkdownPast-tense description of what the tool did
content: Option<Vec<ToolResultContent>>Unstructured result content blocks.
This mirrors the content field of MCP CallToolResult.
structured_content: Option<JsonObject>Optional structured result object.
This mirrors the structuredContent field of MCP CallToolResult.
error: Option<AnyValue>Error details if the tool failed
Trait Implementations§
Source§impl Clone for ToolCallResult
impl Clone for ToolCallResult
Source§fn clone(&self) -> ToolCallResult
fn clone(&self) -> ToolCallResult
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 ToolCallResult
impl Debug for ToolCallResult
Source§impl<'de> Deserialize<'de> for ToolCallResult
impl<'de> Deserialize<'de> for ToolCallResult
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
Source§impl PartialEq for ToolCallResult
impl PartialEq for ToolCallResult
Source§fn eq(&self, other: &ToolCallResult) -> bool
fn eq(&self, other: &ToolCallResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallResult
impl Serialize for ToolCallResult
impl StructuralPartialEq for ToolCallResult
Auto Trait Implementations§
impl Freeze for ToolCallResult
impl RefUnwindSafe for ToolCallResult
impl Send for ToolCallResult
impl Sync for ToolCallResult
impl Unpin for ToolCallResult
impl UnsafeUnpin for ToolCallResult
impl UnwindSafe for ToolCallResult
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