ai.wire.credential_sources

The environment variables a credential chain consulted, as a readable list, for the "no credential configured" error a client raises when the whole chain came back empty.

Reference version

Signature

function ai.wire.credential_sources(cred: ai.Credential | null, canonical_env: string | null) -> string

The environment variables a credential chain consulted, as a readable list, for the "no credential configured" error a client raises when the whole chain came back empty.

The point is the Ref arm: api_key = env.MY_KEY pointing at an UNSET variable resolves to null and falls through to the rest of the chain, so without this the error would name only the provider's canonical variable and never mention the one the caller actually asked for. Values are never included — only names.

Source:<builtin>/ai/ns_wire/wire.bamlbytes 44364838