pub struct ToolResultPart {
    pub tool_call_id: String,
    pub tool_name: String,
    pub content: Vec<Part>,
    pub is_error: Option<bool>,
}Expand description
A part of the message that represents the result of a tool call.
Fields§
§tool_call_id: StringThe ID of the tool call from previous assistant message.
tool_name: StringThe name of the tool that was called.
content: Vec<Part>The content of the tool result.
is_error: Option<bool>Marks the tool result as an error.
Implementations§
Trait Implementations§
Source§impl Clone for ToolResultPart
 
impl Clone for ToolResultPart
Source§fn clone(&self) -> ToolResultPart
 
fn clone(&self) -> ToolResultPart
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 ToolResultPart
 
impl Debug for ToolResultPart
Source§impl<'de> Deserialize<'de> for ToolResultPart
 
impl<'de> Deserialize<'de> for ToolResultPart
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 From<ToolResultPart> for Part
 
impl From<ToolResultPart> for Part
Source§fn from(value: ToolResultPart) -> Self
 
fn from(value: ToolResultPart) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ToolResultPart
 
impl PartialEq for ToolResultPart
Source§impl Serialize for ToolResultPart
 
impl Serialize for ToolResultPart
impl StructuralPartialEq for ToolResultPart
Auto Trait Implementations§
impl Freeze for ToolResultPart
impl RefUnwindSafe for ToolResultPart
impl Send for ToolResultPart
impl Sync for ToolResultPart
impl Unpin for ToolResultPart
impl UnwindSafe for ToolResultPart
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