Overview
TheOrchestratorAgent is the central coordinator that manages the experimentation loop. It connects all components and runs iterations until the feedback generator decides the goal is achieved.
Responsibilities
- Budget Tracking: Monitor time, iterations, and cost
- Context Gathering: Assemble problem + KG + history
- Search Coordination: Run search strategy iterations
- Stop Checking: Check if feedback generator decided to stop
- Resource Cleanup: Close connections when done
Usage
Via Kapso API (Recommended)
Direct Usage
The Solve Loop
Budget Tracking
The orchestrator tracks three budgets:
Budget progress is the maximum of all three:
Component Creation
The orchestrator creates components from configuration:Search Strategy
Knowledge Search
Context Manager
Cost Tracking
Resource Cleanup
The orchestrator cleans up resources in afinally block:
Configuration
Constructor Parameters
Next Steps
Search Strategies
Explore solution space algorithms
Coding Agents
Pluggable code generators
Feedback Generator
How evaluation is validated
Execution Flow
Step-by-step execution process