nodeLLMRequestStreaming

fun <T> AIAgentSubgraphBuilderBase<*, *>.nodeLLMRequestStreaming(name: String? = null, structureDefinition: StructuredDataDefinition? = null, transformStreamData: suspend (Flow<String>) -> Flow<T>): AIAgentNodeDelegateBase<String, Flow<T>>(source)

A node that appends a user message to the LLM prompt, streams LLM response and transforms the stream data.

Parameters

name

Optional node name.

structureDefinition

Optional structure to guide the LLM response.

transformStreamData

Function to process the streamed data.


A node that appends a user message to the LLM prompt and streams LLM response without transformation.

Parameters

name

Optional node name.

structureDefinition

Optional structure to guide the LLM response.