Following is my code for Automated Event Planning from the course-
Following is how i set up my llm and the code-
Blockquote
groq_llm = LLM(
model=“groq/llama3-8b-8192”,
temperature=0.3,
max_tokens=4096,
api_key=groq_api_key,
)
from crewai_tools import ScrapeWebsiteTool, SerperDevTool
search_tool = SerperDevTool()
scrape_tool = ScrapeWebsiteTool()
venue_coordinator = Agent(
role=“Venue Coordinator”,
goal=“required text”,
verbose=True,
backstory=(
“required text”
),
llm=groq_llm,
tools=[search_tool, scrape_tool],
)
Blockquote
Similarly i create other agents and tasks by following the code. But in crew.kickoff i get the following error-
I encountered an error while trying to use the tool. This was the error: 1 validation error for SerperDevToolSchema
search_query
Input should be a valid string [type=string_type, input_value={‘description’: ‘tech inn…ancisco’, ‘type’: ‘str’}, input_type=dict]
For further information visit Redirecting....
Tool Search the internet accepts these inputs: Tool Name: Search the internet
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.
Please give suggestions for resolving the same. Thanks in advance.
Let me know if further information is required.