pub struct ProviderToolResult {
pub tool_call_id: ToolCallId,
pub tool_name: ToolName,
pub result: JsonValue,
pub is_error: bool,
pub preliminary: bool,
pub dynamic: bool,
pub provider_metadata: Option<ProviderMetadata>,
}Expand description
The result of a tool executed by the provider.
Fields§
§tool_call_id: ToolCallIdIdentifier of the tool call.
tool_name: ToolNameName of the tool.
result: JsonValueThe result value.
is_error: boolWhether the result is an error.
preliminary: boolWhether this is a preliminary result that will be superseded.
dynamic: boolWhether the tool is dynamic.
provider_metadata: Option<ProviderMetadata>Provider-specific metadata.
Trait Implementations§
Source§impl Clone for ProviderToolResult
impl Clone for ProviderToolResult
Source§fn clone(&self) -> ProviderToolResult
fn clone(&self) -> ProviderToolResult
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 ProviderToolResult
impl Debug for ProviderToolResult
Source§impl<'de> Deserialize<'de> for ProviderToolResult
impl<'de> Deserialize<'de> for ProviderToolResult
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 ProviderToolResult
impl PartialEq for ProviderToolResult
Source§impl Serialize for ProviderToolResult
impl Serialize for ProviderToolResult
impl StructuralPartialEq for ProviderToolResult
Auto Trait Implementations§
impl Freeze for ProviderToolResult
impl RefUnwindSafe for ProviderToolResult
impl Send for ProviderToolResult
impl Sync for ProviderToolResult
impl Unpin for ProviderToolResult
impl UnsafeUnpin for ProviderToolResult
impl UnwindSafe for ProviderToolResult
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