pub enum RuntimeEvent {
Show 17 variants
Iteration {
iteration: usize,
},
ToolStart {
call_id: String,
name: String,
input: Value,
},
ToolResult {
call_id: String,
name: String,
is_error: bool,
preview: String,
duration_ms: u64,
status_code: Option<i32>,
bytes: usize,
error_type: Option<String>,
},
TextDelta {
delta: String,
},
ToolWaveStart {
wave: usize,
tool_count: usize,
},
ToolWaveComplete {
wave: usize,
},
Cancelled {
final_text: String,
},
FinalResponse {
text: String,
},
MidTurnInjection {
count: usize,
},
FileDiff {
path: String,
diff: String,
added: usize,
removed: usize,
truncated: bool,
},
SubagentStarted {
run_id: String,
label: String,
},
SubagentFinished {
run_id: String,
status: String,
},
ApprovalRequired {
approval_id: String,
tool: String,
preview: Option<String>,
options: Vec<RuntimeApprovalOption>,
advisory: Option<String>,
},
CheckpointCreated {
commit: String,
label: String,
},
PlanUpdated {
steps: Vec<RuntimePlanStep>,
},
ContextCompacted {
method: String,
trigger: String,
tokens_before: u64,
tokens_after: u64,
messages_before: usize,
messages_after: usize,
duration_ms: u64,
},
ProcessOutput {
call_id: String,
command: String,
output: String,
exit_code: Option<i32>,
duration_ms: u64,
truncated: bool,
kind: RuntimeProcessKind,
},
}Expand description
An observable event emitted by the shared agent runtime.
Keep provider-specific payloads behind the runtime boundary. Consumers should be able to project this stream without knowing which LLM produced it.
Variants§
Iteration
ToolStart
ToolResult
Fields
TextDelta
ToolWaveStart
ToolWaveComplete
Cancelled
FinalResponse
MidTurnInjection
FileDiff
SubagentStarted
SubagentFinished
ApprovalRequired
Fields
§
options: Vec<RuntimeApprovalOption>CheckpointCreated
PlanUpdated
Fields
§
steps: Vec<RuntimePlanStep>ContextCompacted
The conversation was reduced to fit the model’s context window.
method is pruned (old tool outputs cleared), summarized or
fallback (mechanical digest after the summarizer failed).
Fields
ProcessOutput
Trait Implementations§
Source§impl Clone for RuntimeEvent
impl Clone for RuntimeEvent
Source§fn clone(&self) -> RuntimeEvent
fn clone(&self) -> RuntimeEvent
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 moreSource§impl Debug for RuntimeEvent
impl Debug for RuntimeEvent
Source§impl<'de> Deserialize<'de> for RuntimeEvent
impl<'de> Deserialize<'de> for RuntimeEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RuntimeEvent
impl PartialEq for RuntimeEvent
Source§impl Serialize for RuntimeEvent
impl Serialize for RuntimeEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RuntimeEvent
Auto Trait Implementations§
impl Forget for RuntimeEvent
impl Freeze for RuntimeEvent
impl Move for RuntimeEvent
impl RefUnwindSafe for RuntimeEvent
impl Send for RuntimeEvent
impl Sync for RuntimeEvent
impl Unpin for RuntimeEvent
impl UnsafeUnpin for RuntimeEvent
impl UnwindSafe for RuntimeEvent
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
fn into_option(self) -> Option<T>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request