Events Orchestrator¶
Event-driven agent loop orchestrator with scheduler integration.
Module ID¶
loop-events
Installation¶
orchestrators:
- module: loop-events
source: git+https://github.com/microsoft/amplifier-module-loop-events@main
Behavior¶
Provides event-driven orchestration that:
- Queries schedulers for tool/agent/context decisions
- Reduces multiple scheduler responses to single decision
- Falls back gracefully if no schedulers respond
- Maintains all standard orchestrator functionality
Execution Flow¶
- Get user prompt
- Loop while tool calls needed:
- Query schedulers for tool selection via
decision:tool_resolutionevent - Reduce responses (highest score wins)
- Fall back to first available if no responses
- Execute selected tool
- Feed results back to LLM
- Return final response
Configuration¶
[session]
orchestrator = "loop-events"
context = "context-simple"
[[providers]]
module = "provider-anthropic"
name = "claude"
[[hooks]]
module = "hooks-scheduler-heuristic"
[[hooks]]
module = "hooks-scheduler-cost-aware"
config = { cost_weight = 0.6, latency_weight = 0.4 }
Usage¶
Perfect for:
- Advanced scheduling requirements
- Cost-optimized tool selection
- Custom decision-making pipelines
Repository¶
→ GitHub