liveModel

actual fun liveModel(modelName: String, generationConfig: LiveGenerationConfig?, tools: List<Tool>?, systemInstruction: Content?, requestOptions: RequestOptions): LiveGenerativeModel(source)

Instantiates a new LiveGenerationConfig given the provided parameters.

Return

The initialized LiveGenerativeModel instance.

Parameters

modelName

The name of the model to use. See the documentation for a list of supported models.

generationConfig

The configuration parameters to use for content generation.

tools

A list of Tools the model may use to generate content.

systemInstruction

Content instructions that direct the model to behave a certain way. Currently only text content is supported.

requestOptions

Configuration options for sending requests to the backend.

expect fun liveModel(modelName: String, generationConfig: LiveGenerationConfig? = null, tools: List<Tool>? = null, systemInstruction: Content? = null, requestOptions: RequestOptions = RequestOptions()): LiveGenerativeModel(source)

Instantiates a new LiveGenerationConfig given the provided parameters.

Return

The initialized LiveGenerativeModel instance.

Parameters

modelName

The name of the model to use. See the documentation for a list of supported models.

generationConfig

The configuration parameters to use for content generation.

tools

A list of Tools the model may use to generate content.

systemInstruction

Content instructions that direct the model to behave a certain way. Currently only text content is supported.

requestOptions

Configuration options for sending requests to the backend.

actual fun liveModel(modelName: String, generationConfig: LiveGenerationConfig?, tools: List<Tool>?, systemInstruction: Content?, requestOptions: RequestOptions): LiveGenerativeModel(source)

Instantiates a new LiveGenerationConfig given the provided parameters.

Return

The initialized LiveGenerativeModel instance.

Parameters

modelName

The name of the model to use. See the documentation for a list of supported models.

generationConfig

The configuration parameters to use for content generation.

tools

A list of Tools the model may use to generate content.

systemInstruction

Content instructions that direct the model to behave a certain way. Currently only text content is supported.

requestOptions

Configuration options for sending requests to the backend.