feat: add web search tool with reranking support

Integrates SearXNG web search as a tool available during chat when the
agent has search enabled. Supports optional reranking of results via a
configurable reranking model. Replaces Python subprocess evaluation with
@pydantic/monty WASM runtime. Introduces stable tool call ID mapping to
avoid exposing provider-native IDs to the database.
This commit is contained in:
Zoe
2026-04-27 12:05:47 -05:00
parent 90d5698e76
commit 9914c043cb
6 changed files with 490 additions and 136 deletions
+1
View File
@@ -6,6 +6,7 @@ export type Provider = typeof schema.providers.$inferSelect;
export type ProviderWithModels = Provider & {
models: Model[];
defaultBaseUrl?: string;
};
export type ModelWithProvider = Model & {