Uses of Class
dev.langchain4j.mcp.McpToolProvider.Builder
Packages that use McpToolProvider.Builder
-
Uses of McpToolProvider.Builder in dev.langchain4j.mcp
Methods in dev.langchain4j.mcp that return McpToolProvider.BuilderModifier and TypeMethodDescriptionstatic McpToolProvider.BuilderMcpToolProvider.builder()McpToolProvider.Builder.failIfOneServerFails(boolean failIfOneServerFails) If this is true, then the tool provider will throw an exception if it fails to list tools from any of the servers.McpToolProvider.Builder.filter(BiPredicate<McpClient, ToolSpecification> mcpToolsFilter) The predicate to filter MCP provided tools.McpToolProvider.Builder.filterToolNames(String... toolNames) Filter MCP provided tools with a specific name.McpToolProvider.Builder.mcpClients(McpClient... mcpClients) The list of MCP clients to use for retrieving tools.McpToolProvider.Builder.mcpClients(List<McpClient> mcpClients) The list of MCP clients to use for retrieving tools.McpToolProvider.Builder.resourcesAsToolsPresenter(McpResourcesAsToolsPresenter resourcesAsToolsPresenter) Provides a presenter for presenting resources via synthetic tools.McpToolProvider.Builder.toolNameMapper(BiFunction<McpClient, ToolSpecification, String> toolNameMapper) Defines a mapping function to customize the tool names as they are registered in the tool provider.McpToolProvider.Builder.toolSpecificationMapper(BiFunction<McpClient, ToolSpecification, ToolSpecification> toolSpecificationMapper) Defines a mapping function to customize the tool specifications as they are registered in the tool provider.McpToolProvider.Builder.toolWrapper(Function<ToolExecutor, ToolExecutor> toolWrapper) Provide a wrapper around theToolExecutorthat can be used to implement tracing for example.