pub enum DomainEvent {
Show 31 variants
SessionInitialized {
runtime: RuntimeKind,
device: DeviceTarget,
safety: SafetyMode,
speculation: SpeculationMode,
},
ModelLoaded {
model: ModelId,
version: ModelVersion,
format: ModelFormat,
},
PrefillCompleted {
prompt_tokens: u32,
kv_len: u32,
prefill_tps: u32,
},
TokenGenerated {
sampled: bool,
},
TokenCommitted {
kv_len: u32,
},
GenerationCompleted {
total_tokens: u32,
stop: StopReason,
},
SessionReset,
HybridRelayConsulted,
PromptCompressed {
input_tokens: u32,
output_tokens: u32,
ratio_milli: u32,
},
CompressionSkipped {
reason: DegradeReason,
},
DraftProposed {
draft_len: u8,
},
DraftVerified {
accepted: u8,
first_reject: u8,
},
SpeculationDisabled {
reason: DegradeReason,
},
GrammarSwitched {
from_state: u32,
to_state: u32,
},
TokenMaskApplied {
allowed: u32,
},
GrammarViolationBlocked,
SafetyModeSelected {
mode: SafetyMode,
},
LogitsSteered {
adjustment_norm_milli: u32,
},
SafetyViolationDetected {
score_milli: u16,
threshold_milli: u16,
},
ClaimBacktracked {
claim_index: u32,
},
SafetyDisabled {
reason: DegradeReason,
},
MemoryPlanCreated {
total_bytes: u64,
sram_bytes: u64,
dram_bytes: u64,
},
KvCacheCompacted {
reclaimed: u32,
},
MemoryBudgetExceeded {
requested_bytes: u64,
budget_bytes: u64,
},
DeviceProfiled {
profile: DeviceTarget,
npu_tops: u16,
bandwidth_gbs: u16,
},
DelegateSelected {
partitions: u8,
},
DelegateFellBack,
ModelSignatureVerified {
model: ModelId,
version: ModelVersion,
},
ModelSignatureRejected {
model: ModelId,
},
MetricsSampled {
decode_tps: u32,
ttft_ms: u32,
peak_bytes: u64,
},
FrontierLlmConsulted {
provider_hash: u32,
prompt_tokens: u32,
completion_tokens: u32,
},
}Expand description
Every fact the pipeline emits. Carries only ids, counts, enums, and fixed-point numbers — never content.
Variants§
SessionInitialized
ModelLoaded
PrefillCompleted
TokenGenerated
TokenCommitted
GenerationCompleted
SessionReset
HybridRelayConsulted
PromptCompressed
Fields
CompressionSkipped
Fields
§
reason: DegradeReasonDraftProposed
DraftVerified
SpeculationDisabled
Fields
§
reason: DegradeReasonGrammarSwitched
TokenMaskApplied
GrammarViolationBlocked
SafetyModeSelected
Fields
§
mode: SafetyModeLogitsSteered
SafetyViolationDetected
ClaimBacktracked
SafetyDisabled
Fields
§
reason: DegradeReasonMemoryPlanCreated
KvCacheCompacted
MemoryBudgetExceeded
DeviceProfiled
DelegateSelected
DelegateFellBack
ModelSignatureVerified
ModelSignatureRejected
MetricsSampled
FrontierLlmConsulted
Emitted when the opt-in cloud backend is consulted (parallel to
HybridRelayConsulted). provider_hash is a CRC32 of the provider
prefix — not the API key or any content.
Trait Implementations§
Source§impl Clone for DomainEvent
impl Clone for DomainEvent
Source§fn clone(&self) -> DomainEvent
fn clone(&self) -> DomainEvent
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 moreimpl Copy for DomainEvent
Source§impl Debug for DomainEvent
impl Debug for DomainEvent
impl Eq for DomainEvent
Source§impl PartialEq for DomainEvent
impl PartialEq for DomainEvent
Source§fn eq(&self, other: &DomainEvent) -> bool
fn eq(&self, other: &DomainEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DomainEvent
Auto Trait Implementations§
impl Freeze for DomainEvent
impl RefUnwindSafe for DomainEvent
impl Send for DomainEvent
impl Sync for DomainEvent
impl Unpin for DomainEvent
impl UnsafeUnpin for DomainEvent
impl UnwindSafe for DomainEvent
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