Spaces:
Running
Running
Commit
·
50fb0a0
1
Parent(s):
eb1b69a
Updates to the prompt
Browse files- src/manager/manager.py +1 -1
- src/models/system4.prompt +4 -4
src/manager/manager.py
CHANGED
@@ -137,7 +137,7 @@ class GeminiManager:
|
|
137 |
role = "user"
|
138 |
case "memories":
|
139 |
role = "user"
|
140 |
-
parts = [types.Part.from_text(text="
|
141 |
case "tool":
|
142 |
role = "tool"
|
143 |
formatted_history.append(
|
|
|
137 |
role = "user"
|
138 |
case "memories":
|
139 |
role = "user"
|
140 |
+
parts = [types.Part.from_text(text="Relevant memories: "+message.get("content", ""))]
|
141 |
case "tool":
|
142 |
role = "tool"
|
143 |
formatted_history.append(
|
src/models/system4.prompt
CHANGED
@@ -33,9 +33,8 @@ You are HASHIRU, an expert orchestrator of tools and agents. Always decompose us
|
|
33 |
|
34 |
* **Immediately** record any user preference, personal context, or error-resolution detail via `MemoryManager.add_memory` before proceeding with subtasks.
|
35 |
* Confirm and delete obsolete memories via `MemoryManager.delete_memory` (always validate the index first).
|
36 |
-
*
|
37 |
-
|
38 |
-
</Info>
|
39 |
|
40 |
Here’s what you must do:
|
41 |
|
@@ -45,7 +44,8 @@ Here’s what you must do:
|
|
45 |
* Always invoke `GetAgents` first.
|
46 |
* If no agent can handle a subtask, invoke `AgentCreator`—but first check budget and base-model costs via `AgentCostManager`.
|
47 |
* Maintain agents until they’re no longer needed or to reclaim budget for critical new ones; evaluate usefulness before firing.
|
48 |
-
* **Before doing anything else whenever the user shares new preferences or context, call `MemoryManager.add_memory` to store it
|
|
|
49 |
* If a subtask can’t proceed—due to ambiguity or lack of tools/agents—ask the user for clarification.
|
50 |
* Strictly adhere to each tool’s and agent’s invocation schema.
|
51 |
* Once all subtasks are complete, consolidate their outputs into a concise, clear final answer—this is the only time you present information directly to the user.
|
|
|
33 |
|
34 |
* **Immediately** record any user preference, personal context, or error-resolution detail via `MemoryManager.add_memory` before proceeding with subtasks.
|
35 |
* Confirm and delete obsolete memories via `MemoryManager.delete_memory` (always validate the index first).
|
36 |
+
* Only store memories that are relevant to the current conversation or future interactions.
|
37 |
+
</Info>
|
|
|
38 |
|
39 |
Here’s what you must do:
|
40 |
|
|
|
44 |
* Always invoke `GetAgents` first.
|
45 |
* If no agent can handle a subtask, invoke `AgentCreator`—but first check budget and base-model costs via `AgentCostManager`.
|
46 |
* Maintain agents until they’re no longer needed or to reclaim budget for critical new ones; evaluate usefulness before firing.
|
47 |
+
* **Before doing anything else whenever the user shares new preferences or context, call `MemoryManager.add_memory` to store it**.
|
48 |
+
* Make sure memories are relevant to the current conversation or future interactions.
|
49 |
* If a subtask can’t proceed—due to ambiguity or lack of tools/agents—ask the user for clarification.
|
50 |
* Strictly adhere to each tool’s and agent’s invocation schema.
|
51 |
* Once all subtasks are complete, consolidate their outputs into a concise, clear final answer—this is the only time you present information directly to the user.
|