crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Tool error in the crew where tools are not using

Open pradeepdev-1995 opened this issue 1 year ago • 6 comments

I am not using any built-in or custom tools in my agentic workflow. Still, I am getting the below error while running a crew.

I encountered an error while trying to use the tool. This was the error: 1 validation error for Delegate work to coworkerSchema
context
  field required (type=value_error.missing).
 Tool Delegate work to coworker accepts these inputs: Delegate a specific task to one of the following coworkers:
The input to this tool should be the coworker, the task you want them to do, and ALL necessary context to execute the task, they know nothing about the task, so share absolute everything you know, don't reference things but instead explain them.

pradeepdev-1995 avatar Jul 22 '24 12:07 pradeepdev-1995

Hey, we are having same issue. Just out of curiosity, what models are you using?

SamuelKocur avatar Jul 22 '24 13:07 SamuelKocur

@SamuelKocur I am using gpt 3.5 model from open ai

pradeepdev-1995 avatar Jul 22 '24 13:07 pradeepdev-1995

ive been having this issue for months, im using groq and llama3

mackimart1 avatar Jul 23 '24 00:07 mackimart1

I'm having the same issue with vllm and mixtral8x7b

JavierCCC avatar Aug 26 '24 21:08 JavierCCC

I started to see this issue today, how did you fix this?

cl955 avatar Oct 28 '24 14:10 cl955

is there anything new? i simply instantiated two agents, one general and one specific, and neither of them has a tool. when i input a message as simple as 'hi' i get something like

# Agent: Dispatcher Agent
## Using tool: Ask question to coworker
## Tool Input: 
"{\"question\": \"Why is \\\"hi\\\" not recognized?\", \"context\": \"History: hi\"}"
## Tool Output: 

I encountered an error while trying to use the tool. This was the error: Arguments validation failed: 1 validation error for AskQuestionToolSchema
coworker
  Field required [type=missing, input_value={'question': 'Why is "hi"...context': 'History: hi'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing.
 Tool Ask question to coworker accepts these inputs: Tool Name: Ask question to coworker
Tool Arguments: {'question': {'description': 'The question to ask', 'type': 'str'}, 'context': {'description': 'The context for the question', 'type': 'str'}, 'coworker': {'description': 'The role/name of the coworker to ask', 'type': 'str'}}
Tool Description: Ask a specific question to one of the following coworkers: General Agent
The input to this tool should be the coworker, the question you have for them, and ALL necessary context to ask the question properly, they know nothing about the question, so share absolute everything you know, don't reference things but instead explain them..

Sopralapanca avatar Dec 11 '24 09:12 Sopralapanca

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jan 10 '25 12:01 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jan 16 '25 12:01 github-actions[bot]