pub struct ToolResultPart {
pub tool_call_id: ToolCallId,
pub tool_name: ToolName,
pub output: ToolResultOutput,
pub provider_options: Option<BTreeMap<String, Map<String, Value>>>,
}Expand description
The result of a tool call.
Fields§
§tool_call_id: ToolCallIdIdentifier of the tool call this result answers.
tool_name: ToolNameName of the tool.
output: ToolResultOutputThe output.
provider_options: Option<BTreeMap<String, Map<String, Value>>>Provider-specific options for this part.
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 (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 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<ToolResultPart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolResultPart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ToolResultPart> for AssistantPart
impl From<ToolResultPart> for AssistantPart
Source§fn from(part: ToolResultPart) -> Self
fn from(part: ToolResultPart) -> Self
Converts to this type from the input type.
Source§impl From<ToolResultPart> for ToolPart
impl From<ToolResultPart> for ToolPart
Source§fn from(part: ToolResultPart) -> Self
fn from(part: 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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 UnsafeUnpin 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