Concepts
Basic Concepts
This guide introduces the core concepts of the PilottAI framework.
Framework Architecture
PilottAI is designed around a modular, hierarchical architecture:
Core Components
-
Serve: The main orchestrator that manages agents, routes tasks, and coordinates execution.
-
Agents: Autonomous entities that perform specific tasks using LLMs and tools.
-
Tasks: Units of work that are routed to appropriate agents for execution.
-
Memory: Storage system for context, task history, and knowledge.
-
Tools: Integrations and capabilities that agents can use to accomplish tasks.
-
Orchestration: Systems for scaling, load balancing, and fault tolerance.
Agents
Agents are the primary actors in the PilottAI framework. Each agent:
- Has a specific role and goal
- Can use tools to interact with external systems
- Utilizes LLMs for decision-making and task execution
- Maintains its own memory and context
Agent Types
PilottAI supports different agent roles:
- Orchestrator: Manages and delegates tasks to worker agents
- Worker: Executes specific tasks using specialized capabilities
- Hybrid: Combines orchestration and execution capabilities
Agent Configuration
Agents are configured using the AgentConfig
class:
Tasks
Tasks represent units of work that agents perform. Each task:
- Has a description and context
- May be assigned to a specific agent or automatically routed
- Has a priority level
- Tracks execution status and results
Task Lifecycle
Task Creation
Memory System
PilottAI includes a sophisticated memory system that:
- Stores task execution history
- Maintains agent context
- Enables semantic search and retrieval
- Supports knowledge persistence
Memory Components
- Task Memory: Records task execution details
- Semantic Memory: Stores knowledge and context
- Enhanced Memory: Advanced memory with pattern recognition
Using Memory
LLM Integration
PilottAI uses Large Language Models for agent intelligence. Key concepts:
- LLM Configuration: Settings for model, provider, and parameters
- LLM Handler: Manages LLM interactions with proper error handling
- Function Calling: Structured LLM output for tool use
LLM Configuration
Tools
Tools extend agent capabilities by providing:
- External system integrations
- Specialized functionality
- Task-specific utilities
Tool Creation
Orchestration
PilottAI includes advanced orchestration features:
Dynamic Scaling
Automatically adjusts the number of agents based on system load:
Load Balancing
Distributes tasks across agents to optimize performance:
Fault Tolerance
Handles agent failures and ensures system reliability:
Next Steps
Now that you understand the basic concepts of PilottAI, you can:
- Explore specialized Agents
- Learn about Memory Systems
- Dive into Orchestration features
- See Examples of PilottAI in action