I’m encountering a BaseTool validation error even when using CrewAI’s built-in tools.
Error:
ValidationError: 1 validation error for Agent
tools
Value error, Invalid tool type: <class ‘crewai_tools.tools.scrape_website_tool.scrape_website_tool.ScrapeWebsiteTool’>. Tool must be an instance of BaseTool or an object with ‘name’, ‘func’, and ‘description’ attributes. [type=value_error, input_value=[ScrapeWebsiteTool(name=‘…secure-Requests’: ‘1’})], input_type=list]
For further information visit Redirecting...
Code snippet where the error occurs:
lead_data_agent = Agent(
config=lead_agents_config[‘lead_data_agent’],
tools=[ScrapeWebsiteTool()],
)
Also, all my earlier agents which worked earlier, started giving this error. is it because of installing/upgrading pydantic or something?