Facelook commited on
Commit
8271247
·
1 Parent(s): 7c9bc5f

Fixed error: Error during search: MultiStepAgent.run() got an unexpected keyword argument 'prompt'

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=prompt) # Pass the prompt with named parameter
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}"