Typed sub-state for tracking child agent references and their lifecycle phases.
Replaces the flat children: %{} + child_phases: %{} maps that were
previously stored directly in both Workflow and Orchestrator strategy state.
Summary
Functions
Get the ChildRef for a given tag.
Merge multiple phase entries at once.
Returns all ChildRefs with status :paused.
Record that a child process exited.
Record that a child has hibernated (checkpoint).
Record that a child produced a result (child_result signal).
Register a child that has started (child_started signal).
Set the phase for a child tag.
Returns tags of children in :spawning phase.
Types
@type t() :: %Jido.Composer.Children{ phases: %{required(term()) => :spawning | :awaiting_result}, refs: %{required(term()) => Jido.Composer.ChildRef.t()} }
Functions
@spec get_ref(t(), term()) :: Jido.Composer.ChildRef.t() | nil
Get the ChildRef for a given tag.
Merge multiple phase entries at once.
@spec new() :: t()
@spec paused_refs(t()) :: [{term(), Jido.Composer.ChildRef.t()}]
Returns all ChildRefs with status :paused.
Record that a child process exited.
Record that a child has hibernated (checkpoint).
Record that a child produced a result (child_result signal).
Register a child that has started (child_started signal).
Set the phase for a child tag.
Returns tags of children in :spawning phase.