Backplane.AgentRuntime.Codex.Interactions (backplane_agent_runtime v1.10.15)

Copy Markdown

Host-owned interaction ledger for Codex user input and messages.

The model can create a request, but only a caller holding the original host token, run and incarnation can settle it. A settlement is single-use.

Summary

Types

t()

@type t() :: %{next: pos_integer(), pending: map(), settled: map()}

Functions

answer(state, id, value, auth)

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

cancel(state, id, auth)

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

new()

@spec new() :: t()

request(state, kind, payload, auth)

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

settle(state, id, status, value, auth)

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