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
This commit is contained in:
Vivek Soundrapandi
2025-03-14 11:32:38 +05:30
committed by GitHub
parent d42e58e199
commit 939afd5f82

View File

@@ -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:
<Check>
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.
</Check>
</Check>