klyn.llm.LLMToolCallObserver.toolCallFailed
method
public toolCallFailed(call as ToolCall, exception as Exception) as Void
Description

Called when a tool cannot be executed.

The original exception is re-thrown by the session after this hook, so the observer must not swallow the failure.

Parameters
ParameterDescription
callTool call requested by the provider.
exceptionExecution failure.
Example
public override toolCallFailed(call as ToolCall, exception as Exception) as Void:
print("failed " + call.name + ": " + exception.message)