mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 09:08:31 +00:00
Address PR feedback: Fix ForwardRef issues, improve error messages, enhance docs
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -3,6 +3,8 @@ Example of using task decomposition in CrewAI.
|
||||
|
||||
This example demonstrates how to use the task decomposition feature
|
||||
to break down complex tasks into simpler sub-tasks.
|
||||
|
||||
Feature introduced in CrewAI v1.x.x
|
||||
"""
|
||||
|
||||
from crewai import Agent, Task, Crew
|
||||
@@ -39,10 +41,7 @@ crew = Crew(
|
||||
)
|
||||
|
||||
result = crew.kickoff()
|
||||
print(result)
|
||||
print("Final result:", result)
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
for i, sub_task in enumerate(research_task.sub_tasks):
|
||||
print(f"Sub-task {i+1} result: {sub_task.output.raw if hasattr(sub_task, 'output') and sub_task.output else 'No output'}")
|
||||
|
||||
Reference in New Issue
Block a user