Package com.anthropic.vertex.backends
Class VertexBackend.Builder
-
- All Implemented Interfaces:
public final class VertexBackend.BuilderA builder for a VertexBackend used to connect an Anthropic client to an Anthropic model on the Google Cloud Vertex AI backend service.
The credentials can be extracted from the environment and set on the builder by calling fromEnv before calling build to create the VertexBackend. Alternatively, set the Google credentials, region and project explicitly via googleCredentials, region and project before calling build.
-
-
Method Summary
Modifier and Type Method Description final VertexBackend.BuilderfromEnv()final VertexBackend.BuildergoogleCredentials(GoogleCredentials googleCredentials)final VertexBackend.Builderregion(String region)final VertexBackend.Builderproject(String project)final VertexBackendbuild()-
-
Method Detail
-
fromEnv
final VertexBackend.Builder fromEnv()
-
googleCredentials
final VertexBackend.Builder googleCredentials(GoogleCredentials googleCredentials)
-
region
final VertexBackend.Builder region(String region)
-
project
final VertexBackend.Builder project(String project)
-
build
final VertexBackend build()
-
-
-
-