onLLMStreamingCompleted
suspend fun onLLMStreamingCompleted(eventId: String, executionInfo: AgentExecutionInfo, runId: String, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>, context: AIAgentContext)(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
eventId
The unique identifier for the event group;
executionInfo
The execution information for the LLM streaming event;
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;
context
The AI agent context associated with the streaming operation.