doTransformObjectStreamWithThinking

abstract fun <O> doTransformObjectStreamWithThinking(messages: List<Message>, interaction: LlmInteraction, outputClass: Class<O>, llmRequestEvent: LlmRequestEvent<O>?, agentProcess: AgentProcess? = null, action: Action? = null): <Error class: unknown class><<Error class: unknown class><O>>

Low level mixed content streaming transform with optional platform context. Streams both typed objects and thinking content from mixed JSONL response. When agentProcess is provided, tools are resolved from ToolGroups and decorated.

Return

Flux of StreamingEvent objects containing either objects or thinking content

Parameters

messages

messages in the conversation so far

interaction

The LLM call options

outputClass

Class of the output objects

llmRequestEvent

Event already published for this request if one has been

agentProcess

Optional agent process for tool resolution and decoration

action

Optional action context for tool decoration