Overview
In the Upsonic framework, aTask
is a specific assignment completed by an Agent
. Tasks provide all necessary details for execution, such as a description, tools, response format, caching options, and more, facilitating a wide range of action complexities. Tasks within Upsonic can be collaborative, requiring multiple agents to work together through context sharing and task dependencies. Tasks are executed by agents in a single-threaded manner, with each task processed sequentially. The execution flow includes task validation, context processing, tool processing, agent execution, response processing, and caching.
Basic Task Creation
Tasks in Upsonic are created directly in code using theTask
class constructor. Each task can be customized with specific tools, response formats, caching options, and validation rules to meet your exact requirements.
Navigation
- Task Attributes - Core and advanced configuration options
- Creating a Task - Detailed task creation examples
- Adding Tools to a Task - Tool integration and configuration
- Adding Tasks to Other Tasks as Context - Task chaining and workflows
- Putting Knowledge Base to Task - RAG integration
- Putting Images to Tasks - Image processing capabilities
- Response Format - Output formatting options
- Accessing Task Results - Result retrieval and metadata