pub struct PermissionPromptRequestUrl {
pub auto_approval: Option<PermissionAutoApproval>,
pub intention: String,
pub kind: PermissionPromptRequestUrlKind,
pub request_sandbox_bypass: Option<bool>,
pub request_sandbox_bypass_reason: Option<String>,
pub tool_call_id: Option<String>,
pub url: String,
}Expand description
URL access permission prompt
Fields§
§auto_approval: Option<PermissionAutoApproval>Auto-approval judge information for this request; present only when auto mode is enabled.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
intention: StringHuman-readable description of why the URL is being accessed
kind: PermissionPromptRequestUrlKindPrompt kind discriminator
request_sandbox_bypass: Option<bool>True when this URL fetch is requesting to bypass the sandbox network policy: either the model set requestSandboxBypass: true, or the tool re-issued the request as an interactive bypass after the network policy denied the approved URL (host opted in via sandbox.allowBypass). This is a request, not a grant: the fetch runs 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
url: StringURL to be fetched
Trait Implementations§
Source§impl Clone for PermissionPromptRequestUrl
impl Clone for PermissionPromptRequestUrl
Source§fn clone(&self) -> PermissionPromptRequestUrl
fn clone(&self) -> PermissionPromptRequestUrl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more