From af7983be43d34685d18a974c9df673880a32f587 Mon Sep 17 00:00:00 2001 From: Vidit-Ostwal Date: Thu, 27 Mar 2025 08:12:47 +0530 Subject: [PATCH] Fixed Intent --- tests/crew_test.py | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/crew_test.py b/tests/crew_test.py index 694be09f4..43cb9f6ea 100644 --- a/tests/crew_test.py +++ b/tests/crew_test.py @@ -4069,41 +4069,41 @@ def test_crew_with_knowledge_sources_works_with_copy(): def test_crew_kickoff_for_each_works_with_manager_agent_copy(): researcher = Agent( - role="Researcher", - goal="Conduct thorough research and analysis on AI and AI agents", - backstory="You're an expert researcher, specialized in technology, software engineering, AI, and startups. You work as a freelancer and are currently researching for a new client.", - allow_delegation=False - ) + role="Researcher", + goal="Conduct thorough research and analysis on AI and AI agents", + backstory="You're an expert researcher, specialized in technology, software engineering, AI, and startups. You work as a freelancer and are currently researching for a new client.", + allow_delegation=False + ) writer = Agent( - role="Senior Writer", - goal="Create compelling 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 currently writing content for a new client.", - allow_delegation=False - ) + role="Senior Writer", + goal="Create compelling 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 currently writing content for a new client.", + allow_delegation=False + ) # Define task task = Task( - description="Generate a list of 5 interesting ideas for an article, then write one captivating paragraph for each idea that showcases the potential of a full article on this topic. Return the list of ideas with their paragraphs and your notes.", - expected_output="5 bullet points, each with a paragraph and accompanying notes.", - ) + description="Generate a list of 5 interesting ideas for an article, then write one captivating paragraph for each idea that showcases the potential of a full article on this topic. Return the list of ideas with their paragraphs and your notes.", + expected_output="5 bullet points, each with a paragraph and accompanying notes.", + ) # Define manager agent manager = Agent( - role="Project Manager", - goal="Efficiently manage the crew and ensure high-quality task completion", - backstory="You're an experienced project manager, skilled in overseeing complex projects and guiding teams to success. Your role is to coordinate the efforts of the crew members, ensuring that each task is completed on time and to the highest standard.", - allow_delegation=True - ) + role="Project Manager", + goal="Efficiently manage the crew and ensure high-quality task completion", + backstory="You're an experienced project manager, skilled in overseeing complex projects and guiding teams to success. Your role is to coordinate the efforts of the crew members, ensuring that each task is completed on time and to the highest standard.", + allow_delegation=True + ) # Instantiate crew with a custom manager crew = Crew( - agents=[researcher, writer], - tasks=[task], - manager_agent=manager, - process=Process.hierarchical, - verbose=True - ) + agents=[researcher, writer], + tasks=[task], + manager_agent=manager, + process=Process.hierarchical, + verbose=True + ) crew_copy = crew.copy() assert crew_copy.manager_agent is not None