add self-hosted web search via SearXNG

new search_web tool calls SearXNG (cluster-internal, free, no tracking)
instead of Mistral's built-in web_search ($0.03/query + rate limits).

returns structured results from DuckDuckGo, Wikipedia, StackOverflow,
GitHub, arXiv, and Brave. no API keys, no cost, no rate limits.

removed Mistral AgentTool::web_search() from orchestrator — replaced
by the custom tool which goes through Sol's normal tool dispatch.
This commit is contained in:
2026-03-23 09:52:56 +00:00
parent 567d4c1171
commit 1ba4e016ba
4 changed files with 195 additions and 5 deletions

View File

@@ -154,6 +154,8 @@ pub struct ServicesConfig {
pub gitea: Option<GiteaConfig>,
#[serde(default)]
pub kratos: Option<KratosConfig>,
#[serde(default)]
pub searxng: Option<SearxngConfig>,
}
#[derive(Debug, Clone, Deserialize)]
@@ -166,6 +168,11 @@ pub struct KratosConfig {
pub admin_url: String,
}
#[derive(Debug, Clone, Deserialize)]
pub struct SearxngConfig {
pub url: String,
}
#[derive(Debug, Clone, Deserialize)]
pub struct VaultConfig {
/// OpenBao/Vault URL. Default: http://openbao.data.svc.cluster.local:8200