Skip to content

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

  1. Get user prompt
  2. Loop while tool calls needed:
  3. Query schedulers for tool selection via decision:tool_resolution event
  4. Reduce responses (highest score wins)
  5. Fall back to first available if no responses
  6. Execute selected tool
  7. Feed results back to LLM
  8. 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

[session]
orchestrator = "loop-events"

Perfect for:

  • Advanced scheduling requirements
  • Cost-optimized tool selection
  • Custom decision-making pipelines

Repository

GitHub