onLLMCallFailed
expect open suspend override fun onLLMCallFailed(eventId: String, executionInfo: AgentExecutionInfo, context: AIAgentContext, runId: String, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>, error: Throwable)(source)
Notifies all registered LLM handlers if a validation error occurs during a language model call.
Parameters
eventId
The unique identifier for the event group;
executionInfo
The execution information for the LLM call event;
context
The context of the strategy execution;
runId
Identifier for the current run;
prompt
The prompt that was sent to the language model;
model
The language model instance that processed the request;
tools
The list of tool descriptors that were available for the LLM call;
error
The error that occurred during the LLM call.