Remove unused StreamableHTTPTransport.get_session_id() (#3205)
This commit is contained in:
parent
68ca87e20b
commit
af06330a31
1 changed files with 1 additions and 9 deletions
|
|
@ -2110,7 +2110,7 @@ Client-side stream resumption is also unchanged: the transport reconnects a drop
|
|||
|
||||
The `get_session_id` callback (third element of the returned tuple) has been removed from `streamable_http_client`. The function now returns a 2-tuple `(read_stream, write_stream)` instead of a 3-tuple.
|
||||
|
||||
The `GetSessionIdCallback` type alias is gone as well, so `from mcp.client.streamable_http import GetSessionIdCallback` now raises `ImportError`. Drop the annotation, or inline `Callable[[], str | None]` if your own wrapper code still needs the type.
|
||||
The `GetSessionIdCallback` type alias is gone as well, so `from mcp.client.streamable_http import GetSessionIdCallback` now raises `ImportError`. Drop the annotation, or inline `Callable[[], str | None]` if your own wrapper code still needs the type. The `StreamableHTTPTransport.get_session_id()` method that backed the callback is removed too.
|
||||
|
||||
If you need to capture the session ID (e.g., for session resumption testing), you can use httpx2 event hooks to capture it from the response headers:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue