pub enum CopilotEvent {
Show 16 variants
SessionStart(SessionStart),
SessionShutdown(SessionShutdown),
CompactionComplete(Value),
SessionOther {
kind: String,
payload: Value,
},
UserMessage(MessageEvent),
AssistantTurnStart,
AssistantMessage(MessageEvent),
AssistantTurnEnd,
ToolStart(ToolExecution),
ToolComplete(ToolExecution),
SubagentStarted(Subagent),
SubagentCompleted(Subagent),
SkillInvoked(Value),
Hook {
kind: String,
payload: Value,
},
Abort(Value),
Unknown {
kind: String,
payload: Value,
},
}Expand description
A semantically classified events.jsonl line.
Variants§
SessionStart(SessionStart)
SessionShutdown(SessionShutdown)
CompactionComplete(Value)
SessionOther
Any other session.* event we don’t specifically model.
UserMessage(MessageEvent)
AssistantTurnStart
AssistantMessage(MessageEvent)
AssistantTurnEnd
ToolStart(ToolExecution)
ToolComplete(ToolExecution)
SubagentStarted(Subagent)
SubagentCompleted(Subagent)
SkillInvoked(Value)
Hook
Abort(Value)
Unknown
Trait Implementations§
Source§impl Clone for CopilotEvent
impl Clone for CopilotEvent
Source§fn clone(&self) -> CopilotEvent
fn clone(&self) -> CopilotEvent
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 moreAuto Trait Implementations§
impl Freeze for CopilotEvent
impl RefUnwindSafe for CopilotEvent
impl Send for CopilotEvent
impl Sync for CopilotEvent
impl Unpin for CopilotEvent
impl UnsafeUnpin for CopilotEvent
impl UnwindSafe for CopilotEvent
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