LlmRequest

data class LlmRequest(val model: Model? = null, val contents: List<Content> = emptyList(), val config: GenerateContentConfig = GenerateContentConfig(), toolsDict: List<BaseTool> = emptyList())

LlmRequest represents a request to an LLM.

Constructors

Link copied to clipboard
constructor(model: Model? = null, contents: List<Content> = emptyList(), config: GenerateContentConfig = GenerateContentConfig(), toolsDict: List<BaseTool> = emptyList())

Properties

Link copied to clipboard

The configuration for generating content.

Link copied to clipboard

The contents of the request.

Link copied to clipboard
val model: Model? = null

The model to use for the request.

Functions

Link copied to clipboard

Appends a content block to the request.

Link copied to clipboard

Appends instructions to the system instruction.

Link copied to clipboard

Appends tools to the request and merges any new function declarations.