executeStreamingWithPublisher

Executes a given prompt using the specified language model (LLM) and tools, providing the results as a synchronous stream of StreamFrame objects.

Return

A Publisher that emits StreamFrame objects representing streamed responses generated by the LLM.

Parameters

prompt

The Prompt object containing the input messages and parameters for the execution.

model

The LLModel instance specifying the language model to be used.

tools

An optional list of ToolDescriptor objects defining the tools available during execution. Defaults to an empty list.