Class AnthropicDirectProvider
java.lang.Object
ai.redouble.nucleo.harness.llm.AbstractClientProvider<AnthropicSDKClient>
ai.redouble.nucleo.providers.anthropic.AnthropicProvider<AnthropicSDKClient>
ai.redouble.nucleo.providers.anthropic.AnthropicDirectProvider
- All Implemented Interfaces:
ClientProvider<AnthropicSDKClient>, ModelDiscovery
public class AnthropicDirectProvider
extends AnthropicProvider<AnthropicSDKClient>
implements ModelDiscovery
Serves Anthropic models through Anthropic's own API. Lists what the key may call through
the API's model listing; the account's limits are not listed anywhere, they arrive on every
response's rate-limit headers, which the discovery's ping reads.
- Since:
- 0.1 (2026-06-21)
- Author:
- Andrey Santrosyan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringchannel()The channel suffix of this provider's catalog ids:direct,bedrock,mantle.The id of the credential this provider's clients are constructed around, in the deployment'sSecretsstore: the oneClientProvider.createClient(ModelSpec)would fail without.The shapes of the credentials this provider reads: which parts each has and the environment variable each part comes from, declared once here and put on record by the provider registry when it loads the provider, so every store reads and describes the credential by the same declaration.key()Registry key, matched againstModelSpec.getProviderKey().Every model the account can reach on this provider's surface.protected AnthropicSDKClientBuilds a fresh, unconfigured client of this provider's type.platform()The platform the credential belongs to:bedrockfor every Bedrock surface,openai,azure,anthropic.Methods inherited from class AnthropicProvider
catalogIdOf, claims, createClient, identityOf, specTypesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientProvider
addressing, configured, connectionFacts, describeCredential, serves
-
Constructor Details
-
AnthropicDirectProvider
public AnthropicDirectProvider()
-
-
Method Details
-
key
Description copied from interface:ClientProviderRegistry key, matched againstModelSpec.getProviderKey(). Stable and unique across providers (duplicate keys are rejected at registration).- Specified by:
keyin interfaceClientProvider<AnthropicSDKClient>
-
platform
Description copied from interface:ClientProviderThe platform the credential belongs to:bedrockfor every Bedrock surface,openai,azure,anthropic. The scope of a deployment'sModelStatus.DISABLED: a model disabled on one key of a platform is disabled on every key of it (base Bedrock and Mantle are one platform), and on no key of another.- Specified by:
platformin interfaceClientProvider<AnthropicSDKClient>
-
channel
Description copied from class:AnthropicProviderThe channel suffix of this provider's catalog ids:direct,bedrock,mantle.- Specified by:
channelin classAnthropicProvider<AnthropicSDKClient>
-
credentialId
Description copied from interface:ClientProviderThe id of the credential this provider's clients are constructed around, in the deployment'sSecretsstore: the oneClientProvider.createClient(ModelSpec)would fail without.- Specified by:
credentialIdin interfaceClientProvider<AnthropicSDKClient>
-
credentialShapes
Description copied from interface:ClientProviderThe shapes of the credentials this provider reads: which parts each has and the environment variable each part comes from, declared once here and put on record by the provider registry when it loads the provider, so every store reads and describes the credential by the same declaration. By default one credential,ClientProvider.credentialId(), that is an API key alone; a provider whose credential has a host, a user, or that reads several credentials declares them.- Specified by:
credentialShapesin interfaceClientProvider<AnthropicSDKClient>
-
newClient
Description copied from class:AbstractClientProviderBuilds a fresh, unconfigured client of this provider's type.- Specified by:
newClientin classAbstractClientProvider<AnthropicSDKClient>
-
listModels
Description copied from interface:ModelDiscoveryEvery model the account can reach on this provider's surface. The provider's own failure (a rejected credential, an unreachable endpoint) propagates as-is; the discovery reports it verbatim against the provider and moves on.- Specified by:
listModelsin interfaceModelDiscovery
-