Action Input Error

In my Searcher Agent, I’m setting: tools=[searchTool],
searchTool = SerperDevTool( api_key=srprKey, n_results=numRet )

Anyone have an idea why I’m getting the following error:

Tool Output:

Error: the Action Input is not a valid key, value dictionary.

Agent: Senior Web Searcher

Task: Perform a web search about “AI for Sustainable Development Goals” to find relevant URLs.

Agent: Senior Web Searcher

Using tool: Search the internet

Tool Input:

“{"name": "AI for Sustainable Development Goals", "description": "", "args_schema": {}, "return_direct": false, "verbose": true, "callbacks": "None", "callback_manager": "None", "tags": ["funding", "grant"], "metadata": {"search_query": "AI for Sustainable Development Goals"}, "handle_tool_error": false, "handle_validation_error": false, "response_format": "content_and_artifact", "func": "None", "coroutine": "None"}”

Tool Output:

Error: the Action Input is not a valid key, value dictionary.

I am also faced the same issue bro.

This is how I resolved the issue:
Change the prompt (goal,backstory,description, .etc)

Instruct the agent how the output should be like giving an example of the output.

Hope this helps.

Ah, good suggestions. I will give them a try. Thank you!
Baruch

And one more thing is try to use the best model.
Sometimes you may need a better model for the crew ai agents.

Thank you! I have a few on my computer, and will document test results with each.
Baruch