Jido.AgentServer.ChildInfo (Jido v2.0.0-rc.0)

View Source

Information about a child agent in the logical hierarchy.

Internal Module

This module is internal to the AgentServer implementation. Its API may change without notice.

Used for parent agents to track spawned children.

Summary

Functions

Creates a new ChildInfo from a map of attributes.

Creates a new ChildInfo from a map, raising on error.

Types

t()

@type t() :: %Jido.AgentServer.ChildInfo{
  id: binary(),
  meta: map(),
  module: atom(),
  pid: any(),
  ref: any(),
  tag: any()
}

Functions

new(attrs)

@spec new(map()) :: {:ok, t()} | {:error, term()}

Creates a new ChildInfo from a map of attributes.

Returns {:ok, child_info} or {:error, reason}.

new!(attrs)

@spec new!(map()) :: t()

Creates a new ChildInfo from a map, raising on error.