From cb41637209e36494f32fa080a226c4c9d885f8d7 Mon Sep 17 00:00:00 2001 From: sanil-23 Date: Wed, 3 Jun 2026 15:24:21 +0530 Subject: [PATCH] fix(agent): drop removed memory_tree modes from orchestrator prompt (#3275) Co-authored-by: Cyrus Gray --- src/openhuman/agent_registry/agents/orchestrator/prompt.md | 7 ++++--- src/openhuman/memory/query/search_entities.rs | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/openhuman/agent_registry/agents/orchestrator/prompt.md b/src/openhuman/agent_registry/agents/orchestrator/prompt.md index eb04ce603..d7ae7ea0f 100644 --- a/src/openhuman/agent_registry/agents/orchestrator/prompt.md +++ b/src/openhuman/agent_registry/agents/orchestrator/prompt.md @@ -182,13 +182,14 @@ Reach for `memory_tree` when the user asks about prior context that's already be Modes: - `mode: "search_entities"` — resolve a name to a canonical id (e.g. "alice" → `email:alice@example.com`). Call this first when the user mentions someone by name *and* you've decided memory_tree is the right tool. -- `mode: "query_topic"` — all cross-source mentions of an `entity_id` from `search_entities`. - `mode: "query_source"` — filter by `source_kind` (chat/email/document) and `time_window_days`. Use for retrospective "in my email last week…" intents — **not** for live "check my inbox" intents. -- `mode: "query_global"` — cross-source daily digest over `time_window_days` (7-day digest is pre-loaded into context on session start — only call for a different window or to force refresh). +- `mode: "smart_walk"` — multi-strategy retrieval (vector + keyword + entity lookup + tree browsing across raw files, wiki summaries, documents, and episodic memories). Best default for an open-ended natural-language question like "what did Alice and I decide on Q2". +- `mode: "walk"` — agentic multi-turn walk: the LLM navigates summaries and returns a synthesized answer for a natural-language query. Use when you want a guided traversal rather than broad retrieval. - `mode: "drill_down"` — expand a coarse `node_id` summary one level. - `mode: "fetch_leaves"` — pull raw `chunk_ids` for citation. +- `mode: "ingest_document"` — write a document into the tree for future retrieval. -Start cheap (query_* summaries), only drill_down/fetch_leaves when you need verbatim content. +Start cheap (`query_source` / `smart_walk` summaries), only drill_down/fetch_leaves when you need verbatim content. ## Citations diff --git a/src/openhuman/memory/query/search_entities.rs b/src/openhuman/memory/query/search_entities.rs index 640e5d3f6..a25182c11 100644 --- a/src/openhuman/memory/query/search_entities.rs +++ b/src/openhuman/memory/query/search_entities.rs @@ -18,7 +18,8 @@ impl Tool for MemoryTreeSearchEntitiesTool { "Free-text LIKE search over the entity index — resolve a name or \ handle to a canonical id (e.g. \"alice\" -> \ `email:alice@example.com`). ALWAYS call this first when the user \ - mentions someone by name before calling `memory_tree_query_topic`." + mentions someone by name before a `memory_tree` retrieval \ + (`query_source` / `smart_walk` / `walk`) keyed on that id." } fn parameters_schema(&self) -> serde_json::Value {