MCPcopy Create free account
hub / github.com/astercloud/aster / _get_session

Method _get_session

client-sdks/python-bridge/aster.py:66–70  ·  view source on GitHub ↗

获取或创建 HTTP 会话

(self)

Source from the content-addressed store, hash-verified

64 self._session: Optional[aiohttp.ClientSession] = None
65
66 async def _get_session(self) -> aiohttp.ClientSession:
67 """获取或创建 HTTP 会话"""
68 if self._session is None or self._session.closed:
69 self._session = aiohttp.ClientSession()
70 return self._session
71
72 async def call_tool(self, name: str, **kwargs) -> Any:
73 """

Callers 3

call_toolMethod · 0.95
list_toolsMethod · 0.95
get_tool_schemaMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected