verify_llm_credential
Re-check the stored key — a key that worked at registration can be revoked later.
async fn verify_llm_credential(&self) -> Result<LlmCredentialCheck, BrainHttpError>Returns
status / valid / reason / providerLlmCredentialCheckalwaysThe same shape test_llm_credential returns. valid absent still means no verdict, not a failure.
Brain never takes a provider key from a request
The key is registered once, through these verbs, and sealed. It is never accepted as a per-request field, never returned by any read, and never configured on the Brain server itself. Anything that looks like a deploy-time provider key is from an older design. See Namespaces.
These five verbs exist on the HTTP tier only — the wire protocol has no credential routes.
When there is no usable credential
Extraction that needs the LLM fails with a typed error rather than degrading silently:
llm_credential.missing409fatalNo credential is registered. Deliberately a 409 and not a 503: the
SDK's retry list is transport failures, 429 and 503, and this condition
cannot self-heal, so retrying would spin forever against a tenant that
simply has not registered a key. Wire code LlmCredentialMissing.
llm_credential.unavailable503retriableA credential exists but the broker could not resolve or use it. A 503
precisely so clients do retry; collapsing it into the 409 would
permanently fail writes for a healthy tenant. Wire code
LlmCredentialUnavailable.
Non-LLM extraction — the pattern and classifier extractors — is unaffected, and encode and recall keep working. See Policies.
Was this page helpful?