Spring Tool Callback Wrapper
Wraps a Spring AI ToolCallback as an Embabel Tool.
This reverse adapter allows existing Spring AI tools to be used within the Embabel framework.
Parameters
the Spring AI ToolCallback to wrap
controls which ToolCallContext entries are forwarded as MCP _meta when the underlying callback is an MCP tool. Defaults to ToolCallContextMcpMetaConverter.passThrough.
Constructors
Properties
Functions
Execute the tool with JSON input.
Execute the tool with JSON input and out-of-band context.
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.