pub enum RpcCommand {
Show 34 variants
Prompt {
message: String,
images: Vec<ImageContent>,
streaming_behavior: Option<StreamingBehavior>,
},
Steer {
message: String,
images: Vec<ImageContent>,
},
FollowUp {
message: String,
images: Vec<ImageContent>,
},
Abort,
ClearQueue,
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,
Unknown,
}Expand description
A command line on stdin, without its id.
Variants§
Prompt
Steer
FollowUp
Abort
ClearQueue
NewSession
GetState
SetModel
CycleModel
GetAvailableModels
SetThinkingLevel
Fields
§
level: ThinkingLevelCycleThinkingLevel
GetAvailableThinkingLevels
SetSteeringMode
SetFollowUpMode
Compact
SetAutoCompaction
SetAutoRetry
AbortRetry
Bash
AbortBash
GetSessionStats
ExportHtml
SwitchSession
Fork
Clone
GetForkMessages
GetEntries
GetTree
GetLastAssistantText
SetSessionName
GetMessages
GetCommands
Unknown
Any other type.
Trait Implementations§
Source§impl Clone for RpcCommand
impl Clone for RpcCommand
Source§impl Debug for RpcCommand
impl Debug for RpcCommand
Source§impl<'de> Deserialize<'de> for RpcCommand
impl<'de> Deserialize<'de> for RpcCommand
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
Source§impl PartialEq for RpcCommand
impl PartialEq for RpcCommand
impl StructuralPartialEq for RpcCommand
Auto Trait Implementations§
impl Freeze for RpcCommand
impl RefUnwindSafe for RpcCommand
impl Send for RpcCommand
impl Sync for RpcCommand
impl Unpin for RpcCommand
impl UnsafeUnpin for RpcCommand
impl UnwindSafe for RpcCommand
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