executeStreaming

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

Executes the given prompt with the specified model and streams the response in chunks as a flow.

This legacy extension point is kept open for existing subclasses. New subclasses should prefer overriding the ResolvedModel-based overload. If this method is overridden without calling super, resolveModel is bypassed.


open override fun executeStreaming(prompt: Prompt, resolvedModel: ResolvedModel, tools: List<ToolDescriptor> = emptyList()): Flow<StreamFrame>(source)

Executes the given prompt with the specified resolved model and streams the response in chunks as a flow. Preferred extension point for subclasses that want to preserve this executor's model-resolution flow.

Parameters

prompt

The prompt to execute, containing the messages and parameters.

model

The resolved LLM model to use for execution.

tools

A list of ToolDescriptor objects representing external tools available for use during execution.