GenerateContentRequest.Builder

class GenerateContentRequest.Builder


Builder for GenerateContentRequest.

Summary

Public constructors

Builder(content: Content)
Builder(contents: List<Content>)
Builder(image: ImagePart, text: TextPart)
Builder(systemInstruction: SystemInstruction, text: TextPart)
Builder(
    systemInstruction: SystemInstruction,
    image: ImagePart,
    text: TextPart
)

Public functions

GenerateContentRequest

Public constructors

Builder

Builder(content: Content)

Builder

Builder(contents: List<Content>)

Builder

Builder(text: TextPart)

Builder

Builder(image: ImagePart, text: TextPart)

Builder

Builder(systemInstruction: SystemInstruction, text: TextPart)

Builder

Builder(
    systemInstruction: SystemInstruction,
    image: ImagePart,
    text: TextPart
)

Public functions

build

fun build(): GenerateContentRequest

Public properties

cachedContextName

var cachedContextNameString?

candidateCount

var candidateCountInt?

enableThinking

var enableThinkingBoolean

maxOutputTokens

var maxOutputTokensInt?

promptPrefix

var promptPrefixPromptPrefix?

seed

var seedInt?

systemInstruction

var systemInstructionSystemInstruction?

temperature

var temperatureFloat?

tools

var toolsList<KClass<*>>?

topK

var topKInt?