Remove memory_research (depended on unreliable SearXNG); research now uses built-in web_search
This commit is contained in:
1 parent
d1c87572ee
commit
adfa630578
5 files changed
+8
-32
No files matched your search
@@ -126,16 +126,6 @@ def _tool_list_gaps(args):
|
||||
return json.dumps({"gaps": gaps}, ensure_ascii=False, indent=2), False
|
||||
|
||||
|
||||
def _tool_research(args):
|
||||
from pegas_memory import research
|
||||
question = str(args.get("question") or "").strip()
|
||||
if not question:
|
||||
return json.dumps({"error": "пустой question"}, ensure_ascii=False), True
|
||||
result = research.research_question(_conn(), question)
|
||||
_sync()
|
||||
return json.dumps(result, ensure_ascii=False, indent=2), False
|
||||
|
||||
|
||||
def _tool_stats(args):
|
||||
c = _conn()
|
||||
with c.cursor() as cur:
|
||||
@@ -310,18 +300,6 @@ TOOLS = [
|
||||
"отсортированный по приоритету. Вызывай, чтобы узнать, что ещё нужно исследовать.",
|
||||
"inputSchema": {"type": "object", "properties": {}, "required": []},
|
||||
},
|
||||
{
|
||||
"name": "memory_research",
|
||||
"description": "Полный цикл исследования вопроса: веб-поиск, загрузка найденных источников, "
|
||||
"дистилляция в атомы, сохранение. Для ручного поиска используй встроенный web_search.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"question": {"type": "string", "description": "Исследовательский вопрос."},
|
||||
},
|
||||
"required": ["question"],
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "memory_stats",
|
||||
"description": "Сколько всего в твоей базе знаний: атомов, документов, открытых пробелов. "
|
||||
@@ -463,7 +441,6 @@ def handle(msg):
|
||||
"memory_ingest": _tool_ingest,
|
||||
"memory_add_gap": _tool_add_gap,
|
||||
"memory_list_gaps": _tool_list_gaps,
|
||||
"memory_research": _tool_research,
|
||||
"memory_stats": _tool_stats,
|
||||
"memory_store_code": _tool_store_code,
|
||||
"memory_search_code": _tool_search_code,
|
||||
|
||||
Reference in new issue
Block a user