createObject

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


open fun <T> createObject(prompt: String, outputClass: Class<T>, interactionId: String?): T

Create an object, specifying a custom interaction id for clearer logging


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

Create an object from messages


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