You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/toolbox-core/README.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,9 @@ involving Large Language Models (LLMs).
20
20
-[Installation](#installation)
21
21
-[Quickstart](#quickstart)
22
22
-[Usage](#usage)
23
+
-[Transport Protocols](#transport-protocols)
24
+
-[Supported Protocols](#supported-protocols)
25
+
-[Example](#example)
23
26
-[Loading Tools](#loading-tools)
24
27
-[Load a toolset](#load-a-toolset)
25
28
-[Load a single tool](#load-a-single-tool)
@@ -142,6 +145,50 @@ All interactions for loading and invoking tools happen through this client.
142
145
> loaded will cease to function and will raise an error if you attempt to invoke
143
146
> them after the client is closed.
144
147
148
+
## Transport Protocols
149
+
150
+
The SDK supports multiple transport protocols for communicating with the Toolbox server. By default, the client uses the latest supported version of the **Model Context Protocol (MCP)**.
151
+
152
+
You can explicitly select a protocol using the `protocol` option during client initialization. This is useful if you need to use the native Toolbox HTTP protocol or pin the client to a specific legacy version of MCP.
153
+
154
+
> [!NOTE]
155
+
> ***Native Toolbox Transport**: This uses the service's native **REST over HTTP** API.
156
+
> ***MCP Transports**: These options use the **Model Context Protocol over HTTP**.
157
+
158
+
### Supported Protocols
159
+
160
+
| Constant | Description |
161
+
| :--- | :--- |
162
+
|`Protocol.MCP`|**(Default)** Alias for the latest supported MCP version (currently `v2025-06-18`). |
163
+
|`Protocol.TOOLBOX`| The native Toolbox HTTP protocol. |
164
+
|`Protocol.MCP_v20250618`| MCP Protocol version 2025-06-18. |
165
+
|`Protocol.MCP_v20250326`| MCP Protocol version 2025-03-26. |
166
+
|`Protocol.MCP_v20241105`| MCP Protocol version 2024-11-05. |
167
+
168
+
### Example
169
+
170
+
If you wish to use the native Toolbox protocol:
171
+
172
+
```py
173
+
from toolbox_core import ToolboxClient
174
+
from toolbox_core.protocol import Protocol
175
+
176
+
asyncwith ToolboxClient("http://127.0.0.1:5000", protocol=Protocol.TOOLBOX) as toolbox:
177
+
# Use client
178
+
pass
179
+
```
180
+
181
+
If you want to pin the MCP Version 2025-03-26:
182
+
183
+
```py
184
+
from toolbox_core import ToolboxClient
185
+
from toolbox_core.protocol import Protocol
186
+
187
+
asyncwith ToolboxClient("http://127.0.0.1:5000", protocol=Protocol.MCP_v20250326) as toolbox:
188
+
# Use client
189
+
pass
190
+
```
191
+
145
192
## Loading Tools
146
193
147
194
You can load tools individually or in groups (toolsets) as defined in your
Copy file name to clipboardExpand all lines: packages/toolbox-langchain/README.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@ applications, enabling advanced orchestration and interaction with GenAI models.
12
12
-[Installation](#installation)
13
13
-[Quickstart](#quickstart)
14
14
-[Usage](#usage)
15
+
-[Transport Protocols](#transport-protocols)
16
+
-[Supported Protocols](#supported-protocols)
17
+
-[Example](#example)
15
18
-[Loading Tools](#loading-tools)
16
19
-[Load a toolset](#load-a-toolset)
17
20
-[Load a single tool](#load-a-single-tool)
@@ -89,6 +92,50 @@ from toolbox_langchain import ToolboxClient
89
92
asyncwith ToolboxClient("http://127.0.0.1:5000") as toolbox:
90
93
```
91
94
95
+
## Transport Protocols
96
+
97
+
The SDK supports multiple transport protocols for communicating with the Toolbox server. By default, the client uses the latest supported version of the **Model Context Protocol (MCP)**.
98
+
99
+
You can explicitly select a protocol using the `protocol` option during client initialization. This is useful if you need to use the native Toolbox HTTP protocol or pin the client to a specific legacy version of MCP.
100
+
101
+
> [!NOTE]
102
+
> ***Native Toolbox Transport**: This uses the service's native **REST over HTTP** API.
103
+
> ***MCP Transports**: These options use the **Model Context Protocol over HTTP**.
104
+
105
+
### Supported Protocols
106
+
107
+
| Constant | Description |
108
+
| :--- | :--- |
109
+
|`Protocol.MCP`|**(Default)** Alias for the latest supported MCP version (currently `v2025-06-18`). |
110
+
|`Protocol.TOOLBOX`| The native Toolbox HTTP protocol. |
111
+
|`Protocol.MCP_v20250618`| MCP Protocol version 2025-06-18. |
112
+
|`Protocol.MCP_v20250326`| MCP Protocol version 2025-03-26. |
113
+
|`Protocol.MCP_v20241105`| MCP Protocol version 2024-11-05. |
114
+
115
+
### Example
116
+
117
+
If you wish to use the native Toolbox protocol:
118
+
119
+
```py
120
+
from toolbox_langchain import ToolboxClient
121
+
from toolbox_core.protocol import Protocol
122
+
123
+
asyncwith ToolboxClient("http://127.0.0.1:5000", protocol=Protocol.TOOLBOX) as toolbox:
124
+
# Use client
125
+
pass
126
+
```
127
+
128
+
If you want to pin the MCP Version 2025-03-26:
129
+
130
+
```py
131
+
from toolbox_langchain import ToolboxClient
132
+
from toolbox_core.protocol import Protocol
133
+
134
+
asyncwith ToolboxClient("http://127.0.0.1:5000", protocol=Protocol.MCP_v20250326) as toolbox:
Copy file name to clipboardExpand all lines: packages/toolbox-llamaindex/README.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@ applications, enabling advanced orchestration and interaction with GenAI models.
12
12
-[Installation](#installation)
13
13
-[Quickstart](#quickstart)
14
14
-[Usage](#usage)
15
+
-[Transport Protocols](#transport-protocols)
16
+
-[Supported Protocols](#supported-protocols)
17
+
-[Example](#example)
15
18
-[Loading Tools](#loading-tools)
16
19
-[Load a toolset](#load-a-toolset)
17
20
-[Load a single tool](#load-a-single-tool)
@@ -93,6 +96,50 @@ from toolbox_llamaindex import ToolboxClient
93
96
asyncwith ToolboxClient("http://127.0.0.1:5000") as toolbox:
94
97
```
95
98
99
+
## Transport Protocols
100
+
101
+
The SDK supports multiple transport protocols for communicating with the Toolbox server. By default, the client uses the latest supported version of the **Model Context Protocol (MCP)**.
102
+
103
+
You can explicitly select a protocol using the `protocol` option during client initialization. This is useful if you need to use the native Toolbox HTTP protocol or pin the client to a specific legacy version of MCP.
104
+
105
+
> [!NOTE]
106
+
> ***Native Toolbox Transport**: This uses the service's native **REST over HTTP** API.
107
+
> ***MCP Transports**: These options use the **Model Context Protocol over HTTP**.
108
+
109
+
### Supported Protocols
110
+
111
+
| Constant | Description |
112
+
| :--- | :--- |
113
+
|`Protocol.MCP`|**(Default)** Alias for the latest supported MCP version (currently `v2025-06-18`). |
114
+
|`Protocol.TOOLBOX`| The native Toolbox HTTP protocol. |
115
+
|`Protocol.MCP_v20250618`| MCP Protocol version 2025-06-18. |
116
+
|`Protocol.MCP_v20250326`| MCP Protocol version 2025-03-26. |
117
+
|`Protocol.MCP_v20241105`| MCP Protocol version 2024-11-05. |
118
+
119
+
### Example
120
+
121
+
If you wish to use the native Toolbox protocol:
122
+
123
+
```py
124
+
from toolbox_llamaindex import ToolboxClient
125
+
from toolbox_core.protocol import Protocol
126
+
127
+
asyncwith ToolboxClient("http://127.0.0.1:5000", protocol=Protocol.TOOLBOX) as toolbox:
128
+
# Use client
129
+
pass
130
+
```
131
+
132
+
If you want to pin the MCP Version 2025-03-26:
133
+
134
+
```py
135
+
from toolbox_llamaindex import ToolboxClient
136
+
from toolbox_core.protocol import Protocol
137
+
138
+
asyncwith ToolboxClient("http://127.0.0.1:5000", protocol=Protocol.MCP_v20250326) as toolbox:
0 commit comments