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
coworker here is not a string. It is a dict like that: {'description': 'Chief Technology Officer (CTO)', 'type': 'str'}. I don't know why.
Can you help ?
Steps to Reproduce
Create 2 agents, one should be able to delegate to the other.
Create 1 task.
Expected behavior
No error
Screenshots/Code snippets
.
Operating System
Windows 11
Python Version
3.12
crewAI Version
0.86.0
crewAI Tools Version
0.17.0
Virtual Environment
Venv
Evidence
I encountered an error while trying to use the tool. This was the error: unhashable type: 'dict'.
Tool Delegate work to coworker accepts these inputs: Tool Name: Delegate work to coworker
Tool Arguments: {'task': {'description': 'The task to delegate', 'type': 'str'}, 'context': {'description': 'The context for the task', 'type': 'str'}, 'coworker': {'description': 'The role/name of the coworker to delegate to', 'type': 'str'}}
Possible Solution
I don't know how the coworkers are found.
What is calling.arguments.get("coworker")?
Additional context
.
The text was updated successfully, but these errors were encountered:
@antoinedelplace got any solution for the issue, i think we need to provide the context of one agent to other agent in form the some structure , so that the second agent will know what to do when the delegation occurs.
Description
TypeError: unhashable type: 'dict'
Traceback:
in crewai\task.py(320)increment_delegations()
crewAI/src/crewai/task.py
Line 320 in 627b9f1
in crewai\tools\tool_usage.py(159)_use()
crewAI/src/crewai/tools/tool_usage.py
Line 155 in 627b9f1
coworker here is not a string. It is a dict like that:
{'description': 'Chief Technology Officer (CTO)', 'type': 'str'}
. I don't know why.Can you help ?
Steps to Reproduce
Create 2 agents, one should be able to delegate to the other.
Create 1 task.
Expected behavior
No error
Screenshots/Code snippets
.
Operating System
Windows 11
Python Version
3.12
crewAI Version
0.86.0
crewAI Tools Version
0.17.0
Virtual Environment
Venv
Evidence
Possible Solution
I don't know how the coworkers are found.
What is
calling.arguments.get("coworker")
?Additional context
.
The text was updated successfully, but these errors were encountered: