Package dev.langchain4j.mcp
Class McpToolProvider.Builder
java.lang.Object
dev.langchain4j.mcp.McpToolProvider.Builder
- Enclosing class:
McpToolProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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.mcpClients
(McpClient... mcpClients) The list of MCP clients to use for retrieving tools.mcpClients
(List<McpClient> mcpClients) The list of MCP clients to use for retrieving tools.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mcpClients
The list of MCP clients to use for retrieving tools. -
mcpClients
The list of MCP clients to use for retrieving tools. -
failIfOneServerFails
If this is true, then the tool provider will throw an exception if it fails to list tools from any of the servers. If this is false (default), then the tool provider will ignore the error and continue with the next server. -
build
-