Quick Start
Features
Task Decomposition
Break complex tasks into steps
AI-Powered Planning
Leverage AI for intelligent planning
Streaming Plans
Real-time plan generation updates
Context-Aware
Plans consider provided context
Generate Task Plan
Create a structured plan from a task description:task_description(str, required): High-level description of the taskcontext(dict, optional): Additional context for planning
Plan with Context
Provide context to generate more accurate plans:environment: Target environment (dev, staging, production)service_name: Service or application nameresources: Available resourcesconstraints: Time, budget, or other constraintsrequirements: Specific requirements or standardsexisting_state: Current state information
Streaming Task Plans
Generate plans with real-time streaming updates:task_description(str, required): Task to plancontext(dict, optional): Planning context
Complete Example
Here’s a complete example showing task planning workflow:Error Handling
Handle task planning errors:Use Cases
Deployment Planning
Incident Response
Infrastructure Setup
Onboarding
Migration Planning
Best Practices
Task Descriptions
- Be Specific: Provide clear, detailed task descriptions
- Define Success: Include success criteria in the description
- Set Constraints: Mention time, budget, or resource constraints
- Specify Dependencies: Note any dependencies or prerequisites
Context Provision
- Relevant Information: Include all relevant context
- Current State: Describe the current state clearly
- Target State: Define the desired end state
- Constraints: List limitations and requirements
- Risk Factors: Mention known risks or concerns
Plan Usage
- Review Plans: Always review generated plans before execution
- Iterative Refinement: Generate detailed plans for complex steps
- Team Input: Share plans with team for feedback
- Adapt as Needed: Plans are guidelines; adapt based on reality
Streaming
- Long Tasks: Use streaming for tasks that take time to plan
- User Feedback: Show progress to users during planning
- Handle Interruptions: Handle stream interruptions gracefully
- Buffer Output: Buffer output for better user experience
Integration with Execution
Task planning integrates with execution services:API Reference
Next Steps
Agents Service
Execute planned tasks with agents
Teams Service
Execute complex plans with teams
Jobs Service
Schedule planned tasks
Context Graph
Use graph context in planning