mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
fix: Undo adding MCP tools output schema to FunctionDeclaration
Co-authored-by: Xuan Yang <xygoogle@google.com> PiperOrigin-RevId: 827557144
This commit is contained in:
committed by
Copybara-Service
parent
a02f321f1b
commit
92a7d19573
@@ -121,13 +121,10 @@ class McpTool(BaseAuthenticatedTool):
|
||||
"""
|
||||
input_schema = self._mcp_tool.inputSchema
|
||||
parameters = _to_gemini_schema(input_schema)
|
||||
output_schema = self._mcp_tool.outputSchema
|
||||
response = _to_gemini_schema(output_schema)
|
||||
function_decl = FunctionDeclaration(
|
||||
name=self.name,
|
||||
description=self.description,
|
||||
parameters=parameters,
|
||||
response=response,
|
||||
)
|
||||
return function_decl
|
||||
|
||||
|
||||
Reference in New Issue
Block a user