pub struct ToolCallPart {
pub tool_call_id: String,
pub tool_name: String,
pub input: JsonValue,
pub provider_executed: Option<bool>,
pub dynamic: Option<bool>,
pub provider_options: Option<ProviderOptions>,
}Expand description
Tool call requested by the assistant.
Fields§
§tool_call_id: StringUnique id for matching with ToolResultPart.
tool_name: StringTool name.
input: JsonValueArguments matching the tool’s input schema.
provider_executed: Option<bool>true when the provider will execute the tool itself.
dynamic: Option<bool>true when the tool name is only known at runtime (e.g. MCP tools
proxied through a provider tool). Mirrors the dynamic field on
super::stream_part::StreamPart::ToolCall.
provider_options: Option<ProviderOptions>Provider-specific options.
Trait Implementations§
Source§impl Clone for ToolCallPart
impl Clone for ToolCallPart
Source§fn clone(&self) -> ToolCallPart
fn clone(&self) -> ToolCallPart
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 ToolCallPart
impl Debug for ToolCallPart
Source§impl<'de> Deserialize<'de> for ToolCallPart
impl<'de> Deserialize<'de> for ToolCallPart
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 ToolCallPart
impl PartialEq for ToolCallPart
Source§fn eq(&self, other: &ToolCallPart) -> bool
fn eq(&self, other: &ToolCallPart) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallPart
impl Serialize for ToolCallPart
impl StructuralPartialEq for ToolCallPart
Auto Trait Implementations§
impl Freeze for ToolCallPart
impl RefUnwindSafe for ToolCallPart
impl Send for ToolCallPart
impl Sync for ToolCallPart
impl Unpin for ToolCallPart
impl UnsafeUnpin for ToolCallPart
impl UnwindSafe for ToolCallPart
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