Tool
Framework-agnostic tool that can be invoked by an LLM. Adapters in SPI layer bridge to Spring AI ToolCallback or LangChain4j ToolSpecification/ToolExecutor.
All nested types are scoped within this interface to avoid naming conflicts with framework-specific types (e.g., Spring AI's ToolDefinition, ToolMetadata).
Inheritors
Types
Framework-agnostic tool definition.
Java-friendly functional interface for tool implementations. Uses handle method name which is more idiomatic in Java than invoke.
Input schema for a tool, supporting both simple and complex parameters.
Supported parameter types.
Properties
Functions
Execute the tool with JSON input.
Extension function to convert an Embabel Tool to a Spring AI ToolCallback.
Unwrap a tool to find the innermost implementation. Recursively unwraps DelegatingTool wrappers.
Extension function to wrap a Tool with event publication.