1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Structured audit logging for agent actions and decisions.
//!
//! Every tool call, guard check, and agent decision can be recorded as an
//! [`AuditEvent`] and persisted via pluggable backends.
//!
//! # Quick Start
//!
//! ```rust,ignore
//! use echo_agent::prelude::*;
//!
//! # fn main() -> echo_agent::error::Result<()> {
//! let agent = ReactAgentBuilder::new()
//! .model("qwen3-max")
//! .audit_logger(Arc::new(InMemoryAuditLogger::new()))
//! .build()?;
//! # Ok(())
//! # }
//! ```
//!
//! # Key Types
//!
//! | Type | Description |
//! |------|-------------|
//! | [`AuditEvent`] | A single structured audit record |
//! | [`AuditLogger`] | Trait for audit backends |
//! | [`InMemoryAuditLogger`] | In-memory logger for testing |
//! | [`FileAuditLogger`] | File-based logger for production |
/// Direct re-exports from `echo_state::audit`.
pub use file;
pub use FileAuditLogger;
pub use memory;
pub use InMemoryAuditLogger;
pub use *;