ToolNotFoundPolicy

Determines how the tool loop responds when the LLM calls a tool that does not exist in the available set.

See also

Inheritors

Functions

Link copied to clipboard
abstract fun handle(requestedName: String, availableTools: List<Tool>): ToolNotFoundAction

Handle a tool-not-found event.

Link copied to clipboard
open fun onToolFound()

Called when a tool is found successfully, allowing stateful policies to reset internal counters.