pub enum SessionEventType {
Show 92 variants
SessionStart,
SessionResume,
SessionRemoteSteerableChanged,
SessionError,
SessionIdle,
SessionTitleChanged,
SessionScheduleCreated,
SessionScheduleCancelled,
SessionAutopilotObjectiveChanged,
SessionInfo,
SessionWarning,
SessionModelChange,
SessionModeChanged,
SessionPermissionsChanged,
SessionPlanChanged,
SessionTodosChanged,
SessionWorkspaceFileChanged,
SessionHandoff,
SessionTruncation,
SessionSnapshotRewind,
SessionShutdown,
SessionContextChanged,
SessionUsageInfo,
SessionCompactionStart,
SessionCompactionComplete,
SessionTaskComplete,
UserMessage,
PendingMessagesModified,
AssistantTurnStart,
AssistantIntent,
AssistantReasoning,
AssistantReasoningDelta,
AssistantStreamingDelta,
AssistantMessage,
AssistantMessageStart,
AssistantMessageDelta,
AssistantTurnEnd,
AssistantUsage,
ModelCallFailure,
Abort,
ToolUserRequested,
ToolExecutionStart,
ToolExecutionPartialResult,
ToolExecutionProgress,
ToolExecutionComplete,
SkillInvoked,
SubagentStarted,
SubagentCompleted,
SubagentFailed,
SubagentSelected,
SubagentDeselected,
HookStart,
HookEnd,
HookProgress,
SessionBinaryAsset,
SystemMessage,
SystemNotification,
PermissionRequested,
PermissionCompleted,
UserInputRequested,
UserInputCompleted,
ElicitationRequested,
ElicitationCompleted,
SamplingRequested,
SamplingCompleted,
McpOauthRequired,
McpOauthCompleted,
SessionCustomNotification,
ExternalToolRequested,
ExternalToolCompleted,
CommandQueued,
CommandExecute,
CommandCompleted,
AutoModeSwitchRequested,
AutoModeSwitchCompleted,
CommandsChanged,
CapabilitiesChanged,
ExitPlanModeRequested,
ExitPlanModeCompleted,
SessionToolsUpdated,
SessionBackgroundTasksChanged,
SessionSkillsLoaded,
SessionCustomAgentsUpdated,
SessionMcpServersLoaded,
SessionMcpServerStatusChanged,
SessionExtensionsLoaded,
SessionCanvasOpened,
SessionCanvasRegistryChanged,
SessionCanvasClosed,
SessionExtensionsAttachmentsPushed,
McpAppToolCallComplete,
Unknown,
}Expand description
Identifies the kind of session event.
Variants§
SessionStart
SessionResume
SessionRemoteSteerableChanged
SessionError
SessionIdle
SessionTitleChanged
SessionScheduleCreated
SessionScheduleCancelled
SessionAutopilotObjectiveChanged
SessionInfo
SessionWarning
SessionModelChange
SessionModeChanged
SessionPermissionsChanged
SessionPlanChanged
SessionTodosChanged
SessionWorkspaceFileChanged
SessionHandoff
SessionTruncation
SessionSnapshotRewind
SessionShutdown
SessionContextChanged
SessionUsageInfo
SessionCompactionStart
SessionCompactionComplete
SessionTaskComplete
UserMessage
PendingMessagesModified
AssistantTurnStart
AssistantIntent
AssistantReasoning
AssistantReasoningDelta
AssistantStreamingDelta
AssistantMessage
AssistantMessageStart
AssistantMessageDelta
AssistantTurnEnd
AssistantUsage
ModelCallFailure
Abort
ToolUserRequested
ToolExecutionStart
ToolExecutionPartialResult
ToolExecutionProgress
ToolExecutionComplete
SkillInvoked
SubagentStarted
SubagentCompleted
SubagentFailed
SubagentSelected
SubagentDeselected
HookStart
HookEnd
HookProgress
SessionBinaryAsset
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
SystemMessage
SystemNotification
PermissionRequested
PermissionCompleted
UserInputRequested
UserInputCompleted
ElicitationRequested
ElicitationCompleted
SamplingRequested
SamplingCompleted
McpOauthRequired
McpOauthCompleted
SessionCustomNotification
ExternalToolRequested
ExternalToolCompleted
CommandQueued
CommandExecute
CommandCompleted
AutoModeSwitchRequested
AutoModeSwitchCompleted
CommandsChanged
CapabilitiesChanged
ExitPlanModeRequested
ExitPlanModeCompleted
SessionToolsUpdated
SessionBackgroundTasksChanged
SessionSkillsLoaded
SessionCustomAgentsUpdated
SessionMcpServersLoaded
SessionMcpServerStatusChanged
SessionExtensionsLoaded
SessionCanvasOpened
SessionCanvasRegistryChanged
SessionCanvasClosed
SessionExtensionsAttachmentsPushed
McpAppToolCallComplete
Unknown
Unknown event type for forward compatibility.
Trait Implementations§
Source§impl Clone for SessionEventType
impl Clone for SessionEventType
Source§fn clone(&self) -> SessionEventType
fn clone(&self) -> SessionEventType
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 SessionEventType
impl Debug for SessionEventType
Source§impl Default for SessionEventType
impl Default for SessionEventType
Source§fn default() -> SessionEventType
fn default() -> SessionEventType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionEventType
impl<'de> Deserialize<'de> for SessionEventType
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 Eq for SessionEventType
Source§impl Hash for SessionEventType
impl Hash for SessionEventType
Source§impl PartialEq for SessionEventType
impl PartialEq for SessionEventType
Source§fn eq(&self, other: &SessionEventType) -> bool
fn eq(&self, other: &SessionEventType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionEventType
impl Serialize for SessionEventType
impl StructuralPartialEq for SessionEventType
Auto Trait Implementations§
impl Freeze for SessionEventType
impl RefUnwindSafe for SessionEventType
impl Send for SessionEventType
impl Sync for SessionEventType
impl Unpin for SessionEventType
impl UnsafeUnpin for SessionEventType
impl UnwindSafe for SessionEventType
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