#[non_exhaustive]pub enum EventKind {
Show 38 variants
Meta(MetaPayload),
RunStarted(RunStartedPayload),
RunFinished(RunFinishedPayload),
TurnStarted(TurnPayload),
TurnFinished(TurnFinishedPayload),
TurnRevised(TurnRevisedPayload),
LlmRequest(LlmRequestPayload),
LlmResponse(LlmResponsePayload),
LlmStreamChunk(Value),
LlmRetry(LlmRetryPayload),
LlmFailed(LlmFailedPayload),
ToolCallStarted(ToolCallStartedPayload),
ToolCallFinished(ToolCallFinishedPayload),
ToolCallFailed(ToolCallFailedPayload),
ToolApprovalRequested(Value),
ToolApprovalDecided(Value),
MemoryEvicted(Value),
MemorySummarized(Value),
MemoryRetrieved(Value),
BudgetExceeded(Value),
PolicyInputChecked(Value),
PolicyOutputChecked(Value),
PolicyBlocked(Value),
PlannerProposed(Value),
PlannerRevised(Value),
PlannerCommitted(Value),
CriticAssessed(Value),
CriticRejected(Value),
CriticRevised(Value),
CriticFailed(Value),
ReflectionGenerated(Value),
ReflectionInjected(Value),
HumanInterrupt(Value),
HumanInject(Value),
UserSimulatedMessage(Value),
UserSimulatedEnded(Value),
UserLog(UserLogPayload),
Unknown,
}Expand description
Discriminated event catalog. type field is the serde tag; payload holds the
variant’s data. New variants are additive per schema versioning rules.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Meta(MetaPayload)
RunStarted(RunStartedPayload)
RunFinished(RunFinishedPayload)
TurnStarted(TurnPayload)
TurnFinished(TurnFinishedPayload)
TurnRevised(TurnRevisedPayload)
LlmRequest(LlmRequestPayload)
LlmResponse(LlmResponsePayload)
LlmStreamChunk(Value)
LlmRetry(LlmRetryPayload)
LlmFailed(LlmFailedPayload)
ToolCallStarted(ToolCallStartedPayload)
ToolCallFinished(ToolCallFinishedPayload)
ToolCallFailed(ToolCallFailedPayload)
ToolApprovalRequested(Value)
ToolApprovalDecided(Value)
MemoryEvicted(Value)
MemorySummarized(Value)
MemoryRetrieved(Value)
BudgetExceeded(Value)
PolicyInputChecked(Value)
PolicyOutputChecked(Value)
PolicyBlocked(Value)
PlannerProposed(Value)
PlannerRevised(Value)
PlannerCommitted(Value)
CriticAssessed(Value)
CriticRejected(Value)
CriticRevised(Value)
CriticFailed(Value)
ReflectionGenerated(Value)
ReflectionInjected(Value)
HumanInterrupt(Value)
HumanInject(Value)
UserSimulatedMessage(Value)
UserSimulatedEnded(Value)
UserLog(UserLogPayload)
Escape hatch for user-defined events. Namespace MUST NOT start with a built-in
category prefix. Construct via EventKind::user_log.
Unknown
Forward-compat fallback: unknown event type preserved verbatim.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
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
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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