Spaces:
Configuration error
Configuration error
Scott Cogan commited on
Commit ·
198596f
1
Parent(s): 2b2c5c3
template update
Browse files
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 |
-
#
|
| 277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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...")
|