Backplane.AgentRuntime.AgentHost (backplane_agent_runtime v1.6.0)

Copy Markdown

Runtime instance agent registry for hosted and owner-bound identities.

The host is immutable data and starts no processes. It enforces namespace isolation, bounded task admission, stable identity, and distinct trusted stop from model-visible run cancellation.

Summary

Types

t()

@type t() :: map()

Functions

new(runtime_id, policy)

@spec new(String.t(), map()) ::
  {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}

register(host, agent)

@spec register(t(), map()) ::
  {:ok, t(), map()} | {:error, Backplane.AgentRuntime.Error.t()}

settle(host, run_id, terminal_status)

@spec settle(t(), String.t(), atom()) ::
  {:ok, t(), map()} | {:error, Backplane.AgentRuntime.Error.t()}

stop(host, agent_id)

@spec stop(t(), String.t()) :: {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}

submit(host, agent_id)

@spec submit(t(), String.t()) ::
  {:ok, t(), map()} | {:error, Backplane.AgentRuntime.Error.t()}

submit(host, agent_id, opts)

@spec submit(t(), String.t(), map()) ::
  {:ok, t(), map()} | {:error, Backplane.AgentRuntime.Error.t()}