GenerationConfig


class GenerationConfig


Configuration parameters to use for content generation.

Summary

Nested types

Public companion functions

GenerationConfig.Builder

Public properties

Executor

The Executor on which callbacks should be invoked

Int?

The max unique responses to return

Context?

The application context to use

Int?

The max tokens to generate per response

Float?

The degree of randomness in token selection, typically between 0 and 1

Int?

How many tokens to select amongst the highest probabilities

ExecutorService

The ExecutorService on which background tasks should be run

Public companion functions

Public properties

callbackExecutor

val callbackExecutor: Executor

The Executor on which callbacks should be invoked

candidateCount

val candidateCount: Int?

The max unique responses to return

context

val context: Context?

The application context to use

maxOutputTokens

val maxOutputTokens: Int?

The max tokens to generate per response

temperature

val temperature: Float?

The degree of randomness in token selection, typically between 0 and 1

topK

val topK: Int?

How many tokens to select amongst the highest probabilities

workerExecutor

val workerExecutor: ExecutorService

The ExecutorService on which background tasks should be run