Enum EventKind
#[non_exhaustive]pub enum EventKind {
Show 25 variants
RunStarted,
TurnStarted,
ModelResponded,
ModelFailed,
UsageRecorded,
ToolStarted,
ToolCompleted,
ToolFailed,
ToolDenied,
TurnEnded,
CompactionEnded,
RunCancelled,
ChildStarted,
ChildEnded,
SessionStarted,
SessionRoundStarted,
SessionRoundEnded,
SessionClosed,
ApprovalAsked,
ApprovalAnswered,
RunParked,
RunEnded,
RunError,
ArtifactKept,
Custom,
}Expand description
A core event of the catalogue (ADR 0050, decision 5): the ones an observer reads.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RunStarted
The first transition of a run.
TurnStarted
Before model:<turn>.
ModelResponded
A model step returned.
ModelFailed
A model step failed.
UsageRecorded
A model call’s usage is reported.
ToolStarted
A call’s step is about to run.
ToolCompleted
A call’s step is recorded, and the tool answered.
ToolFailed
A call’s step is recorded, and the call failed.
ToolDenied
A call’s step is recorded, and a hook refused it.
TurnEnded
Every call of the turn has a result.
CompactionEnded
A compaction was recorded.
RunCancelled
The agent saw its cancel during a step.
ChildStarted
A tool started a one-shot child run and will wait for it.
ChildEnded
The child run a tool waited for ended, done or failed.
SessionStarted
A session was started: subagent_start returned, and its first round works.
SessionRoundStarted
A message started another round of a session: subagent_send returned.
SessionRoundEnded
A session’s round was read as a report: subagent_read returned one.
SessionClosed
A session was closed: subagent_close returned.
ApprovalAsked
A tool.before verdict Ask parked the run for a person’s approval (slice H8).
ApprovalAnswered
The person answered an approval: the call runs, or it is refused with their answer (H8).
RunParked
The runtime committed a park (H4).
RunEnded
The runtime committed the end of a run, done or failed (H4).
RunError
The runtime committed a failed try that will be retried (H4).
ArtifactKept
The runtime committed a transition that kept an artifact (H4).
Custom
A custom event (ADR 0050, slice H5): a tool declared it and emitted it. Its name is
HookEvent::name; EventKind::name says custom, which is no event’s name.
Implementations§
Trait Implementations§
impl Copy for EventKind
impl Eq for EventKind
impl StructuralPartialEq for EventKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].