Skip to main content

LogEventCallback

Type Alias LogEventCallback 

Source
pub type LogEventCallback = Arc<dyn Fn(&AgentLogEvent) + Send + Sync>;
Expand description

Callback invoked for each event after it has been written to the session log. Used by AgentBuilder::on_log_event / AgentBuilder::stream_events_to_stderr to give library callers live visibility without re-reading the JSONL file.

Aliased Type§

pub struct LogEventCallback { /* private fields */ }