Skip to main content

AgentEvent

Enum AgentEvent 

Source
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.

Fields

§current_round: usize
§max_rounds: usize
§

Round

One agent’s contribution in a discussion round.

Fields

§round: usize
§agent_name: String
§content: String
§

Converged

Discussion converged before reaching max_rounds.

Fields

§reason: String
§

Summary

Final synthesized summary produced by the primary agent.

Fields

§content: String
§

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).

Fields

§agent: String
§old_version: u32
§new_version: u32

Trait Implementations§

Source§

impl Debug for AgentEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.