Backplane.AgentRuntime.Context (backplane_agent_runtime v1.6.0)

Copy Markdown

Versioned context ownership and composition.

Contexts have at most one active writer. A snapshot is explicitly selected material only. Peer results and tool output are provenance-tagged data, never replacement instructions.

Summary

Types

t()

@type t() :: map()

Functions

admit_result(context, result, expected_revision)

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

compaction(context, summary, usage, expected_revision)

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

create(agent_id, instructions, selected \\ [])

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

fork(context, child, selection)

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