Skip to content

Commit bd5b728

Browse files
authored
doc: Update README.md (#138)
1 parent b28bdb5 commit bd5b728

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ toolbox = ToolboxClient("http://127.0.0.1:5000")
5050
> reuse the same session.
5151
> ```
5252
> async with ClientSession() as session:
53-
> client = ToolboxClient(http://localhost:5000, session)
53+
> toolbox = ToolboxClient("http://localhost:5000", session)
5454
> ```
5555
5656
## Load a toolset
@@ -81,15 +81,14 @@ toolkit.
8181

8282
```python
8383
from langchain_google_vertexai import ChatVertexAI
84-
from langchain.agents import initialize_agent
8584

86-
model = ChatVertexAI()
85+
model = ChatVertexAI(model="gemini-1.5-flash")
8786

8887
# Initialize agent with tools
89-
agent = initialize_agent(tools, model)
88+
agent = model.bind_tools(tools)
9089

9190
# Run the agent
92-
agent.run("Do something with the tools")
91+
result = agent.invoke("Do something with the tools")
9392
```
9493

9594
## Use with LangGraph

0 commit comments

Comments
 (0)