PromptRunnerOperations

User-facing interface for executing prompts.

Inheritors

Functions

Link copied to clipboard
open fun <T> createObject(prompt: String, outputClass: Class<T>): T

Create an object of the given type using the given prompt and LLM options from context (process context or implementing class). Prompts are typically created within the scope of an

abstract fun <T> createObject(messages: List<Message>, outputClass: Class<T>): T

Create an object from messages

Link copied to clipboard
abstract fun <T> createObjectIfPossible(prompt: String, outputClass: Class<T>): T?

Try to create an object of the given type using the given prompt and LLM options from context (process context or implementing class). Prompt is typically created within the scope of an

Link copied to clipboard
abstract fun evaluateCondition(condition: String, context: String, confidenceThreshold: <Error class: unknown class> = 0.8): Boolean
Link copied to clipboard
open infix fun generateText(prompt: String): String

Generate text

Link copied to clipboard
open fun respond(messages: List<Message>): AssistantMessage

Respond in a conversation

Link copied to clipboard
abstract fun withTemplate(templateName: String): TemplateOperations

Use operations from a given template