Fixed error: Error during search: MultiStepAgent.run() got an unexpected keyword argument 'prompt'
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ class BasicAgent:
|
|
| 28 |
try:
|
| 29 |
# Format the question as a proper prompt for CodeAgent
|
| 30 |
prompt = f"Answer this question: {question}"
|
| 31 |
-
search_result = self.agent.run(prompt
|
| 32 |
answer = search_result # Return the direct result from the agent
|
| 33 |
except Exception as e:
|
| 34 |
answer = f"Error during search: {e}"
|
|
|
|
| 28 |
try:
|
| 29 |
# Format the question as a proper prompt for CodeAgent
|
| 30 |
prompt = f"Answer this question: {question}"
|
| 31 |
+
search_result = self.agent.run(prompt) # Pass the prompt as a positional argument
|
| 32 |
answer = search_result # Return the direct result from the agent
|
| 33 |
except Exception as e:
|
| 34 |
answer = f"Error during search: {e}"
|