pub enum ThreadEvent {
Show 15 variants
ThreadStarted(ThreadStartedEvent),
ThreadCompleted(ThreadCompletedEvent),
ThreadCompactBoundary(ThreadCompactBoundaryEvent),
TurnStarted(TurnStartedEvent),
TurnCompleted(TurnCompletedEvent),
TurnFailed(TurnFailedEvent),
ItemStarted(ItemStartedEvent),
ItemUpdated(ItemUpdatedEvent),
ItemCompleted(ItemCompletedEvent),
PermissionRequested(PermissionRequestedEvent),
PermissionResolved(PermissionResolvedEvent),
Interjected(InterjectedEvent),
PlanDelta(PlanDeltaEvent),
Error(ThreadErrorEvent),
Unknown,
}Expand description
Structured events emitted during autonomous execution.
Variants§
ThreadStarted(ThreadStartedEvent)
Indicates that a new execution thread has started.
ThreadCompleted(ThreadCompletedEvent)
Indicates that an execution thread has reached a terminal outcome.
ThreadCompactBoundary(ThreadCompactBoundaryEvent)
Indicates that conversation compaction replaced older history with a boundary.
TurnStarted(TurnStartedEvent)
Marks the beginning of an execution turn.
TurnCompleted(TurnCompletedEvent)
Marks the completion of an execution turn.
TurnFailed(TurnFailedEvent)
Marks a turn as failed with additional context.
ItemStarted(ItemStartedEvent)
Indicates that an item has started processing.
ItemUpdated(ItemUpdatedEvent)
Indicates that an item has been updated.
ItemCompleted(ItemCompletedEvent)
Indicates that an item reached a terminal state.
PermissionRequested(PermissionRequestedEvent)
Emitted when a tool requires user permission before execution.
PermissionResolved(PermissionResolvedEvent)
Emitted when the user resolves a permission prompt.
Interjected(InterjectedEvent)
A mid-turn user interjection was merged into the running turn.
PlanDelta(PlanDeltaEvent)
Streaming delta for a plan item in Planning workflow.
Error(ThreadErrorEvent)
Represents a fatal error.
Unknown
Catch-all for unknown event types added in newer schema versions. Preserves forward compatibility when older binaries read newer event streams.
Trait Implementations§
Source§impl Clone for ThreadEvent
impl Clone for ThreadEvent
Source§fn clone(&self) -> ThreadEvent
fn clone(&self) -> ThreadEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ThreadEvent
impl Debug for ThreadEvent
Source§impl<'de> Deserialize<'de> for ThreadEvent
impl<'de> Deserialize<'de> for ThreadEvent
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>,
impl Eq for ThreadEvent
Source§impl From<ThreadEvent> for VersionedThreadEvent
impl From<ThreadEvent> for VersionedThreadEvent
Source§fn from(event: ThreadEvent) -> Self
fn from(event: ThreadEvent) -> Self
Source§impl JsonSchema for ThreadEvent
impl JsonSchema for ThreadEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ThreadEvent
impl PartialEq for ThreadEvent
Source§impl Serialize for ThreadEvent
impl Serialize for ThreadEvent
impl StructuralPartialEq for ThreadEvent
Auto Trait Implementations§
impl Freeze for ThreadEvent
impl RefUnwindSafe for ThreadEvent
impl Send for ThreadEvent
impl Sync for ThreadEvent
impl Unpin for ThreadEvent
impl UnsafeUnpin for ThreadEvent
impl UnwindSafe for ThreadEvent
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.