Class McpAsyncToolset.Builder
java.lang.Object
com.google.adk.tools.mcp.McpAsyncToolset.Builder
- Enclosing class:
McpAsyncToolset
Builder for McpAsyncToolset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()callToolResultMapper(@Nullable CallToolResultMapper callToolResultMapper) Sets how tools convert MCP call results into their responses.connectionParams(SseServerParameters connectionParams) connectionParams(io.modelcontextprotocol.client.transport.ServerParameters connectionParams) mcpSessionManager(McpSessionManager mcpSessionManager) objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) toolFilter(@Nullable ToolPredicate toolPredicate) toolFilter(List<String> toolNames)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionParams
@CanIgnoreReturnValue public McpAsyncToolset.Builder connectionParams(io.modelcontextprotocol.client.transport.ServerParameters connectionParams) -
connectionParams
@CanIgnoreReturnValue public McpAsyncToolset.Builder connectionParams(SseServerParameters connectionParams) -
mcpSessionManager
@CanIgnoreReturnValue public McpAsyncToolset.Builder mcpSessionManager(McpSessionManager mcpSessionManager) -
objectMapper
@CanIgnoreReturnValue public McpAsyncToolset.Builder objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
toolFilter
-
toolFilter
@CanIgnoreReturnValue public McpAsyncToolset.Builder toolFilter(@Nullable ToolPredicate toolPredicate) -
callToolResultMapper
@CanIgnoreReturnValue public McpAsyncToolset.Builder callToolResultMapper(@Nullable CallToolResultMapper callToolResultMapper) Sets how tools convert MCP call results into their responses. By default they return only the text content, or an error. -
build
-