pub struct ToolCallRecord {
pub id: String,
pub name: String,
pub kind: String,
pub args: Value,
pub ok: bool,
pub output: Value,
}Expand description
A report-side record of one tool call (distinct from the in-conversation
ContentBlock::ToolUse): the structured output view, not the model-facing text.
Fields§
§id: StringThe tool-call id (matches the conversation’s tool_use id).
name: StringThe client-facing tool name the model called.
kind: StringThe canonical ToolKind tag for cross-pack A/B alignment (e.g. shell).
args: ValueThe arguments the model supplied.
ok: boolWhether the call succeeded.
output: ValueThe structured output of the call (the report view, not prompt_text).
Trait Implementations§
Source§impl Clone for ToolCallRecord
impl Clone for ToolCallRecord
Source§fn clone(&self) -> ToolCallRecord
fn clone(&self) -> ToolCallRecord
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 ToolCallRecord
impl Debug for ToolCallRecord
Source§impl<'de> Deserialize<'de> for ToolCallRecord
impl<'de> Deserialize<'de> for ToolCallRecord
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 ToolCallRecord
impl PartialEq for ToolCallRecord
Source§impl Serialize for ToolCallRecord
impl Serialize for ToolCallRecord
impl StructuralPartialEq for ToolCallRecord
Auto Trait Implementations§
impl Freeze for ToolCallRecord
impl RefUnwindSafe for ToolCallRecord
impl Send for ToolCallRecord
impl Sync for ToolCallRecord
impl Unpin for ToolCallRecord
impl UnsafeUnpin for ToolCallRecord
impl UnwindSafe for ToolCallRecord
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