pub struct ToolCallPayload {
pub call_id: ToolCallId,
pub tool_name: String,
pub arguments: Value,
}Expand description
A model-issued tool call. call_id is the kernel-generated causal key; any provider-issued identifier rides on BlockMeta::provider_call_id.
Fields§
§call_id: ToolCallIdKernel-generated causal key pairing results to this call (unique
within a single turn); provider-issued identifiers ride on
BlockMeta::provider_call_id.
tool_name: StringName of the invoked tool — the key the executor dispatches on.
arguments: ValueThe call’s arguments as a JSON value.
Trait Implementations§
Source§impl Clone for ToolCallPayload
impl Clone for ToolCallPayload
Source§fn clone(&self) -> ToolCallPayload
fn clone(&self) -> ToolCallPayload
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 ToolCallPayload
impl Debug for ToolCallPayload
Source§impl<'de> Deserialize<'de> for ToolCallPayload
impl<'de> Deserialize<'de> for ToolCallPayload
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 ToolCallPayload
impl PartialEq for ToolCallPayload
Source§impl Serialize for ToolCallPayload
impl Serialize for ToolCallPayload
impl StructuralPartialEq for ToolCallPayload
Auto Trait Implementations§
impl Freeze for ToolCallPayload
impl RefUnwindSafe for ToolCallPayload
impl Send for ToolCallPayload
impl Sync for ToolCallPayload
impl Unpin for ToolCallPayload
impl UnsafeUnpin for ToolCallPayload
impl UnwindSafe for ToolCallPayload
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