pub enum RpcCommand {
Prompt {
id: Option<String>,
prompt: String,
backend: Option<String>,
max_iterations: Option<u32>,
},
Guidance {
id: Option<String>,
message: String,
},
Steer {
id: Option<String>,
message: String,
},
FollowUp {
id: Option<String>,
message: String,
},
Abort {
id: Option<String>,
reason: Option<String>,
},
GetState {
id: Option<String>,
},
GetIterations {
id: Option<String>,
include_content: bool,
},
SetHat {
id: Option<String>,
hat: String,
},
ExtensionUiResponse {
id: Option<String>,
request_id: String,
response: Value,
},
}Expand description
Commands sent to Ralph via stdin.
Each command is a single JSON line. Commands with an id field receive
correlated responses.
Variants§
Prompt
Start the loop with a prompt (must be sent before loop starts).
Fields
Guidance
Inject guidance that affects the current or next iteration. Equivalent to the TUI’s guidance input.
Steer
Steer the agent immediately during the current iteration. The guidance is injected into the running context.
FollowUp
Queue a follow-up message for the next iteration.
Abort
Request immediate termination of the loop.
GetState
Request the current loop state snapshot.
GetIterations
Request iteration history and metadata.
Fields
SetHat
Force a hat change for the next iteration.
ExtensionUiResponse
Response to an extension UI prompt (future support).
Implementations§
Source§impl RpcCommand
impl RpcCommand
Trait Implementations§
Source§impl Clone for RpcCommand
impl Clone for RpcCommand
Source§fn clone(&self) -> RpcCommand
fn clone(&self) -> RpcCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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