You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you define a Hierarchical processes you don't need to specify on the task if it's assigned to an agent as you can let the manager or custom manager do this. I created a custom manager agent and assigned it to "manager=" as part of the crew definition and the left the task with no assigned agents as the manager would choose and the langtrace python sdk will fail.
This flagged this error
File "D:\Users\xxxx\crewai\xxxx\xxx\xxx.venv\Lib\site-packages*langtrace_python_sdk\instrumentation\crewai\patch.py", line 226, in _parse_tasks*
"agent": task.agent.role,**
^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'role'
i did a crude fix just to get it working e.g. "agent": task.agent.role if task.agent else None
The text was updated successfully, but these errors were encountered:
When you define a Hierarchical processes you don't need to specify on the task if it's assigned to an agent as you can let the manager or custom manager do this. I created a custom manager agent and assigned it to "manager=" as part of the crew definition and the left the task with no assigned agents as the manager would choose and the langtrace python sdk will fail.
This flagged this error
File "D:\Users\xxxx\crewai\xxxx\xxx\xxx.venv\Lib\site-packages*langtrace_python_sdk\instrumentation\crewai\patch.py", line 226, in _parse_tasks*
"agent": task.agent.role,**
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'role'
i did a crude fix just to get it working e.g. "agent": task.agent.role if task.agent else None
The text was updated successfully, but these errors were encountered: