context
parameter. This enables task chaining and complex workflows.
Basic Task Chaining
Multiple Context Sources
Complex Workflow Example
Context Types
Tasks can use various types of context:- Other Tasks: Previous task results for chaining
- Strings: Direct text context
- Knowledge Bases: RAG-enabled knowledge sources
- Mixed: Combination of different context types
Best Practices
- Logical Flow: Design task chains with clear logical progression
- Context Relevance: Only include context that’s relevant to the current task
- Performance: Consider caching for expensive context processing
- Error Handling: Handle cases where context tasks might fail
- Documentation: Clearly document the expected context flow in your workflows