SkillKit.AgentRef (SkillKit v0.1.0)

Copy Markdown View Source

Opaque reference to a running agent.

Returned by SkillKit.start_agent/2. Used with SkillKit.send_message/2 and SkillKit.stop_agent/1.

Summary

Functions

Builds an AgentRef from an %Agent{} struct (registry already set).

Types

t()

@type t() :: %SkillKit.AgentRef{
  name: String.t(),
  registry: atom(),
  supervisor_pid: pid() | nil
}

Functions

from_agent(agent)

@spec from_agent(SkillKit.Agent.t()) :: t()

Builds an AgentRef from an %Agent{} struct (registry already set).