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 (inline-credentials) form: caller supplies the API key in the
request body. Required on Create unless relayed is set.
Relayed (credential-less) form: no Anthropic credential is stored. Each
inference request instead carries the caller's own OAuth token, which the
platform forwards to Anthropic on outbound requests. Mutually exclusive
with direct; no api_key is required or persisted.
Anthropic provider configuration. Exactly one of
directorrelayedmust be set on Create; the two are mutually exclusive.