pub enum RpcCommand {
Show 26 variants
Prompt {
id: Option<String>,
message: String,
images: Option<Vec<ImageContent>>,
streaming_behavior: Option<StreamingBehavior>,
},
Steer {
id: Option<String>,
message: String,
images: Option<Vec<ImageContent>>,
},
FollowUp {
id: Option<String>,
message: String,
images: Option<Vec<ImageContent>>,
},
Abort {
id: Option<String>,
},
ClearQueue {
id: Option<String>,
},
NewSession {
id: Option<String>,
},
GetState {
id: Option<String>,
},
GetMessages {
id: Option<String>,
},
SetModel {
id: Option<String>,
provider: String,
model_id: String,
},
CycleModel {
id: Option<String>,
},
GetAvailableModels {
id: Option<String>,
},
SetThinkingLevel {
id: Option<String>,
level: String,
},
CycleThinkingLevel {
id: Option<String>,
},
GetAvailableThinkingLevels {
id: Option<String>,
},
SetSteeringMode {
id: Option<String>,
mode: String,
},
SetFollowUpMode {
id: Option<String>,
mode: String,
},
Compact {
id: Option<String>,
instructions: Option<String>,
},
SetAutoCompaction {
id: Option<String>,
enabled: bool,
},
SetAutoRetry {
id: Option<String>,
enabled: bool,
},
AbortRetry {
id: Option<String>,
},
Bash {
id: Option<String>,
command: String,
},
AbortBash {
id: Option<String>,
},
GetSessionStats {
id: Option<String>,
},
ExportHtml {
id: Option<String>,
path: Option<String>,
},
SetSessionName {
id: Option<String>,
name: String,
},
Raw(Value),
}Expand description
A client → agent command. Serializes with the wire’s type tag; the
optional id correlates the matching RpcResponse.
Variants§
Prompt
Steer
FollowUp
Abort
ClearQueue
NewSession
GetState
GetMessages
SetModel
CycleModel
GetAvailableModels
SetThinkingLevel
CycleThinkingLevel
GetAvailableThinkingLevels
SetSteeringMode
SetFollowUpMode
Compact
SetAutoCompaction
SetAutoRetry
AbortRetry
Bash
Run a shell command outside the model; output joins context on the
NEXT prompt. Streams bash_execution_update events carrying this
command’s id.
AbortBash
GetSessionStats
ExportHtml
SetSessionName
Raw(Value)
Anything this crate doesn’t model yet — serialized as its raw object so new commands work without a crate release.
Implementations§
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
Source§impl Serialize for RpcCommand
impl Serialize 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