Skip to content

Bug in 0.22.5 with co-worker delegation #351

@olafgeibig

Description

@olafgeibig

The agent wants to delegate a task to a co-worker. Although the name is correct, the co-worker is not found.
crewAI 0.22.5, MacOS, Python 3.11.7, Ollama running adrienbrault/nous-hermes2pro:Q5_K_M

Output:

Example input:
{
  "tool_name": "delegate work to co-worker",
  "arguments": {
    "coworker": "Senior Research Analyst",
    "task": "Summarize the top 10 AI trends for 2024",
    "context": "Here are the top 10 AI and machine learning trends to prepare for in 2024:\n\n1. Multimodal AI\n2. Small (er) language models and open source advancements\n3. GPU shortages and cloud costs\n4. Customized local models and data pipelines\n5. More powerful virtual agents\n6. Seamless integration of AI into everyday products\n7. Emphasis on ethics, safety, and regulatory compliance\n8. Advancements in explainable AI (XAI)\n9. Quantum computing and AI convergence\n10. Continued growth of generative AI"
  }
}<|im_end|> 

Error executing tool. Co-worker mentioned not found, it must to be one of the following options:
- Senior Research Analyst

The Agent definition:

researcher = Agent(
  role='Senior Research Analyst',
  goal='Uncover cutting-edge developments in AI and data science in',
  backstory="""You are a Senior Research Analyst at a leading tech think tank.
  Your expertise lies in identifying emerging trends and technologies in AI and
  data science. You have a knack for dissecting complex data and presenting
  actionable insights. You ask the human for feedback if the result of a research is relevant for the report.""",
  verbose=True,
  allow_delegation=False,
  tools=[search_tool],
  llm=llm,
  function_calling_llm=llm_func
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions