Skip to content

CrewAI pydantic validation issue #25

@priamai

Description

@priamai

Found this issue, I am not a CrewAI expert but seems to be related to Pydantic.
I debugged until Line 83:

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions