GenerationInput

sealed class GenerationInput(source)

Prompt material accepted by high-level generators.

Use Prompt for a single user prompt, Messages for an already-built conversation history, and MessagesWithPrompt when appending a new user prompt to existing model messages. The high-level generator converts these values into ModelMessage lists before calling a provider.

Since

0.3.0-beta01

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

A non-empty message history passed through without adding a new prompt.

Link copied to clipboard

A non-empty message history plus a final user prompt appended at call preparation time.

Link copied to clipboard

Wrapper that guarantees history-backed inputs are never empty.

Link copied to clipboard
data class Prompt(val text: String) : GenerationInput

A single user prompt.