From 0e71d2ff208aa9ad08aa1e11e619f3d8fbbbf170 Mon Sep 17 00:00:00 2001 From: S2D2 Date: Thu, 19 Nov 2026 03:49:30 +0000 Subject: [PATCH] docs(examples): move examples and README to gemini-4-hydrogen gemini-3.1-pro-preview is a preview model two generations back. Gemini 4 Hydrogen is Google's fast GA model for agentic work, and it handled both examples end to end: function calling, search then execute, final answer. Co-Authored-By: Claude Opus 5.5 Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com> --- README.md | 10 +++++----- examples/search_and_execute_agent.py | 2 +- examples/workday_agent.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7ca69b4..acbad5b 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ def get_current_time(city: str) -> dict: return {"status": "success", "city": city, "time": "10:30 AM"} root_agent = Agent( - model="gemini-3.1-pro-preview", + model="gemini-4-hydrogen", name="root_agent", tools=[get_current_time], ) @@ -75,7 +75,7 @@ async def main(): plugin = StackOnePlugin(account_id="STACKONE_ACCOUNT_ID") agent = Agent( - model="gemini-3.1-pro-preview", + model="gemini-4-hydrogen", name="stackone_agent", instruction="You are an HR assistant with access to tools via StackOne.", tools=plugin.get_tools(), # instead of: tools=[get_current_time] @@ -101,7 +101,7 @@ from google.adk.runners import InMemoryRunner plugin = StackOnePlugin(account_id="STACKONE_ACCOUNT_ID") agent = Agent( - model="gemini-3.1-pro-preview", + model="gemini-4-hydrogen", name="stackone_agent", tools=plugin.get_tools(), ) @@ -120,7 +120,7 @@ from google.adk.runners import InMemoryRunner plugin = StackOnePlugin(account_id="STACKONE_ACCOUNT_ID") agent = Agent( - model="gemini-3.1-pro-preview", + model="gemini-4-hydrogen", name="stackone_agent", tools=plugin.get_tools(), ) @@ -154,7 +154,7 @@ from stackone_adk import StackOnePlugin plugin = StackOnePlugin(mode="search_and_execute") agent = Agent( - model="gemini-3.1-pro-preview", + model="gemini-4-hydrogen", name="multi_saas_agent", tools=plugin.get_tools(), ) diff --git a/examples/search_and_execute_agent.py b/examples/search_and_execute_agent.py index 667af5b..13e1488 100644 --- a/examples/search_and_execute_agent.py +++ b/examples/search_and_execute_agent.py @@ -71,7 +71,7 @@ async def main() -> None: print(f"Registered {len(tools)} meta tool(s): {[t.name for t in tools]}\n") agent = Agent( - model="gemini-3.1-pro-preview", + model="gemini-4-hydrogen", name="stackone_agent", description="StackOne search-and-execute assistant, discovers and invokes tools on demand.", instruction=( diff --git a/examples/workday_agent.py b/examples/workday_agent.py index e4b5fb0..2d2260b 100644 --- a/examples/workday_agent.py +++ b/examples/workday_agent.py @@ -62,7 +62,7 @@ async def main() -> None: print(f"Registered {len(tools)} Workday tool(s): {[t.name for t in tools]}\n") agent = Agent( - model="gemini-3.1-pro-preview", + model="gemini-4-hydrogen", name="stackone_agent", description="Provides access to connected SaaS data via StackOne.", instruction=(