pub enum AgentEvent {
Progress {
current_round: usize,
max_rounds: usize,
},
Round {
round: usize,
agent_name: String,
content: String,
},
Converged {
reason: String,
},
Summary {
content: String,
},
Cancelled,
Completed,
Evolved {
agent: String,
old_version: u32,
new_version: u32,
},
}Expand description
Observability events emitted during a multi-agent discussion.
AgentEvent is a first-class output of the kernel (observability-first principle).
Callers receive a full stream of events via mpsc::Sender<AgentEvent>.
Phase 1 has exactly 6 variants. Evolved is a Phase 2 variant added in the
independent agent-kernel repository.
Variants§
Progress
Emitted at the start of each round to report overall progress.
Round
One agent’s contribution in a discussion round.
Converged
Discussion converged before reaching max_rounds.
Summary
Final synthesized summary produced by the primary agent.
Cancelled
Discussion was cancelled via CancellationToken.
Completed
Discussion finished (all rounds completed or converged).
Evolved
An agent’s SOUL.md was evolved to a new version (Phase 2).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentEvent
impl RefUnwindSafe for AgentEvent
impl Send for AgentEvent
impl Sync for AgentEvent
impl Unpin for AgentEvent
impl UnsafeUnpin for AgentEvent
impl UnwindSafe for AgentEvent
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