Skip to content

Commit 515779c

Browse files
authored
chore(langchain-sdk): add note to README about asyncio environments (#92)
1 parent 748fad4 commit 515779c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ Import and initialize the toolbox client.
3737
from toolbox_langchain_sdk import ToolboxClient
3838

3939
# Replace with your Toolbox service's URL
40-
toolbox = ToolboxClient("http://localhost:5000")
40+
toolbox = ToolboxClient("http://127.0.0.1:5000")
4141
```
4242

43+
> [!IMPORTANT]
44+
> The toolbox client requires an asynchronous environment.
45+
> For guidance on running asynchronous Python programs, see
46+
> [running an async program in python](https://docs.python.org/3/library/asyncio-runner.html#running-an-asyncio-program).
47+
4348
> [!TIP]
4449
> You can also pass your own `ClientSession` so that the `ToolboxClient` can
4550
> reuse the same session.

0 commit comments

Comments
 (0)