Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -448,7 +448,7 @@ class MagAgent:
|
|
| 448 |
"""Constructs task-specific prompts using templates"""
|
| 449 |
system_template = self.prompt_templates["system_prompt"]["template"]
|
| 450 |
managed_agent_template = self.prompt_templates["managed_agent"]["template"].format(
|
| 451 |
-
|
| 452 |
question_analysis=question,
|
| 453 |
subtasks=self._generate_subtasks(question),
|
| 454 |
validation_rules=self._get_validation_rules()
|
|
|
|
| 448 |
"""Constructs task-specific prompts using templates"""
|
| 449 |
system_template = self.prompt_templates["system_prompt"]["template"]
|
| 450 |
managed_agent_template = self.prompt_templates["managed_agent"]["template"].format(
|
| 451 |
+
task=f"Task ID: {task_id}\nQuestion: {question}\nDate: {datetime.now().strftime('%Y-%m-%d')}",
|
| 452 |
question_analysis=question,
|
| 453 |
subtasks=self._generate_subtasks(question),
|
| 454 |
validation_rules=self._get_validation_rules()
|