-
Notifications
You must be signed in to change notification settings - Fork 29
CrewAI pydantic validation issue #25
Copy link
Copy link
Open
Description
Found this issue, I am not a CrewAI expert but seems to be related to Pydantic.
I debugged until Line 83:
Starting threat research for query: Most common TTP used by attackers in AWS targeting Turkish companies in the e-commerce industry.
Traceback (most recent call last):
File "/snap/pycharm-community/414/plugins/python-ce/helpers/pydev/pydevd.py", line 1570, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/pycharm-community/414/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "threat_research.py", line 99, in <module>
result = perform_threat_research(query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "threat_research.py", line 83, in perform_threat_research
crew = Crew(
^^^^^
File "/home/robomotic/DevOps/github/diana/.venv/lib/python3.11/site-packages/pydantic/main.py", line 212, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for Crew
verbose
Input should be a valid boolean, unable to interpret input [type=bool_parsing, input_value=2, input_type=int]
For further information visit https://errors.pydantic.dev/2.9/v/bool_parsing
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
