ToolCallResultHandler

A functional interface designed for handling the result of tool executions in a structured manner. Implementations can define custom logic for processing the result of a tool based on the provided tool instance, its arguments, and the execution result.

Functions

Link copied to clipboard
abstract suspend fun handle(eventContext: ToolCallResultContext)

Handles the execution of a specific tool by processing its arguments and optionally handling its result.