Quick Start
Simple Way - Direct Task
Advanced Way - Task Class
Task Options
| Option | Description | Example |
|---|---|---|
description | What to do | "Research AI trends" |
agent | Who does it | researcher |
expected_output | What to produce | "Summary report" |
context | Previous tasks to use | [task1] |
output_file | Save result to file | "report.md" |
Task Types
Research
Find, gather, and summarize information
Create
Write articles, reports, or content
Analyze
Process data and find insights
Interact
Answer questions and chat
Task Dependencies
Tasks can use results from previous tasks:Complete Example
Best Practices
Be Specific
Be Specific
“Research AI trends in healthcare” is better than “Research AI”
One Goal Per Task
One Goal Per Task
Split complex work into multiple focused tasks
Use Context
Use Context
Connect related tasks with
context=[previous_task]Define Expected Output
Define Expected Output
Tell the agent what format you want
Next: Creating Your First Agent
Build a complete agent application step by step.

