pub enum EventType {
Thought,
Content,
ToolCall,
ToolResult,
CallCode,
CodeResult,
Error,
Activity,
ToolConfirmation,
Finished,
}Expand description
Classification of a structured event.
Variants§
Thought
Internal reasoning or chain-of-thought.
Content
User-facing content output.
ToolCall
A tool/function call from the model.
ToolResult
The result of a tool/function call.
CallCode
A code execution request.
CodeResult
The result of a code execution.
Error
An error event.
Activity
An activity/status update (e.g., agent transfer).
ToolConfirmation
A tool confirmation request or response.
Finished
The agent has finished processing.
Trait Implementations§
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.§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
Checks if this value is equivalent to the given key. Read more