pub struct AuditRecord {
pub agent: String,
pub turn: usize,
pub event_type: String,
pub payload: Value,
pub usage: TokenUsage,
pub timestamp: DateTime<Utc>,
pub user_id: Option<String>,
pub tenant_id: Option<String>,
pub delegation_chain: Vec<String>,
}Expand description
One entry per decision point in an agent run.
Records LLM responses, tool calls, tool results, run completion/failure, and guardrail denials with full (untruncated) payloads.
Fields§
§agent: String§turn: usize§event_type: String§payload: Value§usage: TokenUsage§timestamp: DateTime<Utc>§user_id: Option<String>User ID of the authenticated user who triggered this action.
tenant_id: Option<String>Tenant ID for multi-tenant isolation.
delegation_chain: Vec<String>RFC 8693 delegation chain: [actor1, actor2, …] from outermost to innermost.
Trait Implementations§
Source§impl Clone for AuditRecord
impl Clone for AuditRecord
Source§fn clone(&self) -> AuditRecord
fn clone(&self) -> AuditRecord
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 AuditRecord
impl Debug for AuditRecord
Source§impl<'de> Deserialize<'de> for AuditRecord
impl<'de> Deserialize<'de> for AuditRecord
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
Auto Trait Implementations§
impl Freeze for AuditRecord
impl RefUnwindSafe for AuditRecord
impl Send for AuditRecord
impl Sync for AuditRecord
impl Unpin for AuditRecord
impl UnsafeUnpin for AuditRecord
impl UnwindSafe for AuditRecord
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