Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -351,12 +351,24 @@ class MagAgent:
|
|
| 351 |
SpeechToTextTool(),
|
| 352 |
]
|
| 353 |
|
| 354 |
-
# Initialize with default prompts
|
| 355 |
self.prompt_templates = {
|
| 356 |
-
"system_prompt":
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 360 |
}
|
| 361 |
|
| 362 |
try:
|
|
|
|
| 351 |
SpeechToTextTool(),
|
| 352 |
]
|
| 353 |
|
| 354 |
+
# Initialize with default prompts as nested dictionaries
|
| 355 |
self.prompt_templates = {
|
| 356 |
+
"system_prompt": {
|
| 357 |
+
"template": "You are Magus...",
|
| 358 |
+
"variables": []
|
| 359 |
+
},
|
| 360 |
+
"managed_agent": {
|
| 361 |
+
"template": "Decomposing problem...",
|
| 362 |
+
"variables": ["question_analysis"]
|
| 363 |
+
},
|
| 364 |
+
"planning": {
|
| 365 |
+
"template": "Step-by-Step Plan...",
|
| 366 |
+
"variables": ["step1", "step2", "step3"]
|
| 367 |
+
},
|
| 368 |
+
"final_answer": {
|
| 369 |
+
"template": "Final Verified Answer...",
|
| 370 |
+
"variables": ["sources", "answer"]
|
| 371 |
+
}
|
| 372 |
}
|
| 373 |
|
| 374 |
try:
|