fix: introduces a raw_mcp_tool method in McpTool to provide direct access to the underlying MCP tool

PiperOrigin-RevId: 807299777
This commit is contained in:
Google Team Member
2025-09-15 10:48:13 -07:00
committed by Copybara-Service
parent b1312680f4
commit 6158075a65
@@ -111,6 +111,11 @@ class McpTool(BaseAuthenticatedTool):
)
return function_decl
@property
def raw_mcp_tool(self) -> McpBaseTool:
"""Returns the raw MCP tool."""
return self._mcp_tool
@retry_on_closed_resource
@override
async def _run_async_impl(