Class AnthropicProvider<E extends AnthropicSDKClient>
java.lang.Object
ai.redouble.nucleo.harness.llm.AbstractClientProvider<E>
ai.redouble.nucleo.providers.anthropic.AnthropicProvider<E>
- Type Parameters:
E- the Anthropic client type this provider builds
- All Implemented Interfaces:
ClientProvider<E>
- Direct Known Subclasses:
AnthropicBedrockMantleProvider, AnthropicBedrockProvider, AnthropicDirectProvider
public abstract class AnthropicProvider<E extends AnthropicSDKClient>
extends AbstractClientProvider<E>
Anthropic-family provider layer. Mirrors the client hierarchy
(
AnthropicBedrockSDKClient extends AnthropicSDKClient) so endpoint variants share
Anthropic-specific construction logic as the clients diverge from other vendors. The
direct and Bedrock subclasses differ only in AbstractClientProvider.newClient(); both get the shared
OkHttp connection-pool tuning here.- Since:
- 0.1 (2026-06-21)
- Author:
- Andrey Santrosyan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncatalogIdOf(String identity, String wireModelId) The catalog id a new entry on this provider gets for an identity the discovery adds: the identity itself by default, endpoint-suffixed where the provider's entries are (claude-opus-5-bedrock).protected abstract Stringchannel()The channel suffix of this provider's catalog ids:direct,bedrock,mantle.booleanClaude is the family the Anthropic SDK is written for, on every channel it reaches.createClient(ModelSpec spec) Builds the client for the given spec.identityOf(String wireModelId) Claude ids the Anthropic way; anything else the account lists on this surface (Bedrock lists every vendor) the generic way.Map<String, Class<? extends AbstractModelSpec>> Every Anthropic-served entry, direct or Bedrock-hosted, is anAnthropicModelSpec.Methods inherited from class AbstractClientProvider
newClientMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientProvider
addressing, configured, connectionFacts, credentialId, credentialShapes, describeCredential, key, platform, serves
-
Constructor Details
-
AnthropicProvider
public AnthropicProvider()
-
-
Method Details
-
createClient
Description copied from interface:ClientProviderBuilds the client for the given spec. The returned client is bare (no per-job observability wrap) and intended to be shared across jobs for the same spec.- Specified by:
createClientin interfaceClientProvider<E extends AnthropicSDKClient>- Overrides:
createClientin classAbstractClientProvider<E extends AnthropicSDKClient>
-
specTypes
Every Anthropic-served entry, direct or Bedrock-hosted, is anAnthropicModelSpec. -
channel
The channel suffix of this provider's catalog ids:direct,bedrock,mantle. -
identityOf
-
claims
Claude is the family the Anthropic SDK is written for, on every channel it reaches. -
catalogIdOf
Description copied from interface:ClientProviderThe catalog id a new entry on this provider gets for an identity the discovery adds: the identity itself by default, endpoint-suffixed where the provider's entries are (claude-opus-5-bedrock).
-