From b992fd26b9eb01345cc02b65d2f1b80ddf7d38fe Mon Sep 17 00:00:00 2001 From: Lorenze Jay <63378463+lorenzejay@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:23:30 -0700 Subject: [PATCH] fixes crewai docs assembling crew code block example code (#768) --- docs/core-concepts/Crews.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/core-concepts/Crews.md b/docs/core-concepts/Crews.md index c60566ed0..cb77f137e 100644 --- a/docs/core-concepts/Crews.md +++ b/docs/core-concepts/Crews.md @@ -47,23 +47,34 @@ from langchain_community.tools import DuckDuckGoSearchRun researcher = Agent( role='Senior Research Analyst', goal='Discover innovative AI technologies', + backstory="""You're a senior research analyst at a large company. + You're responsible for analyzing data and providing insights + to the business. + You're currently working on a project to analyze the + trends and innovations in the space of artificial intelligence.""", tools=[DuckDuckGoSearchRun()] ) writer = Agent( role='Content Writer', goal='Write engaging articles on AI discoveries', + backstory="""You're a senior writer at a large company. + You're responsible for creating content to the business. + You're currently working on a project to write about trends + and innovations in the space of AI for your next meeting.""", verbose=True ) # Create tasks for the agents research_task = Task( description='Identify breakthrough AI technologies', - agent=researcher + agent=researcher, + expected_output='A bullet list summary of the top 5 most important AI news' ) write_article_task = Task( description='Draft an article on the latest AI technologies', - agent=writer + agent=writer, + expected_output='3 paragraph blog post on the latest AI technologies' ) # Assemble the crew with a sequential process