Skip to content

Commit 05ee9e4

Browse files
Update docstring to reflect new streamable_http_client API usage
Co-authored-by: eavanvalkenburg <[email protected]>
1 parent b451480 commit 05ee9e4

File tree

1 file changed

+6
-7
lines changed
  • python/packages/core/agent_framework

1 file changed

+6
-7
lines changed

python/packages/core/agent_framework/_mcp.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -931,10 +931,9 @@ def __init__(
931931
"""Initialize the MCP streamable HTTP tool.
932932
933933
Note:
934-
The arguments are used to create a streamable HTTP client.
935-
See ``mcp.client.streamable_http.streamablehttp_client`` for more details.
936-
Any extra arguments passed to the constructor will be passed to the
937-
streamable HTTP client constructor.
934+
The arguments are used to create a streamable HTTP client using the
935+
new ``mcp.client.streamable_http.streamable_http_client`` API.
936+
The tool manages its own httpx.AsyncClient instance for proper session isolation.
938937
939938
Args:
940939
name: The name of the tool.
@@ -955,11 +954,11 @@ def __init__(
955954
allowed_tools: A list of tools that are allowed to use this tool.
956955
additional_properties: Additional properties.
957956
headers: The headers to send with the request.
958-
timeout: The timeout for the request.
959-
sse_read_timeout: The timeout for reading from the SSE stream.
957+
timeout: The timeout for the request (default: 30.0 seconds).
958+
sse_read_timeout: The timeout for reading from the SSE stream (default: 300.0 seconds).
960959
terminate_on_close: Close the transport when the MCP client is terminated.
961960
chat_client: The chat client to use for sampling.
962-
kwargs: Any extra arguments to pass to the SSE client.
961+
kwargs: Any extra arguments (currently not used but preserved for future compatibility).
963962
"""
964963
super().__init__(
965964
name=name,

0 commit comments

Comments
 (0)