Open clayharris opened 5 days ago
I see the same issue with https://python.langchain.com/docs/integrations/tools/ddg/
Exception: 1 validation error for Agent
tools.0
Input should be a valid dictionary or instance of BaseTool [type=model_type, input_value=DuckDuckGoSearchResults(a...), output_format='json'), input_type=DuckDuckGoSearchResults]
For further information visit https://errors.pydantic.dev/2.9/v/model_type
Description
I receive Agent/Tool validation errors whenever I try to use SerperDevTool or the default MyCustomTool, after attempting to use SerperDevTool the first time. MyCustomTool works fine beforehand, and fails afterwards. The crew runs fine if I remove the tools completely, either commenting out the
tools
param or providing an empty array[]
.I've repeated this multiple times with new crews created via
crewai create crew x
, and I ensured I'm using the latest viapip install -U crewai
It appears some form of caching is occurring and causing tool errors to persist
Steps to Reproduce
crewai create crew projectx
MyCustomTool
and the researchertools
line to include it for the agentcrewai run
and verify successfrom crewai_tools import SerperDevTool
and reference the tool in the agent's toolscrewai run
and see errorsMyCustomTool
setupExpected behavior
Screenshots/Code snippets
Operating System
Other (specify in additional context)
Python Version
3.12
crewAI Version
0.79.0
crewAI Tools Version
0.79.0
Virtual Environment
Conda
Evidence
Possible Solution
None
Additional context
M1 macOS list needs updating: Sequoia 15.1