Backplane.AgentRuntime.Codex.Readiness (backplane_agent_runtime v1.10.7)

Copy Markdown

Host-provided readiness and authorization gate with cancellable waits.

Summary

Functions

await(provider, timeout_ms, cancelled \\ fn -> false end)

@spec await((-> map()), non_neg_integer(), (-> boolean())) ::
  {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}

execute_if_ready(state, fun)

@spec execute_if_ready(map(), (-> term())) ::
  {:ok, term()} | {:error, Backplane.AgentRuntime.Error.t()}

ready?(state)

@spec ready?(map()) :: boolean()