onLLMStreamingFailed
suspend fun onLLMStreamingFailed(eventId: String, executionInfo: AgentExecutionInfo, runId: String, prompt: Prompt, model: LLModel, throwable: Throwable, context: AIAgentContext)(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;
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;
throwable
The exception that occurred during streaming if applicable;
context
The AI agent context associated with the streaming operation.