Asset Adding Tool
Add the result of calling this tool as an asset to the given AssetTracker if it is of the expected type. Also unwraps Iterables of the expected type.
Parameters
The type of artifact to convert to an Asset
The tool to delegate to
The asset tracker to add assets to
Function to convert from T to Asset
The class of T
Optional filter to decide which artifacts become assets. Default accepts all artifacts of the matching type.
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.