pub enum AuditEvent {
Started {
parent_operation_id: Uuid,
model: String,
provider_model: String,
provider: AgentProvider,
context_window_tokens: u64,
max_input_tokens: u64,
context: Vec<String>,
task: String,
host: Value,
},
InferenceSubmitted {
parent_operation_id: Uuid,
round: u64,
manifest_hash: String,
estimated_input_tokens: u64,
},
ToolCall {
parent_operation_id: Uuid,
name: String,
arguments: Value,
},
ToolResult {
parent_operation_id: Uuid,
name: String,
ok: bool,
projection_accepted: bool,
result: String,
},
ProviderReceipt {
parent_operation_id: Uuid,
round: u64,
manifest_hash: String,
usage: Option<TokenUsage>,
receipt: Box<UsageReceipt>,
},
Completed {
parent_operation_id: Uuid,
model: String,
response: String,
},
}Expand description
One complete, typed audit fact selected by the subagent runtime.
Variants§
Started
Immutable starting context and resolved provider capacity.
Fields
§
provider: AgentProviderResolved provider transport.
InferenceSubmitted
Exact input identity submitted for one provider round.
Fields
ToolCall
Application tool invocation requested by the provider.
Fields
ToolResult
Complete application tool result retained for audit.
Fields
ProviderReceipt
Canonical accounting for one completed or interrupted provider round.
Fields
§
usage: Option<TokenUsage>Provider-native cumulative usage retained for exact audit detail.
§
receipt: Box<UsageReceipt>Canonical durable receipt written by the intelligence router.
Completed
Final non-empty subagent answer.
Trait Implementations§
Source§impl Clone for AuditEvent
impl Clone for AuditEvent
Source§fn clone(&self) -> AuditEvent
fn clone(&self) -> AuditEvent
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 AuditEvent
impl Debug for AuditEvent
Source§impl PartialEq for AuditEvent
impl PartialEq for AuditEvent
impl StructuralPartialEq for AuditEvent
Auto Trait Implementations§
impl Freeze for AuditEvent
impl RefUnwindSafe for AuditEvent
impl Send for AuditEvent
impl Sync for AuditEvent
impl Unpin for AuditEvent
impl UnsafeUnpin for AuditEvent
impl UnwindSafe for AuditEvent
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