pub struct ToolCallRecord {
pub id: String,
pub name: String,
pub kind: String,
pub args: Value,
pub ok: bool,
pub output: Value,
pub denial_reason: Option<String>,
}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).
denial_reason: Option<String>The approver’s reason, iff this call was denied by the approval seam
(ADR-0017). Set only from the approver-deny path — never reused for
other failures, and cancellation synthetics never carry it — so deny
stays structurally separable from failure and from cancel (the
codex-Declined / grok-taxonomy lesson).
Trait Implementations§
Source§impl Clone for ToolCallRecord
impl Clone for ToolCallRecord
Source§fn clone(&self) -> ToolCallRecord
fn clone(&self) -> ToolCallRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more