mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-25 08:08:14 +00:00
fix: remove unused imports and variables to fix lint issues
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
"""Test target_agents delegation functionality."""
|
"""Test target_agents delegation functionality."""
|
||||||
|
|
||||||
import pytest
|
|
||||||
from crewai.agent import Agent
|
from crewai.agent import Agent
|
||||||
from crewai.crew import Crew
|
|
||||||
from crewai.task import Task
|
|
||||||
from crewai.tools.agent_tools.agent_tools import AgentTools
|
|
||||||
|
|
||||||
def test_target_agents_filters_delegation_tools():
|
def test_target_agents_filters_delegation_tools():
|
||||||
"""Test that target_agents properly filters available agents for delegation."""
|
"""Test that target_agents properly filters available agents for delegation."""
|
||||||
|
|||||||
@@ -134,7 +134,8 @@ def test_ask_question_to_wrong_agent():
|
|||||||
|
|
||||||
def test_target_agents_delegation_filtering():
|
def test_target_agents_delegation_filtering():
|
||||||
"""Test that target_agents properly filters delegation targets."""
|
"""Test that target_agents properly filters delegation targets."""
|
||||||
researcher = Agent(
|
# that an agent with target_agents=["writer"] would only delegate to writer
|
||||||
|
Agent(
|
||||||
role="researcher",
|
role="researcher",
|
||||||
goal="make the best research and analysis on content about AI and AI agents",
|
goal="make the best research and analysis on content about AI and AI agents",
|
||||||
backstory="You're an expert researcher, specialized in technology",
|
backstory="You're an expert researcher, specialized in technology",
|
||||||
|
|||||||
Reference in New Issue
Block a user