Skip to content

Commit d790ab6

Browse files
authored
chore(langchain-sdk): Update README (#58)
1 parent 79e8303 commit d790ab6

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,24 @@ This SDK allows you to seamlessly integrate the functionalities of
44
[Toolbox](https://github.com/googleapis/genai-toolbox) into your LLM
55
applications, enabling advanced orchestration and interaction with GenAI models.
66

7-
> [!NOTE]
8-
> Currently the SDK only supports [LangChain](https://python.langchain.com/docs/introduction/).
9-
107
<!-- TOC -->
118

129
- [GenAI Toolbox SDK](#genai-toolbox-sdk)
1310
- [Installation](#installation)
1411
- [Usage](#usage)
1512
- [Load a toolset](#load-a-toolset)
13+
- [Load a single tool](#load-a-single-tool)
1614
- [Use with LangChain](#use-with-langchain)
1715
- [Use with LangGraph](#use-with-langgraph)
1816
- [Represent Tools as Nodes](#represent-tools-as-nodes)
1917
- [Connect Tools with LLM](#connect-tools-with-llm)
2018
- [Manual usage](#manual-usage)
2119

2220
<!-- /TOC -->
23-
2421
## Installation
2522

2623
> [!IMPORTANT]
27-
> This SDK is not yet available on PyPI. For now, install it from source by following these [installation instructions](DEVELOPER.md) (up to step 3).
24+
> This SDK is not yet available on PyPI. For now, install it from source by following these [installation instructions](DEVELOPER.md).
2825
2926
You can install the Toolbox SDK for LangChain using `pip`.
3027

@@ -45,7 +42,7 @@ toolbox = ToolboxClient("http://localhost:5000")
4542

4643
## Load a toolset
4744

48-
You can load a toolsets, that are collections of related tools.
45+
You can load a toolset, a collection of related tools.
4946

5047
```python
5148
# Load all tools
@@ -55,6 +52,14 @@ tools = await toolbox.load_toolset()
5552
tools = await toolbox.load_toolset("my-toolset")
5653
```
5754

55+
## Load a single tool
56+
57+
You can also load a single tool.
58+
59+
```python
60+
tool = await toolbox.load_tool("my-tool")
61+
```
62+
5863
## Use with LangChain
5964

6065
LangChain's agents can dynamically choose and execute tools based on the user
@@ -82,6 +87,7 @@ follow the [official guide](https://langchain-ai.github.io/langgraph/) with
8287
minimal changes.
8388

8489
### Represent Tools as Nodes
90+
8591
Each tool generated by the SDK can be represented as a LangGraph node. The
8692
node's functionality would encapsulate the execution of the corresponding tool.
8793

@@ -141,4 +147,4 @@ You can also execute a tool manually using the `arun` method.
141147

142148
```python
143149
result = await tools[0].arun({ "name": "Alice", "age": 30 })
144-
```
150+
```

0 commit comments

Comments
 (0)