executeStreaming

open override fun executeStreaming(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): Flow<StreamFrame>(source)

Executes a streaming call to the language model with tool support.

This method wraps the underlying executor's streaming functionality with pipeline hooks to enable monitoring and processing of stream events. It triggers before-stream handlers before starting, stream-frame handlers for each frame received, and after-stream handlers upon completion.

Return

A Flow of StreamFrame objects representing the streaming response

Parameters

prompt

The prompt to send to the language model

model

The language model to use for streaming

tools

The list of available tool descriptors for the streaming call