llmSendMessageStreaming
fun <T : Any> llmSendMessageStreaming(transformStreamData: (Flow.Publisher<ERROR CLASS: Symbol not found for StreamFrame>) -> Flow.Publisher<T>, outputClass: Class<T>, structureDefinition: ERROR CLASS: Symbol not found for StructureDefinition?? = null, name: String? = null): AIAgentNodeBase<ERROR CLASS: Symbol not found for Message.User, Flow.Publisher<T>>(source)
A node that appends a Message.User to the prompt and requests a streaming response from the LLM. This overload transforms the stream via a Publisher for Java interoperability.
Return
An instance of AIAgentNodeBase with a Message.User input and a Publisher output.
Parameters
transformStreamData
A function that processes the incoming stream of StreamFrame objects and transforms them into a publisher.
outputClass
The class type of the transformed output data.
structureDefinition
An optional definition of structured data.
name
An optional name for the node being created.
fun llmSendMessageStreaming(name: String? = null, structureDefinition: ERROR CLASS: Symbol not found for StructureDefinition??): AIAgentNodeBase<ERROR CLASS: Symbol not found for Message.User, ERROR CLASS: Symbol not found for Flow<ERROR CLASS: Symbol not found for StreamFrame>>(source)
A node that appends a Message.User 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
Optional structure definition to customize the streaming response.