Class AnthropicBackend.Builder

  • All Implemented Interfaces:

    
    public final class AnthropicBackend.Builder
    
                        

    A builder for a AnthropicBackend used to connect an Anthropic client to an Anthropic backend service.

    The authorization credentials can be extracted from the environment and set on the builder by calling fromEnv before calling build to create the AnthropicBackend. Alternatively, set one credential explicitly via apiKey, authToken or configurationProvider before calling build. A credential set explicitly is the only one used: nothing is taken from the environment, whichever kind it is.