Class VertexBackend

  • All Implemented Interfaces:
    com.anthropic.backends.Backend

    
    public final class VertexBackend
     implements Backend
                        

    The Google Cloud Vertex AI backend that manages the Google OAuth2 credentials and other information required to access an Anthropic AI model on Vertex AI and adapts requests to Vertex AI's requirements.

    Google Cloud Vertex AI requires authentication credentials issued by Google. These can be provided via environment variables, or other Google facilities, such as the Google Cloud CLI. The application default credentials (ADC) can be resolved by calling Builder.fromEnv. For other types of credentials, create them separately and supply them to Builder.googleCredentials.

    See the Google Cloud documentation for details on how to configure Google credentials.