onLLMStreamingCompleted

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

Invoked after streaming from a language model completes.

This method notifies all registered stream handlers that streaming has finished, allowing them to perform post-processing, cleanup, or final logging operations.

Parameters

runId

The unique identifier for this streaming session

prompt

The prompt that was sent to the language model

model

The language model that was used for streaming

tools

The list of tool descriptors that were available for this streaming session