pub struct AIToolCall {
pub tool_name: String,
pub arguments: Value,
}Expand description
A tool call proposed by an AI model.
The model selects a tool name and provides arguments. The Rust core
validates this against the ToolRegistry before allowing execution.
Fields§
§tool_name: StringName of the tool the model wants to invoke.
arguments: ValueArguments provided by the model.
Trait Implementations§
Source§impl Clone for AIToolCall
impl Clone for AIToolCall
Source§fn clone(&self) -> AIToolCall
fn clone(&self) -> AIToolCall
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 AIToolCall
impl Debug for AIToolCall
Source§impl<'de> Deserialize<'de> for AIToolCall
impl<'de> Deserialize<'de> for AIToolCall
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 AIToolCall
impl RefUnwindSafe for AIToolCall
impl Send for AIToolCall
impl Sync for AIToolCall
impl Unpin for AIToolCall
impl UnsafeUnpin for AIToolCall
impl UnwindSafe for AIToolCall
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