doTransform

open fun <O> doTransform(prompt: String, interaction: LlmInteraction, outputClass: Class<O>, llmRequestEvent: LlmRequestEvent<O>?): O

Low level transform, not necessarily aware of platform

Parameters

prompt

user prompt. Will become the last user message

interaction

The LLM call options

outputClass

Class of the output object

llmRequestEvent

Event already published for this request if one has been


abstract fun <O> doTransform(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, llmRequestEvent: LlmRequestEvent<O>?): O

Respond in a conversation