Confirming Tool
Tool decorator that always requires confirmation before executing the delegate.
When called, this tool throws AwaitableResponseException with a ConfirmationRequest. The framework handles the pause, the UX presents the confirmation, and if accepted, the tool is re-invoked (this time the confirmation is already satisfied via blackboard state).
Parameters
The tool to wrap
Function to generate the confirmation message from input
Properties
Functions
Execute the tool with JSON input.
Extension function to convert an Embabel Tool to a Spring AI ToolCallback.
Wrap this tool to conditionally await before execution.
Wrap this tool to always require confirmation before execution.
Create a new tool with a different description. Useful for providing context-specific descriptions while keeping the same functionality.
Extension function to wrap a Tool with event publication.