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 Agent Platform Gemini API.

boolean
equals(Object other)
static final @NonNull GenerativeBackend

References the Google Developer API backend.

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

This method is deprecated. Use agentPlatform instead.

Public methods

agentPlatform

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

References the Agent Platform Gemini API.

Parameters
@NonNull String location

passes a valid cloud server location, defaults to "global"

equals

public boolean equals(Object other)

googleAI

public static final @NonNull GenerativeBackend googleAI()

References the Google Developer API backend.

hashCode

public int hashCode()

vertexAI

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

References the VertexAI Gemini API backend.

Parameters
@NonNull String location

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