Spaces:
Runtime error
Runtime error
Scott Cogan
commited on
Commit
·
4ed31d3
1
Parent(s):
0bf52c9
fix: Update CustomCodeAgent to properly handle template population using string format
Browse files
app.py
CHANGED
|
@@ -241,8 +241,8 @@ class CustomCodeAgent(CodeAgent):
|
|
| 241 |
|
| 242 |
def initialize_system_prompt(self):
|
| 243 |
# Override to use tools_dict for template rendering
|
| 244 |
-
|
| 245 |
-
|
| 246 |
tools=self.tools_dict,
|
| 247 |
task=self.task,
|
| 248 |
managed_agents=self.managed_agents,
|
|
|
|
| 241 |
|
| 242 |
def initialize_system_prompt(self):
|
| 243 |
# Override to use tools_dict for template rendering
|
| 244 |
+
template = self.prompt_templates["system_prompt"]
|
| 245 |
+
return template.format(
|
| 246 |
tools=self.tools_dict,
|
| 247 |
task=self.task,
|
| 248 |
managed_agents=self.managed_agents,
|