Buckets:

download
raw
692 Bytes
from mcp.types import Tool
from pydantic import ConfigDict
class MCPClientTool(Tool):
"""Represents a tool proxy that can be called on the MCP server from the client side.
This version doesn't store a session reference, as sessions are created on-demand
by the MCPClient for each operation.
"""
model_config = ConfigDict(arbitrary_types_allowed=True)
def to_param(self) -> dict:
"""Convert tool to function call format."""
return {
'type': 'function',
'function': {
'name': self.name,
'description': self.description,
'parameters': self.inputSchema,
},
}

Xet Storage Details

Size:
692 Bytes
·
Xet hash:
095459dba07bdf7517567d43a87a3581e2b2da0d1d601a7e34acacd569de1bc3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.