Inference.GovernedAuthority (inference v0.1.0)

Copy Markdown View Source

Provider-neutral governed authority envelope checks for shared clients.

This module validates and carries refs used by governed adapter owners. It does not lease credentials, select routes, attach targets, or materialize raw provider secrets.

Summary

Functions

asm_runtime_auth_opts(client)

@spec asm_runtime_auth_opts(Inference.Client.t()) :: keyword()

governed?(client)

@spec governed?(Inference.Client.t()) :: boolean()

materialize_client_attrs(attrs)

@spec materialize_client_attrs(keyword() | map()) ::
  {:ok, map()} | {:error, Inference.Error.t()}

ref_projection(authority)

@spec ref_projection(keyword() | map() | term()) :: map()

reject_direct_request_options(client, request)

@spec reject_direct_request_options(Inference.Client.t(), Inference.Request.t()) ::
  :ok | {:error, Inference.Error.t()}