Skip to main content

EventSink

Trait EventSink 

Source
pub trait EventSink: Send + Sync {
    // Required method
    fn emit(&self, event: AgentEvent);
}
Expand description

Consumer of AgentEvents (CLI, TUI, metrics, …).

Required Methods§

Source

fn emit(&self, event: AgentEvent)

Observe an event synchronously. Avoid blocking the execution task. GenerationFinished validates a draft; GenerationCommitted also confirms its history checkpoint. On a retrying failure, discard or clearly separate that draft before displaying the next attempt.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§