pub enum Command {
Handshake {
version: u32,
capabilities: Vec<String>,
},
Plan {
request_id: Uuid,
goal: String,
context: HashMap<String, String>,
},
ToolCall {
request_id: Uuid,
tool: String,
args: Value,
timeout_ms: Option<u64>,
},
HookLoad {
request_id: Uuid,
hook_type: String,
script: String,
},
ShellExec {
request_id: Uuid,
command: String,
shell: Option<String>,
cwd: Option<String>,
env: HashMap<String, String>,
timeout_ms: Option<u64>,
},
Shutdown,
}Expand description
Command sent to the core service
Variants§
Handshake
Initialize service with client capabilities
Plan
Plan execution request
ToolCall
Execute a tool call
HookLoad
Load hook configuration
ShellExec
Shell command execution
Fields
Shutdown
Request service shutdown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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