nodeLLMRequestStreaming

fun <T> nodeLLMRequestStreaming(name: String? = null, structureDefinition: StructureDefinition? = null, transformStreamData: suspend (Flow<StreamFrame>) -> Flow<T>): AIAgentNodeDelegate<String, Flow<T>>(source)

A node that appends a user text message to the prompt and requests a streaming response from the LLM, applying transformStreamData to convert the raw StreamFrame flow into a flow of T.

Parameters

name

Optional node name, defaults to delegate's property name.

structureDefinition

An optional structure definition to guide the streaming response format.

transformStreamData

A suspend function that transforms the StreamFrame flow into a Flow of T.


A node that appends a user text message to the prompt and requests a streaming response from the LLM, returning raw StreamFrame elements.

Parameters

name

Optional node name, defaults to delegate's property name.

structureDefinition

An optional structure definition to guide the streaming response format.