Uses of Interface
org.springframework.ai.tool.ToolCallback
Packages that use ToolCallback
Package
Description
Chat client.
Core support for Model Context Protocol (MCP) integration in Spring AI.
-
Uses of ToolCallback in org.springframework.ai.autoconfigure.mcp.client
Methods in org.springframework.ai.autoconfigure.mcp.client that return types with arguments of type ToolCallbackModifier and TypeMethodDescriptionMcpClientAutoConfiguration.asyncToolCallbacksDeprecated
(org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.client.McpAsyncClient>> mcpClientsProvider) Deprecated.McpClientAutoConfiguration.toolCallbacksDeprecated
(org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.client.McpSyncClient>> mcpClientsProvider) Deprecated.replaced byMcpClientAutoConfiguration.toolCallbacks(ObjectProvider)
that returns aToolCallbackProvider
instead of a list ofToolCallback
-
Uses of ToolCallback in org.springframework.ai.autoconfigure.mcp.server
Method parameters in org.springframework.ai.autoconfigure.mcp.server with type arguments of type ToolCallbackModifier and TypeMethodDescriptionList<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration>
McpServerAutoConfiguration.asyncTools
(org.springframework.beans.factory.ObjectProvider<List<ToolCallback>> toolCalls) List<io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration>
McpServerAutoConfiguration.syncTools
(org.springframework.beans.factory.ObjectProvider<List<ToolCallback>> toolCalls) -
Uses of ToolCallback in org.springframework.ai.chat.client
Method parameters in org.springframework.ai.chat.client with type arguments of type ToolCallbackModifier and TypeMethodDescriptionChatClient.Builder.defaultTools
(List<ToolCallback> toolCallbacks) DefaultChatClientBuilder.defaultTools
(List<ToolCallback> toolCallbacks) ChatClient.ChatClientRequestSpec.tools
(List<ToolCallback> toolCallbacks) DefaultChatClient.DefaultChatClientRequestSpec.tools
(List<ToolCallback> toolCallbacks) -
Uses of ToolCallback in org.springframework.ai.mcp
Classes in org.springframework.ai.mcp that implement ToolCallbackModifier and TypeClassDescriptionclass
Implementation ofToolCallback
that adapts MCP tools to Spring AI's tool interface with asynchronous execution support.class
Implementation ofToolCallback
that adapts MCP tools to Spring AI's tool interface.Methods in org.springframework.ai.mcp that return ToolCallbackModifier and TypeMethodDescriptionAsyncMcpToolCallbackProvider.getToolCallbacks()
Discovers and returns all available tools from the configured MCP servers.SyncMcpToolCallbackProvider.getToolCallbacks()
Discovers and returns all available tools from all connected MCP servers.Methods in org.springframework.ai.mcp that return types with arguments of type ToolCallbackModifier and TypeMethodDescriptionstatic reactor.core.publisher.Flux<ToolCallback>
AsyncMcpToolCallbackProvider.asyncToolCallbacks
(List<io.modelcontextprotocol.client.McpAsyncClient> mcpClients) Creates a reactive stream of tool callbacks from multiple MCP clients.static List<ToolCallback>
McpToolUtils.getToolCallbacksFromAsyncClients
(io.modelcontextprotocol.client.McpAsyncClient... asynMcpClients) Convenience method to get tool callbacks from multiple asynchronous MCP clients.static List<ToolCallback>
McpToolUtils.getToolCallbacksFromAsyncClinents
(List<io.modelcontextprotocol.client.McpAsyncClient> asynMcpClients) Gets tool callbacks from a list of asynchronous MCP clients.static List<ToolCallback>
McpToolUtils.getToolCallbacksFromSyncClients
(io.modelcontextprotocol.client.McpSyncClient... mcpClients) Convenience method to get tool callbacks from multiple synchronous MCP clients.static List<ToolCallback>
McpToolUtils.getToolCallbacksFromSyncClients
(List<io.modelcontextprotocol.client.McpSyncClient> mcpClients) Gets tool callbacks from a list of synchronous MCP clients.static List<ToolCallback>
SyncMcpToolCallbackProvider.syncToolCallbacks
(List<io.modelcontextprotocol.client.McpSyncClient> mcpClients) Creates a consolidated list of tool callbacks from multiple MCP clients.Methods in org.springframework.ai.mcp with parameters of type ToolCallbackModifier and TypeMethodDescriptionstatic io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration
McpToolUtils.toAsyncToolRegistration
(ToolCallback toolCallback) Converts a Spring AI tool callback to an MCP asynchronous tool registration.static List<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration>
McpToolUtils.toAsyncToolRegistration
(ToolCallback... toolCallbacks) Convenience method to convert a variable number of tool callbacks to MCP asynchronous tool registrations.static io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
McpToolUtils.toSyncToolRegistration
(ToolCallback toolCallback) Converts a Spring AI FunctionCallback to an MCP SyncToolRegistration.static List<io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration>
McpToolUtils.toSyncToolRegistration
(ToolCallback... toolCallbacks) Convenience method to convert a variable number of tool callbacks to MCP synchronous tool registrations.Method parameters in org.springframework.ai.mcp with type arguments of type ToolCallbackModifier and TypeMethodDescriptionstatic List<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration>
McpToolUtils.toAsyncToolRegistration
(List<ToolCallback> toolCallbacks) Converts a list of Spring AI tool callbacks to MCP asynchronous tool registrations.static List<io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration>
McpToolUtils.toSyncToolRegistration
(List<ToolCallback> toolCallbacks) Converts a list of Spring AI tool callbacks to MCP synchronous tool registrations. -
Uses of ToolCallback in org.springframework.ai.tool
Methods in org.springframework.ai.tool that return ToolCallback -
Uses of ToolCallback in org.springframework.ai.tool.function
Classes in org.springframework.ai.tool.function that implement ToolCallbackModifier and TypeClassDescriptionclass
FunctionToolCallback<I,
O> AToolCallback
implementation to invoke functions as tools. -
Uses of ToolCallback in org.springframework.ai.tool.method
Classes in org.springframework.ai.tool.method that implement ToolCallbackMethods in org.springframework.ai.tool.method that return ToolCallback -
Uses of ToolCallback in org.springframework.ai.tool.resolution
Methods in org.springframework.ai.tool.resolution that return ToolCallbackModifier and TypeMethodDescription
McpClientAutoConfiguration.asyncToolCallbacks(ObjectProvider)
that returns aToolCallbackProvider
instead of a list ofToolCallback