pub enum Action {
Show 22 variants
UserInput {
session_id: SessionId,
text: NonEmptyString,
op_id: OpId,
message_id: MessageId,
model: ModelId,
timestamp: u64,
},
UserEditedMessage {
session_id: SessionId,
message_id: MessageId,
new_content: String,
op_id: OpId,
new_message_id: MessageId,
model: ModelId,
timestamp: u64,
},
ToolApprovalRequested {
session_id: SessionId,
request_id: RequestId,
tool_call: ToolCall,
},
ToolApprovalDecided {
session_id: SessionId,
request_id: RequestId,
decision: ApprovalDecision,
remember: Option<ApprovalMemory>,
},
ToolExecutionStarted {
session_id: SessionId,
tool_call_id: ToolCallId,
tool_name: String,
tool_parameters: Value,
},
ToolResult {
session_id: SessionId,
tool_call_id: ToolCallId,
tool_name: String,
result: Result<ToolResult, ToolError>,
},
ToolSchemasAvailable {
session_id: SessionId,
tools: Vec<ToolSchema>,
},
ToolSchemasUpdated {
session_id: SessionId,
schemas: Vec<ToolSchema>,
source: SchemaSource,
},
SwitchPrimaryAgent {
session_id: SessionId,
agent_id: String,
},
McpServerStateChanged {
session_id: SessionId,
server_name: String,
state: McpServerState,
},
ModelResponseComplete {
session_id: SessionId,
op_id: OpId,
message_id: MessageId,
content: Vec<AssistantContent>,
timestamp: u64,
},
ModelResponseError {
session_id: SessionId,
op_id: OpId,
error: String,
},
Cancel {
session_id: SessionId,
op_id: Option<OpId>,
},
DirectBashCommand {
session_id: SessionId,
op_id: OpId,
message_id: MessageId,
command: String,
timestamp: u64,
},
DequeueQueuedItem {
session_id: SessionId,
},
DrainQueuedWork {
session_id: SessionId,
},
RequestCompaction {
session_id: SessionId,
op_id: OpId,
model: ModelId,
},
Shutdown,
Hydrate {
session_id: SessionId,
events: Vec<SessionEvent>,
starting_sequence: u64,
},
WorkspaceFilesListed {
session_id: SessionId,
files: Vec<String>,
},
CompactionComplete {
session_id: SessionId,
op_id: OpId,
compaction_id: CompactionId,
summary_message_id: MessageId,
summary: String,
compacted_head_message_id: MessageId,
previous_active_message_id: Option<MessageId>,
model: String,
timestamp: u64,
},
CompactionFailed {
session_id: SessionId,
op_id: OpId,
error: String,
},
}Variants§
UserInput
Fields
§
text: NonEmptyStringUserEditedMessage
Fields
ToolApprovalRequested
ToolApprovalDecided
ToolExecutionStarted
ToolResult
ToolSchemasAvailable
ToolSchemasUpdated
SwitchPrimaryAgent
McpServerStateChanged
ModelResponseComplete
Fields
§
content: Vec<AssistantContent>ModelResponseError
Cancel
DirectBashCommand
DequeueQueuedItem
DrainQueuedWork
RequestCompaction
Shutdown
Hydrate
WorkspaceFilesListed
CompactionComplete
Fields
§
compaction_id: CompactionIdCompactionFailed
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request