Jido.Composer.ChildRef (Jido Composer v0.4.0)

Copy Markdown View Source

Serializable reference to a child agent process.

Replaces raw PIDs in strategy state for checkpoint/thaw safety. Contains all information needed to re-spawn a child from its checkpoint on resume.

This is a top-level Composer concept (not HITL-specific) since any suspension reason requires serializable child tracking.

Summary

Types

phase()

@type phase() :: :spawning | :awaiting_result | nil

status()

@type status() :: :running | :paused | :hibernated | :completed | :failed

t()

@type t() :: %Jido.Composer.ChildRef{
  agent_id: String.t(),
  agent_module: module(),
  checkpoint_key: term(),
  phase: phase(),
  status: status(),
  suspension_id: String.t() | nil,
  tag: term()
}

Functions

new(attrs)

@spec new(keyword()) :: t()