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