File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ toolbox = ToolboxClient("http://127.0.0.1:5000")
50
50
> reuse the same session.
51
51
> ```
52
52
> async with ClientSession() as session:
53
- > client = ToolboxClient(http://localhost:5000, session)
53
+ > toolbox = ToolboxClient(" http://localhost:5000" , session)
54
54
> ```
55
55
56
56
## Load a toolset
@@ -81,15 +81,14 @@ toolkit.
81
81
82
82
``` python
83
83
from langchain_google_vertexai import ChatVertexAI
84
- from langchain.agents import initialize_agent
85
84
86
- model = ChatVertexAI()
85
+ model = ChatVertexAI(model = " gemini-1.5-flash " )
87
86
88
87
# Initialize agent with tools
89
- agent = initialize_agent (tools, model )
88
+ agent = model.bind_tools (tools)
90
89
91
90
# Run the agent
92
- agent.run (" Do something with the tools" )
91
+ result = agent.invoke (" Do something with the tools" )
93
92
```
94
93
95
94
## Use with LangGraph
You can’t perform that action at this time.
0 commit comments