You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using SerperDevTool from crewai_tools on my agent, and i'm getting the follow error:
I encountered an error while trying to use the tool. This was the error: Arguments validation failed: 1 validation error for SerperDevToolSchema
> search_query
> Field required [type=missing, input_value={'description': "CNAE 're... pavimento asfáltico'"}, input_type=dict]
> For further information visit https://errors.pydantic.dev/2.10/v/missing.
> Tool Search the internet with Serper accepts these inputs: Tool Name: Search the internet with Serper
> Tool Arguments: {'search_query': {'description': 'Mandatory search query you want to use to search the internet', 'type': 'str'}}
> Tool Description: A tool that can be used to search the internet with a search_query. Supports different search types: 'search' (default), 'news'.
> Moving on then. I MUST either use a tool (use one at time) OR give my best final answer not both at the same time. When responding, I must use the following format:```but when I add this tool to the task "research_task", it works correctly. Shouldn't it work both ways?### Steps to Reproduce1. Import https://docs.crewai.com/tools/serperdevtool#serperdevtool2. Add this tool to agent, something like this:```python @agent def research_analyst(self) -> Agent: return Agent( config=self.agents_config['research_analyst'], tools=[search_tool], llm=llm, verbose=True )
Expected behavior
It works by defining the tool in the agent, just like it works in the task
Description
I'm using SerperDevTool from crewai_tools on my agent, and i'm getting the follow error:
Expected behavior
It works by defining the tool in the agent, just like it works in the task
Screenshots/Code snippets
Operating System
Ubuntu 24.04
Python Version
3.11
crewAI Version
0.100.0
crewAI Tools Version
0.33.0
Virtual Environment
Venv
Evidence
Possible Solution
None
Additional context
None
The text was updated successfully, but these errors were encountered: