Tool
interface 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
Link copied to clipboard
interface Definition
Framework-agnostic tool definition.
Link copied to clipboard
Java-friendly functional interface for tool implementations. Uses handle method name which is more idiomatic in Java than invoke.
Link copied to clipboard
interface InputSchema
Input schema for a tool, supporting both simple and complex parameters.
Link copied to clipboard
Supported parameter types.
Properties
Functions
Link copied to clipboard
Execute the tool with JSON input.
Link copied to clipboard
Extension function to convert an Embabel Tool to a Spring AI ToolCallback.
Link copied to clipboard
fun Tool.withEventPublication(agentProcess: AgentProcess, action: Action?, llmOptions: <Error class: unknown class>): Tool
Extension function to wrap a Tool with event publication.