pub enum InferenceEvent {
Show 27 variants
Token(String),
MutedToken(String),
Thought(String),
VoiceStatus(String),
ToolCallStart {
id: String,
name: String,
args: String,
},
ToolCallResult {
id: String,
name: String,
result: String,
is_error: bool,
},
ApprovalRequired {
id: String,
name: String,
display: String,
diff: Option<String>,
mutation_label: Option<String>,
responder: Sender<bool>,
},
Done,
ChainImplementPlan,
Error(String),
ProviderStatus {
state: ProviderRuntimeState,
summary: String,
},
OperatorCheckpoint {
state: OperatorCheckpointState,
summary: String,
},
RecoveryRecipe {
summary: String,
},
McpStatus {
state: McpRuntimeState,
summary: String,
},
CompactionPressure {
estimated_tokens: usize,
threshold_tokens: usize,
percent: u8,
},
PromptPressure {
estimated_input_tokens: usize,
reserved_output_tokens: usize,
estimated_total_tokens: usize,
context_length: usize,
percent: u8,
},
TaskProgress {
id: String,
label: String,
progress: u8,
},
UsageUpdate(TokenUsage),
RuntimeProfile {
provider_name: String,
endpoint: String,
model_id: String,
context_length: usize,
},
TurnTiming {
context_prep_ms: u128,
inference_ms: u128,
execution_ms: u128,
},
VeinStatus {
file_count: usize,
embedded_count: usize,
docs_only: bool,
},
VeinContext {
paths: Vec<String>,
},
SoulReroll {
species: String,
rarity: String,
shiny: bool,
personality: String,
},
CopyDiveInCommand(String),
EmbedProfile {
model_id: Option<String>,
},
ShellLine(String),
TurnBudget(TurnBudget),
}Variants§
Token(String)
MutedToken(String)
Thought(String)
VoiceStatus(String)
ToolCallStart
ToolCallResult
ApprovalRequired
Fields
Done
ChainImplementPlan
Error(String)
ProviderStatus
OperatorCheckpoint
RecoveryRecipe
McpStatus
CompactionPressure
PromptPressure
Fields
TaskProgress
UsageUpdate(TokenUsage)
RuntimeProfile
TurnTiming
VeinStatus
VeinContext
SoulReroll
CopyDiveInCommand(String)
EmbedProfile
ShellLine(String)
TurnBudget(TurnBudget)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InferenceEvent
impl !RefUnwindSafe for InferenceEvent
impl Send for InferenceEvent
impl Sync for InferenceEvent
impl Unpin for InferenceEvent
impl UnsafeUnpin for InferenceEvent
impl !UnwindSafe for InferenceEvent
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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>
Converts
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>
Converts
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