Scott Cogan commited on
Commit
198596f
·
1 Parent(s): 2b2c5c3

template update

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -273,8 +273,13 @@ class CustomCodeAgent(CodeAgent):
273
  print("DEBUG: tools variable type:", type(self.tools))
274
  print("DEBUG: tools variable value:", self.tools)
275
 
276
- # Then render the system prompt as before
277
- system_prompt = self.template_manager.render_template("system_prompt", tools=self.tools_dict, managed_agents=self.managed_agents, authorized_imports=self.authorized_imports)
 
 
 
 
 
278
  return super().run(question_text, stream)
279
 
280
  print("[DEBUG] Creating agent instance...")
 
273
  print("DEBUG: tools variable type:", type(self.tools))
274
  print("DEBUG: tools variable value:", self.tools)
275
 
276
+ # Set the task for this run
277
+ self.task = question_text
278
+
279
+ # Initialize system prompt using the template
280
+ system_prompt = self.initialize_system_prompt()
281
+
282
+ # Call parent's run method
283
  return super().run(question_text, stream)
284
 
285
  print("[DEBUG] Creating agent instance...")