pub enum WireSessionEvent {
Show 37 variants
Stream {
event: WireStreamEvent,
},
TurnStarted {
turn_baseline: usize,
trigger: TurnTrigger,
user_text: Option<String>,
},
Conversation {
digest: ConversationDigest,
},
Prompt {
request: PromptRequest,
},
PromptResolved {
prompt_id: u64,
},
External {
event: Event,
},
AutoTurnCapReached {
cap: u32,
},
Idle,
Steered {
text: String,
delivered: bool,
},
Dequeued {
text: String,
},
SystemNotice {
text: String,
},
LoaderProgress {
event: WireLoaderEvent,
},
ExtensionNotification {
extension_id: String,
method: String,
params: Value,
},
SettingChanged {
applied: SettingApplied,
},
QueryResult {
id: u64,
value: Value,
},
Attached {
client: ClientId,
snapshot: AttachedWire,
},
ClientJoined {
client: ClientId,
kind: ClientKind,
},
ClientLeft {
client: ClientId,
},
Ended {
reason: EndReason,
},
Aborted {
context_saved: bool,
},
Cleared {
session_id: String,
},
CompactionStarted {
source: String,
disclosure: String,
},
CompactionApplied {
previous_session_id: String,
session_id: String,
chains_advanced: Vec<String>,
queued_restored: Option<String>,
msg_count: usize,
},
CompactionFailed {
message: String,
panicked: bool,
},
CompactionCancelled,
SubagentRows {
rows: Vec<SubagentDisplayRow>,
},
Resumed {
id: u64,
old_id: String,
new_id: String,
via: Option<String>,
clamp_notice: Option<String>,
},
InputOwnerChanged {
from: Option<ClientId>,
to: Option<ClientId>,
reason: OwnerChangeReason,
},
Refused {
client: ClientId,
command: String,
reason: String,
},
AttachRefused {
message: String,
},
Lifecycle {
lifecycle: SessionLifecycle,
},
Reloading {
generation: u64,
retry_after_ms: u64,
},
DriverArmed {
plugin_id: String,
run_id: String,
models: Vec<Selection>,
selection: Selection,
deadline_ms: Option<u64>,
notice: String,
},
DriverRevoked {
reason: String,
undelivered_steering: Vec<String>,
},
DriverTurnOutcome {
outcome: Outcome,
selection: Selection,
feedback: Option<String>,
},
CostCapReached {
scope: String,
cost: f64,
cap: f64,
},
Unknown,
}Variants§
Stream
Fields
§
event: WireStreamEventTurnStarted
Conversation
Digest only — see module docs.
Fields
§
digest: ConversationDigestPrompt
Fields
§
request: PromptRequestPromptResolved
External
AutoTurnCapReached
Idle
Steered
Dequeued
SystemNotice
LoaderProgress
Fields
§
event: WireLoaderEventExtensionNotification
SettingChanged
Fields
§
applied: SettingAppliedQueryResult
Attached
ClientJoined
ClientLeft
Ended
Aborted
Cleared
CompactionStarted
CompactionApplied
Fields
CompactionFailed
CompactionCancelled
SubagentRows
Fields
§
rows: Vec<SubagentDisplayRow>Resumed
InputOwnerChanged
Refused
AttachRefused
Lifecycle
Fields
§
lifecycle: SessionLifecycleReloading
DriverArmed
(E-P0) Driver armed.
Fields
DriverRevoked
(E-P0) Driver revoked.
DriverTurnOutcome
(E-P0) Driver turn outcome.
CostCapReached
(E-P7) Spend ceiling breached; turn cancelled and driver revoked.
Unknown
Forward-compat: an additive variant from a newer daemon.
Trait Implementations§
Source§impl Clone for WireSessionEvent
impl Clone for WireSessionEvent
Source§impl Debug for WireSessionEvent
impl Debug for WireSessionEvent
Source§impl<'de> Deserialize<'de> for WireSessionEvent
impl<'de> Deserialize<'de> for WireSessionEvent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SessionEventWire> for WireSessionEvent
impl From<SessionEventWire> for WireSessionEvent
Source§fn from(e: SessionEventWire) -> Self
fn from(e: SessionEventWire) -> Self
Converts to this type from the input type.
Source§impl From<WireSessionEvent> for SessionEventWire
impl From<WireSessionEvent> for SessionEventWire
Source§fn from(e: WireSessionEvent) -> Self
fn from(e: WireSessionEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WireSessionEvent
impl RefUnwindSafe for WireSessionEvent
impl Send for WireSessionEvent
impl Sync for WireSessionEvent
impl Unpin for WireSessionEvent
impl UnsafeUnpin for WireSessionEvent
impl UnwindSafe for WireSessionEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.