mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-10-12 02:12:50 +00:00
docs: fix example to use correct StreamableHttpServerInfo class in MCPToolset documentation (#12247)
This commit is contained in:
@@ -71,7 +71,7 @@ toolset = MCPToolset(
|
||||
```python
|
||||
from haystack_integrations.tools.mcp import MCPToolset, StreamableHttpServerInfo
|
||||
|
||||
server_info = SSEServerInfo(url="http://localhost:8000/mcp")
|
||||
server_info = StreamableHttpServerInfo(url="http://localhost:8000/mcp")
|
||||
toolset = MCPToolset(server_info=server_info, tool_names=["get_current_time"])
|
||||
```
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ toolset = MCPToolset(
|
||||
```python
|
||||
from haystack_integrations.tools.mcp import MCPToolset, StreamableHttpServerInfo
|
||||
|
||||
server_info = SSEServerInfo(url="http://localhost:8000/mcp")
|
||||
server_info = StreamableHttpServerInfo(url="http://localhost:8000/mcp")
|
||||
toolset = MCPToolset(server_info=server_info, tool_names=["get_current_time"])
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user