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
GoogleSerperAPIWrapper gives error " Input should be a valid string [type=string_type, input_value={'description': 'Dr. Mihi...n field', 'type': 'str'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/string_type."
#1930
search = GoogleSerperAPIWrapper()
@tool("GoogleSearchTool")
def Google_search_tool(search_query: str):
"""Performs a search using the GoogleSearchTool."""
return search().run(search_query)
## Defining Agents
famous_personality_reviewer_agent = Agent(role=
"Senior Content Validator and fact checker",
goal="Validate the content with facts and get the most correct content",
backstory=
"""
You are a Senior Content Validator and fact checker who has been assigned to validate the task
for the {career_name} field if {famous_personalities_name} You will give best fact based
""",
llm=llm,
tools = [Google_search_tool],
verbose=True)
Error is
I encountered an error while trying to use the tool. This was the error: Arguments validation failed: 1 validation error for Googlesearchtool
search_query
Input should be a valid string [type=string_type, input_value={'description': 'Dr. Mihi...n field', 'type': 'str'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.10/v/string_type.
Tool GoogleSearchTool accepts these inputs: Tool Name: GoogleSearchTool
Tool Arguments: {'search_query': {'description': None, 'type': 'str'}}
Tool Description: Performs a search using the GoogleSearchTool.
Sample Serper use
Error is
Dependecies
The text was updated successfully, but these errors were encountered: