OptionalproviderProvider configuration mode. Exactly one variant may be set: an inline
credential (direct) or credential-less relaying (relayed).
(-- Anthropic is the only provider with a non-direct mode today. The oneof
enforces direct-vs-relayed exclusivity on the wire; the validator still
enforces that one of them is set on Create and per-mode completeness
(e.g. relayed.plan_type). --)
Direct authentication with an API key supplied in
direct.api_key.plaintext. Required unless relayed is set.
Relayed authentication. Each inference request supplies the caller's
OAuth token, which is forwarded to Anthropic. No Anthropic credential is
stored. Mutually exclusive with direct.
Anthropic provider configuration. Exactly one of
directorrelayedmust be set on Create; the two are mutually exclusive.