pub enum ProtocolEvent {
AgentMessage {
session_id: SessionId,
chunk: ContentChunk,
},
AgentThought {
session_id: SessionId,
chunk: ContentChunk,
},
ToolCallStarted {
session_id: SessionId,
tool_call: ToolCall,
},
ToolCallUpdated {
session_id: SessionId,
update: ToolCallUpdate,
},
PlanUpdated {
session_id: SessionId,
plan: Plan,
},
ModeChanged {
session_id: SessionId,
mode: CurrentModeUpdate,
},
ConfigOptionsUpdated {
session_id: SessionId,
config_options: Vec<SessionConfigOption>,
},
CommandsUpdated {
session_id: SessionId,
commands: AvailableCommandsUpdate,
},
}Expand description
Protocol-level events from ACP session notifications.
Variants§
AgentMessage
AgentThought
ToolCallStarted
ToolCallUpdated
PlanUpdated
ModeChanged
ConfigOptionsUpdated
CommandsUpdated
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtocolEvent
impl RefUnwindSafe for ProtocolEvent
impl Send for ProtocolEvent
impl Sync for ProtocolEvent
impl Unpin for ProtocolEvent
impl UnsafeUnpin for ProtocolEvent
impl UnwindSafe for ProtocolEvent
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