From 939afd5f8205ce089541c5908eacd832c664f245 Mon Sep 17 00:00:00 2001 From: Vivek Soundrapandi Date: Fri, 14 Mar 2025 11:32:38 +0530 Subject: [PATCH] Bug fix in document (#2370) A bug is in the document, where the wirte section task method is not invoked before passing on to context. This results in an error as expectaion in utlitities is a dict but a function gets passed. this is discussed clearly here: https://community.crewai.com/t/attribute-error-str-object-has-no-attribute-get/1079/16 --- docs/guides/flows/first-flow.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/flows/first-flow.mdx b/docs/guides/flows/first-flow.mdx index d3c346c76..ab03693b9 100644 --- a/docs/guides/flows/first-flow.mdx +++ b/docs/guides/flows/first-flow.mdx @@ -232,7 +232,7 @@ class ContentCrew(): def review_section_task(self) -> Task: return Task( config=self.tasks_config['review_section_task'], - context=[self.write_section_task] + context=[self.write_section_task()] ) @crew @@ -601,4 +601,4 @@ Now that you've built your first flow, you can: Congratulations! You've successfully built your first CrewAI Flow that combines regular code, direct LLM calls, and crew-based processing to create a comprehensive guide. These foundational skills enable you to create increasingly sophisticated AI applications that can tackle complex, multi-stage problems through a combination of procedural control and collaborative intelligence. - \ No newline at end of file +