mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-01-10 16:08:16 -05:00
fix: Update README and quickstart with the correct async APIs. (#269)
This commit is contained in:
@@ -258,7 +258,7 @@ You can load toolsets by name:
|
||||
all_tools = await client.aload_toolset()
|
||||
|
||||
# This will only load the tools listed in 'my_second_toolset'
|
||||
my_second_toolset = await aclient.load_toolset("my_second_toolset")
|
||||
my_second_toolset = await client.aload_toolset("my_second_toolset")
|
||||
```
|
||||
|
||||
### AuthSources
|
||||
|
||||
@@ -281,7 +281,7 @@ from Toolbox.
|
||||
|
||||
# Load the tools from the Toolbox server
|
||||
client = ToolboxClient("http://127.0.0.1:5000")
|
||||
tools = await aclient.load_toolset()
|
||||
tools = await client.aload_toolset()
|
||||
|
||||
agent = create_react_agent(model, tools, checkpointer=MemorySaver())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user