#[non_exhaustive]pub enum AgentEventAny {
SessionInit(SessionInitEvent),
SessionStop(SessionStopEvent),
StreamDelta(StreamDeltaEvent),
ToolCall(ToolCallEvent),
ToolResult(ToolResultEvent),
AssistantResponse(AssistantResponseEvent),
SkillLoad(SkillLoadEvent),
UserPromptSubmit(UserPromptSubmitEvent),
}Expand description
A sum type wrapping any agent event.
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.
SessionInit(SessionInitEvent)
SessionStop(SessionStopEvent)
StreamDelta(StreamDeltaEvent)
ToolCall(ToolCallEvent)
ToolResult(ToolResultEvent)
AssistantResponse(AssistantResponseEvent)
SkillLoad(SkillLoadEvent)
UserPromptSubmit(UserPromptSubmitEvent)
Implementations§
Trait Implementations§
Source§impl AgentEvent for AgentEventAny
impl AgentEvent for AgentEventAny
Source§fn to_jsonrpc(&self) -> JsonRpcNotification
fn to_jsonrpc(&self) -> JsonRpcNotification
Convert this event into a
JsonRpcNotification.Source§fn session_id(&self) -> String
fn session_id(&self) -> String
Return the session ID associated with this event.
Source§impl Clone for AgentEventAny
impl Clone for AgentEventAny
Source§fn clone(&self) -> AgentEventAny
fn clone(&self) -> AgentEventAny
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 AgentEventAny
impl Debug for AgentEventAny
Source§impl TryFrom<JsonRpcNotification> for AgentEventAny
impl TryFrom<JsonRpcNotification> for AgentEventAny
Source§type Error = AgentEventError
type Error = AgentEventError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for AgentEventAny
impl RefUnwindSafe for AgentEventAny
impl Send for AgentEventAny
impl Sync for AgentEventAny
impl Unpin for AgentEventAny
impl UnsafeUnpin for AgentEventAny
impl UnwindSafe for AgentEventAny
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