pub struct CallToolResult {
pub content: Vec<ContentBlock>,
pub is_error: Option<bool>,
pub structured_content: Option<Value>,
pub _meta: Option<Value>,
}Expand description
The result of a CallToolRequest.
Fields§
§content: Vec<ContentBlock>The output of the tool, typically as a series of text or other content blocks. This is required.
is_error: Option<bool>An optional boolean indicating whether the tool execution resulted in an error.
structured_content: Option<Value>Optional structured output from the tool, conforming to its output_schema.
_meta: Option<Value>Optional metadata for the result.
Trait Implementations§
Source§impl Clone for CallToolResult
impl Clone for CallToolResult
Source§fn clone(&self) -> CallToolResult
fn clone(&self) -> CallToolResult
Returns a duplicate of the value. Read more
1.0.0 · 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 CallToolResult
impl Debug for CallToolResult
Source§impl<'de> Deserialize<'de> for CallToolResult
impl<'de> Deserialize<'de> for CallToolResult
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 CallToolResult
impl RefUnwindSafe for CallToolResult
impl Send for CallToolResult
impl Sync for CallToolResult
impl Unpin for CallToolResult
impl UnwindSafe for CallToolResult
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