Planck.Agent.Identity (Planck.Agent v0.3.0)

Copy Markdown View Source

Identity fields for a running agent.

Holds the agent's display metadata, team/session association, role, and configured model. Most fields are immutable after init/1; only model changes at runtime via change_model/2.

Summary

Types

Agent role.

t()

An agent identity information.

Functions

Build an Identity from agent start opts and a computed role.

Sets the model.

Types

role()

@type role() :: :orchestrator | :worker

Agent role.

t()

@type t() :: %Planck.Agent.Identity{
  delegator_id: String.t() | nil,
  description: String.t() | nil,
  id: String.t(),
  model: Planck.AI.Model.t() | nil,
  name: String.t() | nil,
  role: role(),
  session_id: String.t() | nil,
  team_id: String.t() | nil,
  team_name: String.t() | nil,
  type: String.t() | nil
}

An agent identity information.

Functions

build(opts)

@spec build(keyword()) :: t()

Build an Identity from agent start opts and a computed role.

set_model(identity, model)

@spec set_model(t(), Planck.AI.Model.t()) :: t()

Sets the model.