Jido.Agent.Directive.AdoptChild (Jido v2.2.0)

View Source

Attach an orphaned or unattached child agent to the current parent.

This directive is the explicit reattachment path for Jido's logical hierarchy. It updates the live child runtime so the child can resume parent-directed communication with emit_to_parent/3.

Adoption is explicit. Jido does not automatically reconnect children when a logical parent restarts.

Adoption updates the live runtime and the instance Jido.RuntimeStore binding, so later child restarts rehydrate the adopted parent relationship.

Fields

  • child - Child PID or child agent id to adopt
  • tag - Tag for tracking this adopted child
  • meta - Metadata to write into the child's new parent reference

Summary

Functions

Returns the Zoi schema for AdoptChild.

Types

t()

@type t() :: %Jido.Agent.Directive.AdoptChild{child: any(), meta: map(), tag: any()}

Functions

schema()

@spec schema() :: Zoi.schema()

Returns the Zoi schema for AdoptChild.