pub struct WebFetchConfig { /* private fields */ }Expand description
Configuration for WebFetchTool.
Implementations§
Source§impl WebFetchConfig
impl WebFetchConfig
Sourcepub fn with_allow_local(self, allow_local: bool) -> Self
pub fn with_allow_local(self, allow_local: bool) -> Self
Sets whether explicit loopback targets (localhost, 127.0.0.1, ::1) are permitted.
Sourcepub fn with_live_network_policy(self, policy: LivePolicyHandle) -> Self
pub fn with_live_network_policy(self, policy: LivePolicyHandle) -> Self
Attaches the live unified LivePolicyHandle shared with
session permissions, workspace allowed_domains, and network policy.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Overrides the per-request timeout.
Sourcepub fn with_max_response_bytes(self, max_response_bytes: usize) -> Self
pub fn with_max_response_bytes(self, max_response_bytes: usize) -> Self
Overrides the maximum response body size downloaded in bytes.
Sourcepub fn with_max_output_chars(self, max_output_chars: usize) -> Self
pub fn with_max_output_chars(self, max_output_chars: usize) -> Self
Overrides the maximum model-visible output characters.
Trait Implementations§
Source§impl Clone for WebFetchConfig
impl Clone for WebFetchConfig
Source§impl Debug for WebFetchConfig
impl Debug for WebFetchConfig
Auto Trait Implementations§
impl Forget for WebFetchConfig
impl Freeze for WebFetchConfigwhere
*const ArcInner<RwLock<Arc<LivePolicyBaseline>>> is !null: Freeze,
PhantomData<ArcInner<RwLock<Arc<LivePolicyBaseline>>>>: Freeze,
*const ArcInner<RwLock<ProcessSessionPermissionState>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ProcessSessionPermissionState>>>: Freeze,
*const ArcInner<ChildWorkspacePolicyOverride> is !null: Freeze,
PhantomData<ArcInner<ChildWorkspacePolicyOverride>>: Freeze,
impl Move for WebFetchConfig
impl RefUnwindSafe for WebFetchConfigwhere
Atomic<usize>: RefUnwindSafe,
RwLock<Arc<LivePolicyBaseline>>: RefUnwindSafe,
RwLock<ProcessSessionPermissionState>: RefUnwindSafe,
impl Send for WebFetchConfig
impl Sync for WebFetchConfig
impl Unpin for WebFetchConfig
impl UnsafeUnpin for WebFetchConfigwhere
*const ArcInner<RwLock<Arc<LivePolicyBaseline>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<Arc<LivePolicyBaseline>>>>: UnsafeUnpin,
*const ArcInner<RwLock<ProcessSessionPermissionState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ProcessSessionPermissionState>>>: UnsafeUnpin,
*const ArcInner<ChildWorkspacePolicyOverride> is !null: UnsafeUnpin,
PhantomData<ArcInner<ChildWorkspacePolicyOverride>>: UnsafeUnpin,
impl UnwindSafe for WebFetchConfigwhere
Arc<RwLock<Arc<LivePolicyBaseline>>>: UnwindSafe,
Arc<RwLock<ProcessSessionPermissionState>>: UnwindSafe,
Arc<ChildWorkspacePolicyOverride>: UnwindSafe,
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