Type Requesting Tool
Tool decorator that requires a value of type T from the user before execution.
When called, this tool throws AwaitableResponseException with a TypeRequest. The UX presents a form for the type, and when the user provides the value, it's added to the blackboard and the tool is re-invoked.
Parameters
The type of value to request
The tool to wrap
The class of the requested type
Function to generate the request message from input
Constructors
Properties
Functions
Routes single-arg calls through the canonical two-arg method, ensuring decorator logic in call (String, ToolCallContext) is always executed regardless of which overload the caller uses.
Canonical entry point for decorator logic. Override this method to add behavior while preserving context propagation to delegate.
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 additional definition metadata entries merged in. Existing keys are overwritten by the new values.
Create a new tool with a single definition metadata entry added.
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.