pub struct CommandExecutionApprovalParams {
pub thread_id: String,
pub turn_id: String,
pub call_id: String,
pub command: String,
pub cwd: String,
pub reason: Option<String>,
}Expand description
Parameters for item/commandExecution/requestApproval (server → client).
The server sends this as a ServerMessage::Request when the agent wants
to execute a command that requires user approval. Respond with
CommandExecutionApprovalResponse.
Fields§
§thread_id: String§turn_id: String§call_id: StringUnique identifier for this tool call.
command: StringThe shell command the agent wants to run.
cwd: StringWorking directory for the command.
reason: Option<String>Human-readable explanation of why the command is needed.
Trait Implementations§
Source§impl Clone for CommandExecutionApprovalParams
impl Clone for CommandExecutionApprovalParams
Source§fn clone(&self) -> CommandExecutionApprovalParams
fn clone(&self) -> CommandExecutionApprovalParams
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<'de> Deserialize<'de> for CommandExecutionApprovalParams
impl<'de> Deserialize<'de> for CommandExecutionApprovalParams
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 CommandExecutionApprovalParams
impl RefUnwindSafe for CommandExecutionApprovalParams
impl Send for CommandExecutionApprovalParams
impl Sync for CommandExecutionApprovalParams
impl Unpin for CommandExecutionApprovalParams
impl UnsafeUnpin for CommandExecutionApprovalParams
impl UnwindSafe for CommandExecutionApprovalParams
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