crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Issues always happen while using manager agent mode

Open ckgithub2019 opened this issue 1 year ago • 3 comments

I ensure I have defined all of agents and tasks well based on the examples of CrewAI. But I often encounter with such issues while using manager agent mode and hierarchical process. WHY?

Issue 1: I encountered an error while trying to use the tool. This was the error: 2 validation errors for Ask question to coworkerSchema question field required (type=value_error.missing) context field required (type=value_error.missing). Tool Ask question to coworker accepts these inputs: Ask a specific question to one of the following coworkers: Manager 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.

Issue 2: Action 'Ask question to Research Specialist and Marketing Manager' don't exist, these are the only available Actions: Tool Name: Delegate work to coworker(task: str, context: str, coworker: Optional[str] = None, **kwargs) Tool Description: Delegate a specific task to one of the following coworkers: Research Specialist 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. Tool Arguments: {'task': {'title': 'Task', 'type': 'string'}, 'context': {'title': 'Context', 'type': 'string'}, 'coworker': {'title': 'Coworker', 'type': 'string'}, 'kwargs': {'title': 'Kwargs', 'type': 'object'}} Tool Name: Ask question to coworker(question: str, context: str, coworker: Optional[str] = None, **kwargs) Tool Description: Ask a specific question to one of the following coworkers: Research Specialist 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. Tool Arguments: {'question': {'title': 'Question', 'type': 'string'}, 'context': {'title': 'Context', 'type': 'string'}, 'coworker': {'title': 'Coworker', 'type': 'string'}, 'kwargs': {'title': 'Kwargs', 'type': 'object'}}

ckgithub2019 avatar Aug 04 '24 17:08 ckgithub2019

can you include:

LLM you used ex) Ollama - llama3.1 or gpt-4o-mini

Steps to Reproduce Provide a step-by-step process to reproduce the behavior:

Environment Details:

  • Operating System: [e.g., Ubuntu 20.04, macOS Catalina, Windows 10]
  • Python Version: [e.g., 3.8, 3.9, 3.10]
  • crewAI Version: [e.g., 0.30.11]
  • crewAI Tools Version: [e.g., 0.2.6]

Additional context Add any other context about the problem here.

lorenzejay avatar Aug 08 '24 18:08 lorenzejay

Same problem with Langflow: Error message in terminal: 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: [Redakteur, Faktenprüfer, Rechercheur] 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.

Addition: the mentioned 3 Agents [Redakteur, Faktenprüfer, Rechercheur] are all correctly set up. The entire flow works in the end - but seemingly without any delegation to any of the 3 coworkers ?!? I am using the "Hierachical Crew" Langflow component. on MacOS Sonoma 14.6.1 with Python 3.11.9, crewAI 0.36.1 and crewAI Tools 0.4.26 installed in the environment. The LLM used is chatGPT-4o - but that doesn't seem to play a role. I tried with Ollama, but had the same effect.

syrom avatar Sep 01 '24 18:09 syrom

For clarification: I build on the sample workflow provided in Langflow for the Hierarchical Task Agent Workflow, changing the agent names and the prompt of the agent to fit my used case.

syrom avatar Sep 01 '24 18:09 syrom

Did you resolve the issue?

cl955 avatar Oct 31 '24 18:10 cl955

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 Dec 12 '24 06:12 github-actions[bot]

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

github-actions[bot] avatar Dec 17 '24 12:12 github-actions[bot]