Skip to main content

AgentEvent

Enum AgentEvent 

Source
pub enum AgentEvent {
Show 26 variants RunStarted { run_id: RunId, task: String, ts: DateTime<Utc>, }, PhaseStarted { run_id: RunId, phase_id: PhaseId, label: String, planned: usize, parent_span_id: Option<u32>, description: Option<String>, role: Option<String>, ts: DateTime<Utc>, }, AgentStarted { run_id: RunId, phase_id: PhaseId, agent_id: AgentId, prompt_preview: String, model: Option<String>, description: Option<String>, role: Option<String>, name: Option<String>, agent_seq: u32, }, AgentProgress { run_id: RunId, agent_id: AgentId, delta: ProgressDelta, }, AcpRaw { run_id: RunId, agent_id: AgentId, kind: String, raw: Value, }, AgentDone { run_id: RunId, agent_id: AgentId, status: AgentStatus, tokens: TokenUsage, elapsed_ms: u64, name: Option<String>, agent_seq: u32, output: Value, findings: Vec<Finding>, prompt: String, retry_count: u32, }, PhaseDone { run_id: RunId, phase_id: PhaseId, ok: usize, failed: usize, ts: DateTime<Utc>, }, RunDone { run_id: RunId, status: RunStatus, total_tokens: TokenUsage, report: Value, ts: DateTime<Utc>, }, Log { run_id: RunId, agent_id: Option<AgentId>, level: LogLevel, msg: String, }, BudgetSet { run_id: RunId, time_limit_ms: Option<u64>, max_rounds: Option<u32>, }, ReportEmitted { run_id: RunId, phase_id: PhaseId, report: Value, }, ParallelStarted { run_id: RunId, phase_id: PhaseId, span_id: u64, count: usize, }, ParallelDone { run_id: RunId, phase_id: PhaseId, span_id: u64, ok: usize, failed: usize, results: Value, elapsed_ms: u64, }, WorkflowStarted { run_id: RunId, span_id: u64, path: String, args: Value, }, WorkflowDone { run_id: RunId, span_id: u64, path: String, report: Value, elapsed_ms: u64, error: Option<String>, }, ConvergeStarted { run_id: RunId, phase_id: PhaseId, span_id: u64, items: usize, max_rounds: u32, }, ConvergeDone { run_id: RunId, phase_id: PhaseId, span_id: u64, rounds: u32, converged: bool, surviving: usize, result: Value, elapsed_ms: u64, error: Option<String>, }, PipelineStarted { run_id: RunId, total_stages: usize, items: usize, }, PipelineStageStarted { run_id: RunId, stage_index: usize, label: String, agents_in_stage: usize, }, PipelineItemDone { run_id: RunId, stage_index: usize, item_index: usize, status: AgentStatus, tokens: TokenUsage, elapsed_ms: u64, }, PipelineDone { run_id: RunId, stages_completed: usize, total_ok: usize, total_failed: usize, }, PhaseSpanStarted { run_id: RunId, span_id: u32, name: String, parent_id: Option<u32>, depth: u32, planned: usize, }, PhaseSpanDone { run_id: RunId, span_id: u32, name: String, parent_id: Option<u32>, depth: u32, elapsed_ms: u64, status: String, }, SchemaRetry { run_id: RunId, agent_id: AgentId, attempt: u32, max: u32, }, PlanPreview { run_id: RunId, reasoning: String, phases: Vec<PlanPhase>, }, SignalReceived { run_id: Option<RunId>, signal: String, ts: DateTime<Utc>, },
}

Variants§

§

RunStarted

Fields

§run_id: RunId
§task: String
§

PhaseStarted

Fields

§run_id: RunId
§phase_id: PhaseId
§label: String
§planned: usize
§parent_span_id: Option<u32>
§description: Option<String>
§

AgentStarted

Fields

§run_id: RunId
§phase_id: PhaseId
§agent_id: AgentId
§prompt_preview: String
§description: Option<String>
§agent_seq: u32
§

AgentProgress

Fields

§run_id: RunId
§agent_id: AgentId
§

AcpRaw

Raw ACP session/update passthrough — the verbatim notification, surfaced for observability. Produced only when the ACP backend has raw events enabled. Not persisted to the journal (see acp-raw-events.md).

Fields

§run_id: RunId
§agent_id: AgentId
§kind: String

SessionUpdate discriminator (the sessionUpdate tag), e.g. "agent_message_chunk", "plan" — lets consumers filter without parsing raw.

§raw: Value

The ACP SessionUpdate, serialized verbatim.

§

AgentDone

Fields

§run_id: RunId
§agent_id: AgentId
§tokens: TokenUsage
§elapsed_ms: u64
§agent_seq: u32
§output: Value
§findings: Vec<Finding>
§prompt: String
§retry_count: u32
§

PhaseDone

Fields

§run_id: RunId
§phase_id: PhaseId
§failed: usize
§

RunDone

Fields

§run_id: RunId
§status: RunStatus
§total_tokens: TokenUsage
§report: Value
§

Log

Fields

§run_id: RunId
§agent_id: Option<AgentId>
§level: LogLevel
§

BudgetSet

Fields

§run_id: RunId
§time_limit_ms: Option<u64>
§max_rounds: Option<u32>
§

ReportEmitted

Fields

§run_id: RunId
§phase_id: PhaseId
§report: Value
§

ParallelStarted

Fields

§run_id: RunId
§phase_id: PhaseId
§span_id: u64
§count: usize
§

ParallelDone

Fields

§run_id: RunId
§phase_id: PhaseId
§span_id: u64
§failed: usize
§results: Value
§elapsed_ms: u64
§

WorkflowStarted

Fields

§run_id: RunId
§span_id: u64
§path: String
§args: Value
§

WorkflowDone

Fields

§run_id: RunId
§span_id: u64
§path: String
§report: Value
§elapsed_ms: u64
§

ConvergeStarted

Fields

§run_id: RunId
§phase_id: PhaseId
§span_id: u64
§items: usize
§max_rounds: u32
§

ConvergeDone

Fields

§run_id: RunId
§phase_id: PhaseId
§span_id: u64
§rounds: u32
§converged: bool
§surviving: usize
§result: Value
§elapsed_ms: u64
§

PipelineStarted

Fields

§run_id: RunId
§total_stages: usize
§items: usize
§

PipelineStageStarted

Fields

§run_id: RunId
§stage_index: usize
§label: String
§agents_in_stage: usize
§

PipelineItemDone

Fields

§run_id: RunId
§stage_index: usize
§item_index: usize
§tokens: TokenUsage
§elapsed_ms: u64
§

PipelineDone

Fields

§run_id: RunId
§stages_completed: usize
§total_ok: usize
§total_failed: usize
§

PhaseSpanStarted

Structural phase span started — emitted by phase_begin().

Fields

§run_id: RunId
§span_id: u32
§name: String
§parent_id: Option<u32>
§depth: u32
§planned: usize
§

PhaseSpanDone

Structural phase span done — emitted by phase_end().

Fields

§run_id: RunId
§span_id: u32
§name: String
§parent_id: Option<u32>
§depth: u32
§elapsed_ms: u64
§status: String
§

SchemaRetry

Agent output failed schema validation and is being retried with corrective feedback injected into the prompt. Consumers (CLI, event log) can use this to inform users that an extra LLM round-trip is underway.

Fields

§run_id: RunId
§agent_id: AgentId
§attempt: u32
§max: u32
§

PlanPreview

Plan preview — emitted before execution starts, from the meta table. Lists the declared phases so the CLI can render a plan overview before real-time execution output begins.

Fields

§run_id: RunId
§reasoning: String
§phases: Vec<PlanPhase>
§

SignalReceived

OS signal received (SIGINT / SIGTERM / Ctrl+C). run_id is None if the signal arrived before a run had started. Emitted by the process- level signal handler in [crate::signal].

Fields

§run_id: Option<RunId>
§signal: String

Trait Implementations§

Source§

impl Clone for AgentEvent

Source§

fn clone(&self) -> AgentEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AgentEvent

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AgentEvent

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for AgentEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more