pub enum AgentEvent {
Show 25 variants
TextDelta(String),
ThinkingDelta(String),
TextComplete(String),
ToolCallStart {
id: String,
name: String,
},
ToolCallInputDelta(String),
ToolCallExecuting {
id: String,
name: String,
input: String,
},
ToolCallResult {
id: String,
name: String,
output: String,
is_error: bool,
},
Done {
usage: Usage,
},
Error(String),
Compacting,
Compacted {
messages_removed: usize,
},
TitleGenerated(String),
TodoUpdate(Vec<TodoItem>),
Question {
id: String,
question: String,
options: Vec<String>,
responder: QuestionResponder,
},
PermissionRequest {
tool_name: String,
input_summary: String,
responder: QuestionResponder,
},
SubagentStart {
id: String,
description: String,
background: bool,
},
SubagentDelta {
id: String,
text: String,
},
SubagentToolStart {
id: String,
tool_name: String,
detail: String,
},
SubagentToolComplete {
id: String,
tool_name: String,
},
SubagentComplete {
id: String,
output: String,
},
SubagentBackgroundDone {
id: String,
description: String,
output: String,
},
MemoryExtracted {
added: usize,
updated: usize,
deleted: usize,
},
AsideDelta(String),
AsideDone,
AsideError(String),
}Variants§
TextDelta(String)
ThinkingDelta(String)
TextComplete(String)
ToolCallStart
ToolCallInputDelta(String)
ToolCallExecuting
ToolCallResult
Done
Error(String)
Compacting
Compacted
TitleGenerated(String)
TodoUpdate(Vec<TodoItem>)
Question
PermissionRequest
SubagentStart
SubagentDelta
SubagentToolStart
SubagentToolComplete
SubagentComplete
SubagentBackgroundDone
MemoryExtracted
AsideDelta(String)
AsideDone
AsideError(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentEvent
impl !RefUnwindSafe for AgentEvent
impl Send for AgentEvent
impl Sync for AgentEvent
impl Unpin for AgentEvent
impl UnsafeUnpin for AgentEvent
impl !UnwindSafe for AgentEvent
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> 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