doTransform

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

Low level transform, not necessarily aware of platform This is a convenience overload that creates a UserMessage from a String prompt

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

Low level transform, not necessarily aware of platform

Parameters

messages

messages

interaction

The LLM call options

outputClass

Class of the output object

llmRequestEvent

Event already published for this request if one has been