mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-25 06:54:19 +02:00
Unblock: unpack v2 streamable_http_client 2-tuple (Phase C interim)
This commit is contained in:
parent
5a77eab277
commit
dd21fb57b5
1 changed files with 5 additions and 2 deletions
|
|
@ -197,8 +197,11 @@ class StreamableHttpTransport(ClientTransport):
|
|||
http_client,
|
||||
streamable_http_client(self.url, http_client=http_client) as transport,
|
||||
):
|
||||
read_stream, write_stream, get_session_id = transport
|
||||
self._get_session_id_cb = get_session_id
|
||||
# SDK v2 streamable_http_client yields a 2-tuple (read, write);
|
||||
# the get_session_id callback is no longer part of the transport.
|
||||
# Phase C: source the session id from the session/transport itself.
|
||||
read_stream, write_stream = transport
|
||||
self._get_session_id_cb = None
|
||||
async with ClientSession(
|
||||
read_stream, write_stream, **session_kwargs
|
||||
) as session:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue