pub enum AgentCommand {
Show 33 variants
Prompt {
message: String,
images: Vec<ImageContent>,
streaming_behavior: Option<StreamingBehavior>,
},
Steer {
message: String,
images: Vec<ImageContent>,
},
FollowUp {
message: String,
images: Vec<ImageContent>,
},
Abort,
NewSession {
parent_session: Option<String>,
},
GetState,
SetModel {
provider: String,
model_id: String,
},
CycleModel,
GetAvailableModels,
SetThinkingLevel {
level: ThinkingLevel,
},
CycleThinkingLevel,
GetAvailableThinkingLevels,
SetSteeringMode {
mode: QueueMode,
},
SetFollowUpMode {
mode: QueueMode,
},
Compact {
custom_instructions: Option<String>,
},
SetAutoCompaction {
enabled: bool,
},
SetAutoRetry {
enabled: bool,
},
AbortRetry,
Bash {
command: String,
exclude_from_context: Option<bool>,
},
AbortBash,
GetSessionStats,
ExportHtml {
output_path: Option<String>,
},
SwitchSession {
session_path: String,
},
Fork {
entry_id: String,
},
Clone,
GetForkMessages,
GetEntries {
since: Option<String>,
},
GetTree,
GetLastAssistantText,
SetSessionName {
name: String,
},
GetMessages,
GetCommands,
ClearQueue,
}Expand description
An agent session command (the RPC command without id).
Variants§
Prompt
Send a prompt; replies once it was handled, queued or started.
Fields
images: Vec<ImageContent>Attachments.
streaming_behavior: Option<StreamingBehavior>Queueing while streaming.
Steer
Queue a steering message.
FollowUp
Queue a follow-up message.
Abort
Abort the current operation and wait for idle.
NewSession
Start a new session.
GetState
Session state.
SetModel
Select a model.
CycleModel
Cycle to the next model.
GetAvailableModels
Models with credentials.
SetThinkingLevel
Set the thinking level.
Fields
level: ThinkingLevelLevel.
CycleThinkingLevel
Cycle the thinking level.
GetAvailableThinkingLevels
Levels the model supports.
SetSteeringMode
Steering drain mode.
SetFollowUpMode
Follow-up drain mode.
Compact
Manual compaction.
SetAutoCompaction
Toggle automatic compaction.
SetAutoRetry
Toggle automatic retry.
AbortRetry
Cancel a pending retry.
Bash
Run a ! command.
Fields
AbortBash
Cancel running ! commands.
GetSessionStats
Token and cost statistics.
ExportHtml
Export the branch as HTML.
SwitchSession
Open another session file.
Fork
Fork before a user message.
Clone
Clone the session at its leaf.
GetForkMessages
User messages available for forking.
GetEntries
Session entries (optionally after since).
GetTree
Session tree.
GetLastAssistantText
Text of the last assistant message.
SetSessionName
Set the session display name.
GetMessages
Transcript messages.
GetCommands
Slash commands invocable through prompt.
ClearQueue
Clear both queues.