Backplane.AiProtocol.ExecutionContext (backplane_ai_protocol v0.7.0)

Copy Markdown

Trusted host-owned execution data.

This type is host-local. A payload cannot create it, and it must never be exposed as a portable Request field.

Summary

Functions

Rejects any attempt to materialize trusted execution context from a portable request payload.

Types

t()

@type t() :: %Backplane.AiProtocol.ExecutionContext{
  capability_revision: term() | nil,
  credential_binding: term() | nil,
  deadlines: map() | nil,
  logging_policy: map() | nil,
  permissions: term() | nil,
  principal: term(),
  resolved_endpoint: term(),
  resource_limits: map() | nil,
  route_policy: map() | nil,
  transport: map() | nil
}

Functions

from_portable_payload(attrs)

@spec from_portable_payload(map()) :: {:error, Backplane.AiProtocol.Error.t()}

Rejects any attempt to materialize trusted execution context from a portable request payload.

new(attrs)

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