GenerativeBackend

class GenerativeBackend


Represents a reference to a backend for generative AI.

Summary

Public companion functions

GenerativeBackend

References the Google Developer API backend.

GenerativeBackend
vertexAI(location: String)

References the VertexAI Gemini API backend.

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public companion functions

googleAI

fun googleAI(): GenerativeBackend

References the Google Developer API backend.

vertexAI

fun vertexAI(location: String = "us-central1"): GenerativeBackend

References the VertexAI Gemini API backend.

Parameters
location: String = "us-central1"

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int