Uses of Interface
org.springframework.ai.tool.ToolCallbackProvider
Packages that use ToolCallbackProvider
Package
Description
Chat client.
Core support for Model Context Protocol (MCP) integration in Spring AI.
-
Uses of ToolCallbackProvider in org.springframework.ai.chat.client
Methods in org.springframework.ai.chat.client with parameters of type ToolCallbackProviderModifier and TypeMethodDescriptionChatClient.Builder.defaultTools
(ToolCallbackProvider... toolCallbackProviders) DefaultChatClientBuilder.defaultTools
(ToolCallbackProvider... toolCallbackProviders) ChatClient.ChatClientRequestSpec.tools
(ToolCallbackProvider... toolCallbackProviders) DefaultChatClient.DefaultChatClientRequestSpec.tools
(ToolCallbackProvider... toolCallbackProviders) -
Uses of ToolCallbackProvider in org.springframework.ai.mcp
Classes in org.springframework.ai.mcp that implement ToolCallbackProviderModifier and TypeClassDescriptionclass
Implementation ofToolCallbackProvider
that discovers and provides MCP tools asynchronously from one or more MCP servers.class
Implementation ofToolCallbackProvider
that discovers and provides MCP tools from one or more MCP servers. -
Uses of ToolCallbackProvider in org.springframework.ai.mcp.client.autoconfigure
Methods in org.springframework.ai.mcp.client.autoconfigure that return ToolCallbackProviderModifier and TypeMethodDescriptionMcpToolCallbackAutoConfiguration.mcpAsyncToolCallbacks
(org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.client.McpAsyncClient>> mcpClientsProvider) McpToolCallbackAutoConfiguration.mcpToolCallbacks
(org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.client.McpSyncClient>> syncMcpClients) Creates tool callbacks for all configured MCP clients. -
Uses of ToolCallbackProvider in org.springframework.ai.mcp.server.autoconfigure
Method parameters in org.springframework.ai.mcp.server.autoconfigure with type arguments of type ToolCallbackProviderModifier and TypeMethodDescriptionio.modelcontextprotocol.server.McpAsyncServer
McpServerAutoConfiguration.mcpAsyncServer
(io.modelcontextprotocol.spec.McpServerTransportProvider transportProvider, io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.Builder capabilitiesBuilder, McpServerProperties serverProperties, org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification>> tools, org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceSpecification>> resources, org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptSpecification>> prompts, org.springframework.beans.factory.ObjectProvider<BiConsumer<io.modelcontextprotocol.server.McpAsyncServerExchange, List<io.modelcontextprotocol.spec.McpSchema.Root>>> rootsChangeConsumer, List<ToolCallbackProvider> toolCallbackProvider) io.modelcontextprotocol.server.McpSyncServer
McpServerAutoConfiguration.mcpSyncServer
(io.modelcontextprotocol.spec.McpServerTransportProvider transportProvider, io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.Builder capabilitiesBuilder, McpServerProperties serverProperties, org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification>> tools, org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification>> resources, org.springframework.beans.factory.ObjectProvider<List<io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification>> prompts, org.springframework.beans.factory.ObjectProvider<BiConsumer<io.modelcontextprotocol.server.McpSyncServerExchange, List<io.modelcontextprotocol.spec.McpSchema.Root>>> rootsChangeConsumers, List<ToolCallbackProvider> toolCallbackProvider) -
Uses of ToolCallbackProvider in org.springframework.ai.tool
Classes in org.springframework.ai.tool that implement ToolCallbackProviderModifier and TypeClassDescriptionclass
A simple implementation ofToolCallbackProvider
that maintains a static array ofToolCallback
objects.Methods in org.springframework.ai.tool that return ToolCallbackProviderModifier and TypeMethodDescriptionstatic ToolCallbackProvider
ToolCallbackProvider.from
(List<? extends ToolCallback> toolCallbacks) static ToolCallbackProvider
ToolCallbackProvider.from
(ToolCallback... toolCallbacks) -
Uses of ToolCallbackProvider in org.springframework.ai.tool.method
Classes in org.springframework.ai.tool.method that implement ToolCallbackProviderModifier and TypeClassDescriptionfinal class