pub struct PermissionRequestShell {
pub can_offer_session_approval: bool,
pub commands: Vec<PermissionRequestShellCommand>,
pub full_command_text: String,
pub has_write_file_redirection: bool,
pub intention: String,
pub kind: PermissionRequestShellKind,
pub possible_paths: Vec<String>,
pub possible_urls: Vec<PermissionRequestShellPossibleUrl>,
pub request_sandbox_bypass: Option<bool>,
pub request_sandbox_bypass_reason: Option<String>,
pub tool_call_id: Option<String>,
pub warning: Option<String>,
}Expand description
Shell command permission request
Fields§
§can_offer_session_approval: boolWhether the UI can offer session-wide approval for this command pattern
commands: Vec<PermissionRequestShellCommand>Parsed command identifiers found in the command text
full_command_text: StringThe complete shell command text to be executed
has_write_file_redirection: boolWhether the command includes a file write redirection (e.g., > or >>)
intention: StringHuman-readable description of what the command intends to do
kind: PermissionRequestShellKindPermission kind discriminator
possible_paths: Vec<String>File paths that may be read or written by the command
possible_urls: Vec<PermissionRequestShellPossibleUrl>URLs that may be accessed by the command
request_sandbox_bypass: Option<bool>True when the model has requested to run this command outside the sandbox (it set requestSandboxBypass: true and the host opted in via sandbox.allowBypass). This is a request, not a grant: the command runs unsandboxed only if the user approves this permission request. Hosts should highlight the elevated risk in the approval UI.
request_sandbox_bypass_reason: Option<String>Model-provided justification for the sandbox-bypass request. Only meaningful when requestSandboxBypass is true.
tool_call_id: Option<String>Tool call ID that triggered this permission request
warning: Option<String>Optional warning message about risks of running this command
Trait Implementations§
Source§impl Clone for PermissionRequestShell
impl Clone for PermissionRequestShell
Source§fn clone(&self) -> PermissionRequestShell
fn clone(&self) -> PermissionRequestShell
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more