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

List<String>?
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 callbackExecutorExecutor

The Executor on which callbacks should be invoked

candidateCount

val candidateCountInt?

The max unique responses to return

context

val contextContext?

The application context to use

maxOutputTokens

val maxOutputTokensInt?

The max tokens to generate per response

stopSequence

val stopSequenceList<String>?

temperature

val temperatureFloat?

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

topK

val topKInt?

How many tokens to select amongst the highest probabilities

workerExecutor

val workerExecutorExecutorService

The ExecutorService on which background tasks should be run