llmRequestStreaming
Creates a node for streaming responses from LLM and handling the incoming stream data. The method allows customization of the transformation applied to the streamed frames and is designed for integration in Java environments.
Return
An instance of AIAgentNodeBase with a string input and a publisher output whose data type matches the transformed output.
Parameters
A function that processes the incoming stream of StreamFrame objects and transforms them into a publisher of the desired type.
The class type of the transformed output data.
An optional definition of structured data, enabling customization of the request or response structure.
An optional name for the node being created.
Creates an AI agent node configured for processing streaming requests to a language model.
Return
An instance of AIAgentNodeBase, configured to process language model requests with input of type String and output as a stream of StreamFrame.
Parameters
An optional name for the node. If null, the name will be automatically generated.
An optional structure definition for customizing the content generated by the node.