Companion

Companion object for the Prompt class, providing utilities and constants for creating instances of Prompt.

Properties

Link copied to clipboard

Represents an empty state for a Prompt object. This variable is initialized with an empty list for the prompt's options and an empty string as the prompt's message.

Functions

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

Constructs a new Prompt instance by applying the provided initialization logic to a PromptBuilder.

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

Builds a Prompt object using the specified identifier, parameters, and initialization logic.