Backplane.AgentRuntime.Goal.Host behaviour (backplane_agent_runtime v1.10.28)

Copy Markdown

Host provenance and fast atomic admission through the existing thread/session owner. Callbacks must not synchronously reenter Goal.

Summary

Callbacks

record_user_instruction(term, binary, map)

@callback record_user_instruction(term(), binary(), map()) ::
  :ok | {:error, Backplane.AgentRuntime.Error.t()}

start_turn_if_idle(term, binary, map)

@callback start_turn_if_idle(term(), binary(), map()) ::
  {:ok, {:started, map()}}
  | {:ok, {:not_submitted, atom()}}
  | {:error, Backplane.AgentRuntime.Error.t()}