Skip to main content

Module audit

Module audit 

Source
Expand description

Audit trail — unified execution trace, querying, export, and analytics.

Provides a complete audit system that unifies safety audit events, tool execution records, and token/cost tracking into a single queryable, exportable trace.

Structs§

Analytics
Stateless analytics engine operating over slices of execution traces.
AuditExporter
Stateless exporter capable of rendering execution traces in several formats.
AuditQuery
Filtering criteria for querying the AuditStore.
AuditStore
Persistent, capacity-bounded store of execution traces.
CostBreakdown
Aggregate cost breakdown across all models.
ExecutionTrace
The full execution history of a single task.
ModelCostEntry
Per-model cost and token breakdown.
Pattern
A detected pattern or anomaly in the audit data.
ToolUsageSummary
Summary of tool usage across a set of execution traces.
TraceEvent
A single event within an execution trace, tagged with a monotonically increasing sequence number and a wall-clock timestamp.

Enums§

AuditError
Errors that may occur during audit operations.
PatternKind
Enumeration of detectable pattern kinds.
TraceEventKind
Discriminated union of all event kinds that may appear in a trace.