Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/config/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1577,6 +1577,7 @@ pub enum SearchProvider {
#[default]
Brave,
Perplexity,
Jina,
}

/// Web search tool configuration.
Expand All @@ -1586,7 +1587,7 @@ pub struct WebSearchConfig {
pub enabled: bool,
/// Search provider.
pub provider: SearchProvider,
/// Brave Search API key (overrides `BRAVE_API_KEY` env var).
/// Search API key (overrides `BRAVE_API_KEY` / `JINA_API_KEY` env var).
#[serde(
default,
serialize_with = "serialize_option_secret",
Expand Down
4 changes: 2 additions & 2 deletions crates/config/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ deny = [] # Tools to always deny (e.g., ["browser"])

[tools.web.search]
enabled = true # Enable web search tool
provider = "brave" # Search provider: "brave" or "perplexity"
provider = "brave" # Search provider: "brave", "perplexity", or "jina"
max_results = 5 # Number of results to return (1-10)
timeout_seconds = 30 # HTTP request timeout
cache_ttl_minutes = 15 # Cache results for this many minutes (0 = no cache)
duckduckgo_fallback = false # Off by default; enable only if you want DDG fallback without API keys
# api_key = "..." # Brave API key (or set BRAVE_API_KEY env var)
# api_key = "..." # Brave/Jina API key (or set BRAVE_API_KEY / JINA_API_KEY env var)

# Perplexity-specific settings (when provider = "perplexity")
[tools.web.search.perplexity]
Expand Down
Loading