Jido.Composer.Orchestrator.StatusComputer (Jido Composer v0.6.0)

Copy Markdown View Source

Computes orchestrator status from sub-state modules.

Replaces scattered status cond blocks in the Orchestrator Strategy.

Summary

Functions

Computes the orchestrator status based on tool concurrency, approval gate, and suspended calls state.

Types

status()

@type status() ::
  :awaiting_llm
  | :awaiting_tools
  | :awaiting_approval
  | :awaiting_suspension
  | :awaiting_tools_and_approval
  | :awaiting_tools_and_suspension

Functions

compute(tc, ag, suspended_calls)

Computes the orchestrator status based on tool concurrency, approval gate, and suspended calls state.

Returns :awaiting_llm when all sub-systems are clear, otherwise returns a status reflecting what the orchestrator is waiting on.