GenerativeBackend

public final class GenerativeBackend


Represents a reference to a backend for generative AI.

Summary

Nested types

public static class GenerativeBackend.Companion

Public methods

static final @NonNull GenerativeBackend

References the Google Developer API backend.

static final @NonNull GenerativeBackend
vertexAI(@NonNull String location)

References the VertexAI Enterprise backend.

Public methods

googleAI

public static final @NonNull GenerativeBackend googleAI()

References the Google Developer API backend.

vertexAI

public static final @NonNull GenerativeBackend vertexAI(@NonNull String location)

References the VertexAI Enterprise backend.

Parameters
@NonNull String location

passes a valid cloud server location, defaults to "us-central1"