SergeyO7 commited on
Commit
b64f94a
·
verified ·
1 Parent(s): 574d480

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +17 -5
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": "You are Magus...",
357
- "managed_agent": "Decomposing problem...",
358
- "planning": "Step-by-Step Plan...",
359
- "final_answer": "Final Verified Answer..."
 
 
 
 
 
 
 
 
 
 
 
 
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: