doTransformObjectStream

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

Low level object streaming transform with optional platform context. Streams typed objects as they are parsed from JSONL response. When agentProcess is provided, tools are resolved from ToolGroups and decorated.

Return

Flux of typed objects as they are parsed from the response

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