executeStreaming

abstract suspend fun executeStreaming(prompt: Prompt, model: LLModel): Flow<String>(source)

Executes a given prompt using the specified language model and returns a stream of output as a flow of strings.

Return

A flow emitting strings that represent the streaming output of the language model.

Parameters

prompt

The prompt containing input messages and parameters to guide the language model execution.

model

The language model to be used for processing the prompt.