onToolCallFailure

abstract fun onToolCallFailure(handler: suspend (ToolCallFailureContext) -> Unit)(source)

Deprecated

Use onToolCallFailed instead

Replace with

import ai.koog.agents.core.feature.handler.ToolCallFailedContext
onToolCallFailed(handler)

Append handler called when a tool call fails with an exception.