feat: add HTTP request tool for API interactions
Implements #210 - Add http_request tool that enables the agent to make HTTP requests to external APIs. Features: - Supports GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS methods - JSON request/response handling - Configurable timeout (default: 30s) - Configurable max response size (default: 1MB) - Security: domain allowlist, blocks local/private IPs (SSRF protection) - Headers support with auth token redaction Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9bdbc1287c
commit
1140a7887d
6 changed files with 875 additions and 8 deletions
|
|
@ -105,6 +105,7 @@ pub fn run_wizard() -> Result<Config> {
|
|||
composio: composio_config,
|
||||
secrets: secrets_config,
|
||||
browser: BrowserConfig::default(),
|
||||
http_request: crate::config::HttpRequestConfig::default(),
|
||||
identity: crate::config::IdentityConfig::default(),
|
||||
agents: std::collections::HashMap::new(),
|
||||
};
|
||||
|
|
@ -297,6 +298,7 @@ pub fn run_quick_setup(
|
|||
composio: ComposioConfig::default(),
|
||||
secrets: SecretsConfig::default(),
|
||||
browser: BrowserConfig::default(),
|
||||
http_request: crate::config::HttpRequestConfig::default(),
|
||||
identity: crate::config::IdentityConfig::default(),
|
||||
agents: std::collections::HashMap::new(),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue