onLLMStreamingStarting

suspend fun onLLMStreamingStarting(runId: String, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>)(source)

Invoked before streaming from a language model begins.

This method notifies all registered stream handlers that streaming is about to start, allowing them to perform preprocessing or logging operations.

Parameters

runId

The unique identifier for this streaming session

prompt

The prompt being sent to the language model

model

The language model being used for streaming

tools

The list of available tool descriptors for this streaming session