pub enum AgentEventKind {
Show 27 variants
AgentStarted,
AgentEnded,
StepStarted,
StepEnded,
StepFailed,
TextStarted,
TextDelta,
TextEnded,
ReasoningStarted,
ReasoningDelta,
ReasoningEnded,
ToolInputStarted,
ToolInputDelta,
ToolInputEnded,
ToolCalled,
ToolProgress,
ToolSucceeded,
ToolFailed,
Retried,
PruneCompleted,
CompactionStarted,
CompactionDelta,
CompactionEnded,
TokenBudgetChanged,
ModelSwitched,
AgentSwitched,
UserPrompted,
}Expand description
AgentEvent 的类型判别标签(无数据),用于过滤和分类。
与 AgentEvent 一一对应,可用于:
- 事件过滤器(只订阅关心的事件类型)
- 统计计数
- Hook 系统的事件匹配
Variants§
AgentStarted
AgentEnded
StepStarted
StepEnded
StepFailed
TextStarted
TextDelta
TextEnded
ReasoningStarted
ReasoningDelta
ReasoningEnded
ToolInputStarted
ToolInputDelta
ToolInputEnded
ToolCalled
ToolProgress
ToolSucceeded
ToolFailed
Retried
PruneCompleted
CompactionStarted
CompactionDelta
CompactionEnded
TokenBudgetChanged
ModelSwitched
AgentSwitched
UserPrompted
Trait Implementations§
Source§impl Clone for AgentEventKind
impl Clone for AgentEventKind
Source§fn clone(&self) -> AgentEventKind
fn clone(&self) -> AgentEventKind
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 AgentEventKind
impl Debug for AgentEventKind
Source§impl<'de> Deserialize<'de> for AgentEventKind
impl<'de> Deserialize<'de> for AgentEventKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AgentEventKind
impl Display for AgentEventKind
Source§impl Hash for AgentEventKind
impl Hash for AgentEventKind
Source§impl PartialEq for AgentEventKind
impl PartialEq for AgentEventKind
Source§fn eq(&self, other: &AgentEventKind) -> bool
fn eq(&self, other: &AgentEventKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentEventKind
impl Serialize for AgentEventKind
impl Copy for AgentEventKind
impl Eq for AgentEventKind
impl StructuralPartialEq for AgentEventKind
Auto Trait Implementations§
impl Freeze for AgentEventKind
impl RefUnwindSafe for AgentEventKind
impl Send for AgentEventKind
impl Sync for AgentEventKind
impl Unpin for AgentEventKind
impl UnsafeUnpin for AgentEventKind
impl UnwindSafe for AgentEventKind
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