Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -367,13 +367,14 @@ class MagAgent:
|
|
| 367 |
"sub_templates": {
|
| 368 |
"initial_plan": "...",
|
| 369 |
"initial_facts": "..."
|
|
|
|
| 370 |
},
|
| 371 |
"final_answer": {
|
| 372 |
"template": "Final Verified Answer...",
|
| 373 |
"variables": ["sources", "answer"]
|
| 374 |
-
|
| 375 |
}
|
| 376 |
-
|
| 377 |
try:
|
| 378 |
with open("prompts.yaml") as f:
|
| 379 |
user_prompts = yaml.safe_load(f)
|
|
|
|
| 367 |
"sub_templates": {
|
| 368 |
"initial_plan": "...",
|
| 369 |
"initial_facts": "..."
|
| 370 |
+
},
|
| 371 |
},
|
| 372 |
"final_answer": {
|
| 373 |
"template": "Final Verified Answer...",
|
| 374 |
"variables": ["sources", "answer"]
|
| 375 |
+
}
|
| 376 |
}
|
| 377 |
+
|
| 378 |
try:
|
| 379 |
with open("prompts.yaml") as f:
|
| 380 |
user_prompts = yaml.safe_load(f)
|