pub enum DriverEvent {
Show 16 variants
GoalStarted {
goal: Goal,
},
GoalCompleted {
outcome: GoalOutcome,
},
AttemptStarted {
goal_id: GoalId,
turn_index: u32,
usage: BudgetUsage,
},
AttemptCompleted {
result: AttemptResult,
},
Decision {
decision: Decision,
},
Acceptance {
goal_id: GoalId,
verdict: AcceptanceVerdict,
},
BudgetExhausted {
goal_id: GoalId,
axis: BudgetAxis,
usage: BudgetUsage,
},
Escalate {
goal_id: GoalId,
reason: String,
},
ReplayDecision {
goal_id: GoalId,
turn_index: u32,
decision: ReplayDecision,
error_message: String,
},
CompactRequested {
goal_id: GoalId,
turn_index: u32,
focus: String,
token_pressure: f64,
before_tokens: u64,
age_minutes: u64,
trigger: CompactTrigger,
},
CompactCompleted {
goal_id: GoalId,
turn_index: u32,
after_tokens: u64,
},
CompactSummaryStored {
goal_id: GoalId,
turn_index: u32,
before_tokens: u64,
after_tokens: u64,
},
ExtractMemoriesCompleted {
goal_id: GoalId,
turn_index: u32,
memories_saved: u32,
duration_ms: u64,
},
ExtractMemoriesSkipped {
goal_id: GoalId,
reason: ExtractSkipReason,
},
AutoDreamOutcome {
goal_id: GoalId,
outcome_kind: AutoDreamOutcomeKind,
},
Progress {
goal_id: GoalId,
turn_index: u32,
usage: BudgetUsage,
last_text: Option<String>,
},
}Variants§
GoalStarted
GoalCompleted
Fields
outcome: GoalOutcomeAttemptStarted
AttemptCompleted
Fields
result: AttemptResultDecision
Acceptance
BudgetExhausted
Escalate
ReplayDecision
Phase 67.8 — replay-policy classified a mid-turn error.
CompactRequested
Phase 67.9 + 77.2 — orchestrator scheduled a /compact turn.
Fields
trigger: CompactTriggerPhase 77.2 — what caused the trigger.
CompactCompleted
Phase 77.2 — compaction completed. Emitted on the turn after the
compact turn, once after_tokens is known.
CompactSummaryStored
Phase 77.3 — compact summary persisted to long-term memory.
ExtractMemoriesCompleted
Phase 77.5 — memory extraction completed.
ExtractMemoriesSkipped
Phase 77.5 — memory extraction skipped (disabled, throttled, etc.).
AutoDreamOutcome
Phase 80.1.b — autoDream consolidation pass outcome. Emitted
per turn when the runner is wired. Detailed run state lives
in dream_runs (Phase 80.18) — this event is the lightweight
signal for admin-ui / chat hooks.
Progress
Phase 67.C.1 — periodic mid-run progress beacon. Fires every
progress_every_turns after an AttemptCompleted, so chat
hooks (on: progress) and admin-ui can show ‘still going’
without waiting for the goal to finish.
Implementations§
Source§impl DriverEvent
impl DriverEvent
Sourcepub fn nats_subject(&self) -> &'static str
pub fn nats_subject(&self) -> &'static str
NATS subject for this event kind.
Trait Implementations§
Source§impl Clone for DriverEvent
impl Clone for DriverEvent
Source§fn clone(&self) -> DriverEvent
fn clone(&self) -> DriverEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DriverEvent
impl Debug for DriverEvent
Source§impl<'de> Deserialize<'de> for DriverEvent
impl<'de> Deserialize<'de> for DriverEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for DriverEvent
impl RefUnwindSafe for DriverEvent
impl Send for DriverEvent
impl Sync for DriverEvent
impl Unpin for DriverEvent
impl UnsafeUnpin for DriverEvent
impl UnwindSafe for DriverEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more