Skip to content

Commit 03dc7e6

Browse files
chore: updated gemini models in docs (#556)
1 parent dd7b33b commit 03dc7e6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/toolbox-core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ async def main():
301301
async with ToolboxClient("http://127.0.0.1:5000") as toolbox:
302302
tools = await toolbox.load_toolset()
303303
wrapped_tools = [StructuredTool.from_function(tool, parse_docstring=True) for tool in tools]
304-
model_with_tools = ChatVertexAI(model="gemini-2.5-flash").bind_tools(wrapped_tools)
304+
model_with_tools = ChatVertexAI(model="gemini-3-flash-preview").bind_tools(wrapped_tools)
305305
tool_node = ToolNode(wrapped_tools)
306306

307307
def call_agent(state: State):

packages/toolbox-langchain/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ from langgraph.prebuilt import create_react_agent
6363
async with ToolboxClient("http://127.0.0.1:5000") as toolbox:
6464
tools = toolbox.load_toolset()
6565

66-
model = ChatVertexAI(model="gemini-2.0-flash-001")
66+
model = ChatVertexAI(model="gemini-3-flash-preview")
6767
agent = create_react_agent(model, tools)
6868

6969
prompt = "How's the weather today?"
@@ -173,7 +173,7 @@ input. Include tools loaded from the Toolbox SDK in the agent's toolkit:
173173
```py
174174
from langchain_google_vertexai import ChatVertexAI
175175

176-
model = ChatVertexAI(model="gemini-2.0-flash-001")
176+
model = ChatVertexAI(model="gemini-3-flash-preview")
177177

178178
# Initialize agent with tools
179179
agent = model.bind_tools(tools)
@@ -203,7 +203,7 @@ def call_model(state: MessagesState):
203203
response = model.invoke(messages)
204204
return {"messages": [response]} # Return a list to add to existing messages
205205

206-
model = ChatVertexAI(model="gemini-2.0-flash-001")
206+
model = ChatVertexAI(model="gemini-3-flash-preview")
207207
builder = StateGraph(MessagesState)
208208
tool_node = ToolNode(tools)
209209

packages/toolbox-llamaindex/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def run_agent():
6666
tools = toolbox.load_toolset()
6767

6868
vertex_model = GoogleGenAI(
69-
model="gemini-2.0-flash-001",
69+
model="gemini-3-flash-preview",
7070
vertexai_config={"project": "project-id", "location": "us-central1"},
7171
)
7272
agent = AgentWorkflow.from_tools_or_functions(
@@ -179,7 +179,7 @@ from llama_index.llms.google_genai import GoogleGenAI
179179
from llama_index.core.agent.workflow import AgentWorkflow
180180

181181
vertex_model = GoogleGenAI(
182-
model="gemini-2.0-flash-001",
182+
model="gemini-3-flash-preview",
183183
vertexai_config={"project": "project-id", "location": "us-central1"},
184184
)
185185

@@ -205,7 +205,7 @@ from llama_index.core.workflow import Context
205205
from llama_index.llms.google_genai import GoogleGenAI
206206

207207
vertex_model = GoogleGenAI(
208-
model="gemini-2.0-flash-001",
208+
model="gemini-3-flash-preview",
209209
vertexai_config={"project": "project-id", "location": "us-central1"},
210210
)
211211
agent = AgentWorkflow.from_tools_or_functions(

0 commit comments

Comments
 (0)