Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Prompt(val messages: List<Message>, val id: String, val params: LLMParams = LLMParams())

Represents a structured prompt for an LLM containing a list of messages, an identifier, and optional language model parameters.

Link copied to clipboard

A builder class for creating prompts using a DSL approach.

Link copied to clipboard
annotation class PromptDSL

Marker annotation for the Prompt DSL.

Functions

Link copied to clipboard
fun prompt(existing: Prompt, build: PromptBuilder.() -> Unit): Prompt

Extends an existing prompt using the Prompt DSL.

fun prompt(id: String, params: LLMParams = LLMParams(), build: PromptBuilder.() -> Unit): Prompt

Creates a new prompt using the Prompt DSL.