Generation

object Generation


Entry class to get a GenerativeModel client.

Summary

Public functions

GenerativeModel

Creates a new instance of GenerativeModel with default GenerationConfig.

GenerativeModel

Creates a new instance of GenerativeModel.

Public functions

getClient

fun getClient(): GenerativeModel

Creates a new instance of GenerativeModel with default GenerationConfig.

Returns
GenerativeModel

The GenerativeModel client.

getClient

fun getClient(options: GenerationConfig): GenerativeModel

Creates a new instance of GenerativeModel.

Parameters
options: GenerationConfig

the configuration for generation.