pub enum AgentEvent {
Show 15 variants
TextDelta {
session_id: SessionId,
text: String,
},
ThoughtDelta {
session_id: SessionId,
text: String,
},
ToolCallStarted {
session_id: SessionId,
tool_name: String,
args_json: String,
},
ToolCallFinished {
session_id: SessionId,
tool_name: String,
summary: String,
},
AwaitingApproval {
session_id: SessionId,
request: ApprovalRequest,
},
Checkpoint {
session_id: SessionId,
checkpoint: CheckpointData,
},
RunFinished {
session_id: SessionId,
},
Custom {
session_id: SessionId,
payload: Value,
},
PlanGenerated {
session_id: SessionId,
plan: ExecutionPlan,
},
PlanStepStarted {
session_id: SessionId,
step_id: String,
step_description: String,
},
PlanStepCompleted {
session_id: SessionId,
step_id: String,
success: bool,
result: Option<String>,
},
PlanCompleted {
session_id: SessionId,
plan_id: String,
success: bool,
},
PlanGenerating {
session_id: SessionId,
plan_id: String,
},
PlanStepParsed {
session_id: SessionId,
plan_id: String,
step_index: usize,
step_id: String,
step_description: String,
},
PlanFailed {
session_id: SessionId,
plan_id: String,
error: String,
},
}Variants§
TextDelta
ThoughtDelta
ToolCallStarted
ToolCallFinished
AwaitingApproval
Checkpoint
RunFinished
Custom
PlanGenerated
PlanStepStarted
PlanStepCompleted
PlanCompleted
PlanGenerating
PlanStepParsed
Fields
PlanFailed
Trait Implementations§
Source§impl Clone for AgentEvent
impl Clone for AgentEvent
Source§fn clone(&self) -> AgentEvent
fn clone(&self) -> AgentEvent
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 AgentEvent
impl Debug for AgentEvent
Source§impl<'de> Deserialize<'de> for AgentEvent
impl<'de> Deserialize<'de> for AgentEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AgentEvent
impl Serialize for AgentEvent
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
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