pub enum SessionEvent {
Started {
messages_replayed: usize,
},
Compaction {
from_hook: bool,
summary: String,
tokens_before: u64,
},
Branch {
from_entry_id: Option<String>,
to_entry_id: Option<String>,
summary_entry_id: Option<String>,
},
PersistenceError {
context: String,
message: String,
},
TurnDecision {
decision: &'static str,
continuation_count: u32,
reason: Option<String>,
next_prompt_preview: Option<String>,
},
SkillsReloaded {
total: usize,
},
ExtensionCommandOutcome {
outcome: ExtensionCommandOutcome,
},
}Expand description
Harness-level lifecycle events emitted in addition to the inner agent’s per-turn events.
Variants§
Started
First prompt entry after construction.
Compaction
Auto- or manual compaction completed.
Branch
The active session branch changed.
PersistenceError
A best-effort persistence operation failed.
TurnDecision
A turn-completion hook made a lifecycle decision.
Fields
SkillsReloaded
The skill catalog was hot-reloaded.
ExtensionCommandOutcome
An extension handled input without starting an LLM run.
Fields
§
outcome: ExtensionCommandOutcomeTrait Implementations§
Source§impl Clone for SessionEvent
impl Clone for SessionEvent
Source§fn clone(&self) -> SessionEvent
fn clone(&self) -> SessionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionEvent
impl RefUnwindSafe for SessionEvent
impl Send for SessionEvent
impl Sync for SessionEvent
impl Unpin for SessionEvent
impl UnsafeUnpin for SessionEvent
impl UnwindSafe for SessionEvent
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