Secret-free local credential classification captured from one acquisition.
API key values and OAuth tokens never leave MingaAgent.Credentials. OAuth
presence is represented by its exact provider/account identity when the local
file supplies one; activation still pins and refreshes through ReqLLM.
Summary
Functions
Returns whether any local API-key or exact OAuth identity is configured.
Builds a secret-free credential snapshot from an exact OAuth identity.
Returns the exact local OAuth identity, if the snapshot contained one.
Returns the configured source for one API-key provider.
Types
@type source() :: :env | :file
@type t() :: %MingaAgent.Credentials.Snapshot{ oauth_ref: MingaAgent.ModelSelection.Credential.OAuth.t() | nil, provider_sources: %{optional(String.t()) => source()} }
Functions
Returns whether any local API-key or exact OAuth identity is configured.
@spec new( %{optional(String.t()) => source()}, MingaAgent.ModelSelection.Credential.OAuth.t() | nil ) :: t()
Builds a secret-free credential snapshot from an exact OAuth identity.
@spec oauth_ref(t()) :: MingaAgent.ModelSelection.Credential.OAuth.t() | nil
Returns the exact local OAuth identity, if the snapshot contained one.
Returns the configured source for one API-key provider.