19 lines
484 B
Python
19 lines
484 B
Python
from typing import Any
|
|
|
|
from app.tools.base import Tool
|
|
|
|
|
|
class SearXNGSearchTool(Tool):
|
|
name = "searxng_search"
|
|
description = "Search the web through a SearXNG instance."
|
|
|
|
async def run(self, payload: dict[str, Any]) -> dict[str, Any]:
|
|
query = str(payload.get("query", "")).strip()
|
|
return {
|
|
"tool": self.name,
|
|
"status": "stub",
|
|
"query": query,
|
|
"message": "SearXNG integration is not wired yet.",
|
|
}
|
|
|