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
@type role() :: :orchestrator | :worker
Agent role.
@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 an Identity from agent start opts and a computed role.
@spec set_model(t(), Planck.AI.Model.t()) :: t()
Sets the model.