refactor: tighten tool schema types

This commit is contained in:
Peter Steinberger
2026-04-23 05:06:45 +01:00
parent 675cf823fd
commit 33aea44fe5
11 changed files with 36 additions and 37 deletions

View File

@@ -231,7 +231,7 @@ export function createOllamaWebSearchProvider(): WebSearchProviderPlugin {
createTool: (ctx) => ({
description:
"Search the web using Ollama's experimental web search API. Returns titles, URLs, and snippets from the configured Ollama host.",
parameters: OLLAMA_WEB_SEARCH_SCHEMA as unknown as Record<string, unknown>,
parameters: OLLAMA_WEB_SEARCH_SCHEMA,
execute: async (args) =>
await runOllamaWebSearch({
config: ctx.config,