#[non_exhaustive]pub enum EventMsg {
Show 23 variants
Error(ErrorEvent),
Warning(WarningEvent),
SessionConfigured(SessionConfiguredEvent),
TurnStarted(TurnStartedEvent),
TurnComplete(TurnCompleteEvent),
TurnAborted(TurnAbortedEvent),
UserMessage(UserMessageEvent),
AgentMessage(AgentMessageEvent),
AgentMessageContentDelta(AgentMessageContentDeltaEvent),
AgentReasoningContentDelta(AgentReasoningContentDeltaEvent),
ModelStepStarted(ModelStepStartedEvent),
ModelStepCompleted(ModelStepCompletedEvent),
SessionHistory(SessionHistoryEvent),
ModelChanged(ModelChangedEvent),
SessionResumeRequested(SessionResumeRequestedEvent),
ToolCallBegin(ToolCallBeginEvent),
ToolCallEnd(ToolCallEndEvent),
ExecApprovalRequest(ExecApprovalRequestEvent),
TokenCount(TokenCountEvent),
ContextCompacted,
WebSearchBegin(WebSearchBeginEvent),
WebSearchEnd(WebSearchEndEvent),
Frontend(FrontendEvent),
}Expand description
Events supported by the minimal frontend contract.
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.
Error(ErrorEvent)
Warning(WarningEvent)
SessionConfigured(SessionConfiguredEvent)
TurnStarted(TurnStartedEvent)
TurnComplete(TurnCompleteEvent)
TurnAborted(TurnAbortedEvent)
UserMessage(UserMessageEvent)
AgentMessage(AgentMessageEvent)
AgentMessageContentDelta(AgentMessageContentDeltaEvent)
AgentReasoningContentDelta(AgentReasoningContentDeltaEvent)
ModelStepStarted(ModelStepStartedEvent)
ModelStepCompleted(ModelStepCompletedEvent)
SessionHistory(SessionHistoryEvent)
ModelChanged(ModelChangedEvent)
SessionResumeRequested(SessionResumeRequestedEvent)
ToolCallBegin(ToolCallBeginEvent)
ToolCallEnd(ToolCallEndEvent)
ExecApprovalRequest(ExecApprovalRequestEvent)
TokenCount(TokenCountEvent)
ContextCompacted
WebSearchBegin(WebSearchBeginEvent)
WebSearchEnd(WebSearchEndEvent)
Frontend(FrontendEvent)
Implementations§
Source§impl EventMsg
impl EventMsg
Sourcepub fn presentation(&self) -> Option<RenderedBlock>
pub fn presentation(&self) -> Option<RenderedBlock>
Renders framework-owned semantic events without frontend prose parsing.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventMsg
impl<'de> Deserialize<'de> for EventMsg
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
impl StructuralPartialEq for EventMsg
Auto Trait Implementations§
impl Freeze for EventMsg
impl RefUnwindSafe for EventMsg
impl Send for EventMsg
impl Sync for EventMsg
impl Unpin for EventMsg
impl UnsafeUnpin for EventMsg
impl UnwindSafe for EventMsg
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