Backplane.AgentRuntime.Collaboration (backplane_agent_runtime v1.6.0)

Copy Markdown

Opt-in collaboration wrappers over shared runtime APIs.

Wrappers add no alternate executor or elevated privilege. Discovery and recorded run status are available from host state. Operations without a real router, continuation, cancellation, or interaction port fail explicitly.

Summary

Types

t()

@type t() :: map()

Functions

ask_user(input, resolver)

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

cancel(host, run_id)

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

delegate(host, request)

@spec delegate(t(), map()) :: {:error, Backplane.AgentRuntime.Error.t()}

discover(host, viewer, prefix)

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

register_tools(host, opts \\ [])

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

send(host, input)

@spec send(t(), map()) :: {:error, Backplane.AgentRuntime.Error.t()}

spawn(host, request)

@spec spawn(t(), map()) :: {:error, Backplane.AgentRuntime.Error.t()}

status(host, run_id)

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

wait(host, run_id)

@spec wait(t(), String.t()) :: {:error, Backplane.AgentRuntime.Error.t()}