Skip to content

Commit 5af425e

Browse files
google-genai-botcopybara-github
authored andcommitted
feat: making the McpAsyncToolset constructor protected for subclassing
PiperOrigin-RevId: 899218434
1 parent 78766c1 commit 5af425e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/main/java/com/google/adk/tools/mcp/McpAsyncToolset.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ public McpAsyncToolset build() {
121121
}
122122

123123
/**
124-
* Initializes the McpAsyncToolset with SSE server parameters.
124+
* Initializes the McpAsyncToolset with a provided McpSessionManager.
125125
*
126-
* @param connectionParams The SSE connection parameters to the MCP server.
126+
* @param mcpSessionManager The session manager for MCP connections.
127127
* @param objectMapper An ObjectMapper instance for parsing schemas.
128128
* @param toolFilter Either a ToolPredicate or a List of tool names.
129129
*/
130-
McpAsyncToolset(
130+
protected McpAsyncToolset(
131131
McpSessionManager mcpSessionManager, ObjectMapper objectMapper, @Nullable Object toolFilter) {
132132
Objects.requireNonNull(mcpSessionManager);
133133
Objects.requireNonNull(objectMapper);

0 commit comments

Comments
 (0)