Fix: Update delegation tool handling in hierarchical mode for proper agent recognition

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2024-12-30 20:27:08 +00:00
parent c59c4afc16
commit f9d11e5cd8
4 changed files with 39 additions and 19 deletions

View File

@@ -43,7 +43,7 @@ writer = Agent(
role="Senior Writer",
goal="Write the best content about AI and AI agents.",
backstory="You're a senior writer, specialized in technology, software engineering, AI and startups. You work as a freelancer and are now working on writing content for a new customer.",
allow_delegation=False,
allow_delegation=True,
)

View File

@@ -1,6 +1,6 @@
import pytest
from unittest.mock import MagicMock
import pytest
from langchain_core.language_models.base import BaseLanguageModel
from crewai import Agent, Crew, Process, Task