#[non_exhaustive]pub struct ToolCallPayload {
pub tool_name: String,
pub arguments: Value,
}Expand description
A model-issued tool call. Its containing block ID is the declaration identity; provider-issued identifiers ride on BlockMeta::provider_call_id.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tool_name: StringName of the invoked tool — the key the executor dispatches on.
arguments: ValueThe call’s arguments as a JSON value.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallPayload
impl Clone for ToolCallPayload
Source§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 Forget for ToolCallPayload
impl Freeze for ToolCallPayload
impl Move 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