OrchestratorAgent runs the experiment loop. It asks the search strategy for a candidate, hands it to a coding agent, runs the evaluation, and asks the feedback generator whether to continue — tracking the budget across the whole campaign.
What does the orchestrator do?
- 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
How do I run one?
Via Kapso API (recommended)
Direct usage
What happens in one iteration?
How is the budget tracked?
The orchestrator tracks three budgets:
Budget progress is the maximum of all three:
How are components created?
The orchestrator creates components from configuration:Search strategy
Knowledge search
Cost tracking
Every component reports into oneBudgetLedger: the inference meter, the coding-agent sessions, and per-node phase telemetry all record against it, and get_cumulative_cost() returns self.budget_ledger.total_cost(). There is no per-component summing to drift out of agreement.
What gets cleaned up?
The orchestrator cleans up resources in afinally block:
Configuration
Constructor parameters
Related
Search Strategies
Explore solution space algorithms
Coding Agents
Pluggable code generators
Feedback Generator
How evaluation is validated
Execution Flow
Step-by-step execution process
pip install leeroo-kapso · Every page as plain text: llms.txt.