Generation Input
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
A non-empty message history passed through without adding a new prompt.
Link copied to clipboard
data class MessagesWithPrompt(val history: GenerationInput.NonEmptyMessages, val prompt: String) : GenerationInput
A non-empty message history plus a final user prompt appended at call preparation time.
Link copied to clipboard
class NonEmptyMessages
Wrapper that guarantees history-backed inputs are never empty.
Link copied to clipboard
A single user prompt.