Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -625,7 +625,15 @@ def context_managed_run(self, query, max_steps=None, persist_conversation=None,
|
|
| 625 |
print(f"Conversation history trimmed from {original_length} to {len(self.conversation)} messages")
|
| 626 |
|
| 627 |
# Call the original run method with all parameters (including stream)
|
| 628 |
-
return original_code_agent_run(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 629 |
|
| 630 |
# Apply the monkey patch to CodeAgent class
|
| 631 |
CodeAgent.run = context_managed_run
|
|
|
|
| 625 |
print(f"Conversation history trimmed from {original_length} to {len(self.conversation)} messages")
|
| 626 |
|
| 627 |
# Call the original run method with all parameters (including stream)
|
| 628 |
+
return original_code_agent_run(
|
| 629 |
+
self,
|
| 630 |
+
query=query,
|
| 631 |
+
max_steps=max_steps,
|
| 632 |
+
persist_conversation=persist_conversation,
|
| 633 |
+
stream=stream,
|
| 634 |
+
reset=reset,
|
| 635 |
+
additional_args=additional_args
|
| 636 |
+
)
|
| 637 |
|
| 638 |
# Apply the monkey patch to CodeAgent class
|
| 639 |
CodeAgent.run = context_managed_run
|