onLLMStreamingFailed

expect open suspend override fun onLLMStreamingFailed(eventId: String, executionInfo: AgentExecutionInfo, context: AIAgentContext, runId: String, prompt: Prompt, model: LLModel, error: Throwable)(source)

Invoked if an error occurs during the streaming process.

This method notifies all registered stream handlers about the streaming error, allowing them to handle or log the error.

Parameters

eventId

The unique identifier for the event group;

executionInfo

The execution information for the LLM streaming event;

context

The context of the strategy execution;

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;

error

The exception that occurred during streaming if applicable.