# 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

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

## Properties

config
Link copied to clipboard
val config: GenerateContentConfig

The configuration for generating content.

contents
Link copied to clipboard
val contents: List<Content>

The contents of the request.

model
Link copied to clipboard
val model: Model? = null

The model to use for the request.

## Functions

appendContent
Link copied to clipboard
fun appendContent(content: Content): LlmRequest

Appends a content block to the request.

appendInstructions
Link copied to clipboard
fun appendInstructions(instructions: Content): LlmRequest

Appends instructions to the system instruction.

appendTools
Link copied to clipboard
fun appendTools(tools: List<BaseTool>): LlmRequest

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