Skip to content

Commit cfc03af

Browse files
committed
fix docs
1 parent 2f829a0 commit cfc03af

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

packages/toolbox-core/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,9 @@ For Toolbox servers hosted on Google Cloud (e.g., Cloud Run) and requiring
335335
3. **Connect to the Toolbox Server**
336336

337337
```python
338-
from functools import partial
339338
from toolbox_core import auth_methods
340339

341-
auth_token_provider = partial(auth_methods.aget_google_id_token, URL) # can also use sync method
340+
auth_token_provider = auth_methods.aget_google_id_token(URL) # can also use sync method
342341
async with ToolboxClient(
343342
URL,
344343
client_headers={"Authorization": auth_token_provider},

packages/toolbox-core/src/toolbox_core/auth_methods.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
2121
Example Usage:
2222
from toolbox_core import auth_methods
23-
from functools import partial
2423
2524
URL = "https://toolbox-service-url"
2625
async with ToolboxClient(

packages/toolbox-langchain/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,10 @@ For Toolbox servers hosted on Google Cloud (e.g., Cloud Run) and requiring
269269
3. **Connect to the Toolbox Server**
270270

271271
```python
272-
from functools import partial
273272
from toolbox_langchain import ToolboxClient
274273
from toolbox_core import auth_methods
275274

276-
auth_token_provider = partial(auth_methods.aget_google_id_token, URL) # can also use sync method
275+
auth_token_provider = auth_methods.aget_google_id_token(URL) # can also use sync method
277276
async with ToolboxClient(
278277
URL,
279278
client_headers={"Authorization": auth_token_provider},

packages/toolbox-llamaindex/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,10 @@ For Toolbox servers hosted on Google Cloud (e.g., Cloud Run) and requiring
248248
3. **Connect to the Toolbox Server**
249249

250250
```python
251-
from functools import partial
252251
from toolbox_llamaindex import ToolboxClient
253252
from toolbox_core import auth_methods
254253

255-
auth_token_provider = partial(auth_methods.aget_google_id_token, URL)
254+
auth_token_provider = auth_methods.aget_google_id_token(URL)
256255
async with ToolboxClient(
257256
URL,
258257
client_headers={"Authorization": auth_token_provider},

0 commit comments

Comments
 (0)