refactor: optimize agent lookup and improve error handling

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-02-09 20:12:04 +00:00
parent 86b57d9b99
commit 4674d959c5
4 changed files with 813 additions and 3 deletions

View File

@@ -239,4 +239,5 @@ def test_delegate_work_with_unauthorized_agent():
context="Important research"
)
assert "Error" in result
assert "not authorized to delegate" in result
assert "Authorization Error" in result
assert "cannot delegate to" in result