Jido.AgentServer.State.Lifecycle (Jido v2.3.0)

Copy Markdown View Source

Lifecycle state for pool-managed agents.

Tracks attachment, idle timeout, and storage configuration for agents managed by Jido.Agent.InstanceManager.

Summary

Functions

Creates a new Lifecycle state from options.

Types

t()

@type t() :: %Jido.AgentServer.State.Lifecycle{
  attachment_monitors: map(),
  attachments: any(),
  idle_timeout: any(),
  idle_timer: nil | any(),
  mod: atom(),
  pool: nil | atom(),
  pool_key: nil | any(),
  storage: nil | any()
}

Functions

new(opts \\ [])

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

Creates a new Lifecycle state from options.