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


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

Create an object from messages