pub struct ToolCall {
pub id: Value,
pub name: String,
pub arguments: Map<String, Value>,
}Available on crate feature
mcp only.Expand description
A tools/call request, checked: the tool is listed and the arguments
are an object whose keys the tool declares.
Fields§
§id: ValueThe request id, to answer with.
name: StringThe tool name.
arguments: Map<String, Value>The tool arguments, empty when the call gave none.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ToolCall
impl Freeze for ToolCall
impl Move for ToolCall
impl RefUnwindSafe for ToolCall
impl Send for ToolCall
impl Sync for ToolCall
impl Unpin for ToolCall
impl UnsafeUnpin for ToolCall
impl UnwindSafe for ToolCall
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