pub struct ToolAuditRecordParams {
pub tool_call_id: String,
pub tool_name: String,
pub display_name: String,
pub tier: ToolTier,
pub requested_input: Value,
pub effective_input: Value,
pub turn: usize,
pub provenance: AuditProvenance,
pub outcome: ToolAuditOutcome,
}Expand description
Arguments for building a ToolAuditRecord via ToolAuditRecord::new.
Replaces a 9-parameter positional constructor so each field is named
at the call site — three of the positional parameters were
impl Into<String> and two were serde_json::Value, which made
positional confusion a real risk for a struct that lands in the
durable audit log.
Every field is required; the timestamp (recorded_at) is the only
value ToolAuditRecord::new fills in automatically.
Fields§
§tool_call_id: StringUnique tool call ID (from the LLM’s tool_use).
tool_name: StringWire-format tool name.
display_name: StringHuman-readable display name.
tier: ToolTierPermission tier of the tool at the moment the record was emitted.
requested_input: ValueInput as requested by the LLM (audit trail).
effective_input: ValueEffective input after SDK preparation (may differ for listen-tools).
turn: usizeTurn number this record belongs to.
provenance: AuditProvenanceProvider / model provenance for this turn’s LLM call.
outcome: ToolAuditOutcomeLifecycle outcome carrying the variant-specific payload.
Trait Implementations§
Source§impl Clone for ToolAuditRecordParams
impl Clone for ToolAuditRecordParams
Source§fn clone(&self) -> ToolAuditRecordParams
fn clone(&self) -> ToolAuditRecordParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more