pub struct ProxyConfigTool;Expand description
Runtime proxy configuration tool for HTTP/SOCKS proxy settings.
Operations:
get: Get current proxy settingsset: Set a proxy URL for a protocol (http, https, socks)clear: Clear a proxy setting for a protocoladd_bypass: Add a host to the no_proxy bypass listremove_bypass: Remove a host from the no_proxy bypass list
Trait Implementations§
Source§impl Clone for ProxyConfigTool
impl Clone for ProxyConfigTool
Source§fn clone(&self) -> ProxyConfigTool
fn clone(&self) -> ProxyConfigTool
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 Debug for ProxyConfigTool
impl Debug for ProxyConfigTool
Source§impl Default for ProxyConfigTool
impl Default for ProxyConfigTool
Source§fn default() -> ProxyConfigTool
fn default() -> ProxyConfigTool
Returns the “default value” for a type. Read more
Source§impl Tool for ProxyConfigTool
impl Tool for ProxyConfigTool
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description of what this tool does.
Used in system prompts so the LLM knows when to invoke this tool.
Source§fn input_schema(&self) -> Option<Value>
fn input_schema(&self) -> Option<Value>
JSON Schema describing the expected input parameters.
Returns
None if the tool accepts free-form text input. Read moreSource§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 str,
ctx: &'life2 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 str,
ctx: &'life2 ToolContext,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute the tool with the given input and context.
impl Copy for ProxyConfigTool
Auto Trait Implementations§
impl Freeze for ProxyConfigTool
impl RefUnwindSafe for ProxyConfigTool
impl Send for ProxyConfigTool
impl Sync for ProxyConfigTool
impl Unpin for ProxyConfigTool
impl UnsafeUnpin for ProxyConfigTool
impl UnwindSafe for ProxyConfigTool
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