Skip to main content

AgentEventHandler

Trait AgentEventHandler 

Source
pub trait AgentEventHandler:
    Send
    + Sync
    + 'static {
    // Required method
    fn on_event(&self, event: AgentTaskEvent) -> bool;
}
Expand description

Callback trait for handling agent events in the TUI.

Implement this to map agent events to your TUI’s event system. Methods are sync — they typically just send to a channel.

Required Methods§

Source

fn on_event(&self, event: AgentTaskEvent) -> bool

Called for each agent task event. Return false to stop the loop.

Implementors§