Inference.GovernedAuthority (inference v0.3.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. Reference-only authority never selects its target adapter directly: callers must separately inject a managed-materialization adapter.

Summary

Functions

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()}