Skip to content

Commit 1f36dcf

Browse files
committed
update to gemini
1 parent c192177 commit 1f36dcf

18 files changed

Lines changed: 479 additions & 82 deletions

File tree

src/langsmith/evaluate-graph.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async def main():
187187
max_concurrency=4, # optional
188188
experiment_prefix="claude-sonnet-4-6-baseline", # optional
189189
metadata={ # optional, used to populate model/prompt/tool columns in UI
190-
"models": "anthropic:claude-sonnet-4-6",
190+
"models": "google_genai:gemini-3.1-pro-preview",
191191
"tools": [{"name": "search", "description": "Call to surf the web."}],
192192
},
193193
)
@@ -215,7 +215,7 @@ async def main():
215215
max_concurrency=4, # optional
216216
experiment_prefix="claude-sonnet-4-6-baseline", # optional
217217
metadata={ # optional, used to populate model/prompt/tool columns in UI
218-
"models": "anthropic:claude-sonnet-4-6",
218+
"models": "google_genai:gemini-3.1-pro-preview",
219219
"tools": [{"name": "search", "description": "Call to surf the web."}],
220220
},
221221
)
@@ -246,7 +246,7 @@ async def main():
246246
max_concurrency=4, # optional
247247
experiment_prefix="claude-sonnet-4-6-baseline", # optional
248248
metadata={ # optional, used to populate model/prompt/tool columns in UI
249-
"models": "anthropic:claude-sonnet-4-6",
249+
"models": "google_genai:gemini-3.1-pro-preview",
250250
"tools": [{"name": "search", "description": "Call to surf the web."}],
251251
},
252252
)
@@ -268,7 +268,7 @@ async def main():
268268
max_concurrency=4, # optional
269269
experiment_prefix="claude-sonnet-4-6-model-node", # optional
270270
metadata={ # optional, used to populate model/prompt/tool columns in UI
271-
"models": "anthropic:claude-sonnet-4-6",
271+
"models": "google_genai:gemini-3.1-pro-preview",
272272
"tools": [{"name": "search", "description": "Call to surf the web."}],
273273
},
274274
)
@@ -432,7 +432,7 @@ async def main():
432432
max_concurrency=4, # optional
433433
experiment_prefix="claude-sonnet-4-6-baseline", # optional
434434
metadata={ # optional, used to populate model/prompt/tool columns in UI
435-
"models": "anthropic:claude-sonnet-4-6",
435+
"models": "google_genai:gemini-3.1-pro-preview",
436436
"tools": [{"name": "search", "description": "Call to surf the web."}],
437437
},
438438
)

src/oss/concepts/providers-and-models.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ Because LangChain provider packages pass model names directly to the provider's
154154

155155
:::python
156156
```python
157-
model = init_chat_model("anthropic:claude-mythos")
157+
model = init_chat_model("google_genai:gemini-3.1-pro-preview")
158158
```
159159
:::
160160

161161
:::js
162162
```typescript
163-
const model = await initChatModel("anthropic:claude-mythos");
163+
const model = await initChatModel("google_genai:gemini-3.1-pro-preview");
164164
```
165165
:::
166166

src/oss/deepagents/cli/configuration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Then override per-project where needed by placing a `.env` in the project direct
7070
```toml
7171
[models]
7272
default = "ollama:qwen3:4b" # your intentional long-term preference
73-
recent = "anthropic:claude-sonnet-4-5" # last /model switch (written automatically)
73+
recent = "google_genai:gemini-3.1-pro-preview" # last /model switch (written automatically)
7474
```
7575

7676
`[models].default` always takes priority over `[models].recent`. The `/model` command only writes to `[models].recent`, so your configured default is never overwritten by mid-session switches. To remove the default, use `/model --default --clear` or delete the `default` key from the config file.
@@ -223,7 +223,7 @@ To override model profile fields at runtime without editing the config file, pas
223223
deepagents --profile-override '{"max_input_tokens": 4096}'
224224

225225
# Combine with --model
226-
deepagents --model anthropic:claude-sonnet-4-5 --profile-override '{"max_input_tokens": 4096}'
226+
deepagents --model google_genai:gemini-3.1-pro-preview --profile-override '{"max_input_tokens": 4096}'
227227

228228
# In non-interactive mode
229229
deepagents -n "Summarize this repo" --profile-override '{"max_input_tokens": 4096}'

src/oss/deepagents/cli/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ For full details on switching models, setting a default, and adding custom model
334334
Pass extra model constructor parameters when switching mid-session using `--model-params`:
335335

336336
```txt
337-
> /model --model-params '{"temperature": 0.7}' anthropic:claude-sonnet-4-5
337+
> /model --model-params '{"temperature": 0.7}' google_genai:gemini-3.1-pro-preview
338338
> /model --model-params '{"temperature": 0.7}' # opens selector, applies params to chosen model
339339
```
340340

@@ -842,7 +842,7 @@ When configured, the CLI displays a status line with a link to the LangSmith pro
842842
deepagents --agent mybot
843843
844844
# Use a specific model (provider:model format or auto-detect)
845-
deepagents --model anthropic:claude-sonnet-4-5
845+
deepagents --model google_genai:gemini-3.1-pro-preview
846846
deepagents --model gpt-4o
847847
848848
# Auto-approve tool usage (skip human-in-the-loop prompts)

src/oss/deepagents/customization.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ For the full parameter list, see the [`createDeepAgent`](https://reference.langc
8686

8787
## Model
8888

89-
Pass a `model` string in `provider:model` format, or an initialized model instance. Defaults to `anthropic:claude-sonnet-4-6`. See [supported models](/oss/deepagents/models#supported-models) for all providers and [suggested models](/oss/deepagents/models#suggested-models) for tested recommendations.
89+
Pass a `model` string in `provider:model` format, or an initialized model instance. See [supported models](/oss/deepagents/models#supported-models) for all providers and [suggested models](/oss/deepagents/models#suggested-models) for tested recommendations.
9090

9191
<Tip>
9292
Use the `provider:model` format (for example `openai:gpt-5`) to quickly switch between models.

src/oss/deepagents/deploy.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Core agent identity. For more on model selection and provider configuration, see
145145
Name for the deployed agent. Used as the assistant identifier in LangSmith.
146146
</ResponseField>
147147

148-
<ResponseField name="model" type="string" default="anthropic:claude-sonnet-4-6">
148+
<ResponseField name="model" type="string">
149149
Model identifier in `provider:model` format. See [supported models](/oss/deepagents/models#supported-models).
150150
</ResponseField>
151151

@@ -373,7 +373,7 @@ Each subagent subdirectory **may** contain:
373373
[agent]
374374
name = "researcher"
375375
description = "Researches market trends, competitors, and target audiences"
376-
model = "anthropic:claude-haiku-4-5-20251001"
376+
model = "google_genai:gemini-3.1-pro-preview"
377377
```
378378

379379
### Inheritance
@@ -404,14 +404,14 @@ A go-to-market agent that delegates research to a specialized subagent:
404404
```toml deepagents.toml
405405
[agent]
406406
name = "gtm-strategist"
407-
model = "anthropic:claude-sonnet-4-6"
407+
model = "google_genai:gemini-3.1-pro-preview"
408408
```
409409

410410
```toml subagents/researcher/deepagents.toml
411411
[agent]
412412
name = "researcher"
413413
description = "Researches market trends, competitors, and target audiences to inform GTM strategy"
414-
model = "anthropic:claude-haiku-4-5-20251001"
414+
model = "google_genai:gemini-3.1-pro-preview"
415415
```
416416

417417
```markdown subagents/researcher/AGENTS.md

src/oss/deepagents/quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This guide walks you through creating your first deep agent with planning, file
1414

1515
## Prerequisites
1616

17-
Before you begin, make sure you have an API key from a model provider (e.g., Anthropic, OpenAI).
17+
Before you begin, make sure you have an API key from a model provider (e.g., Gemini, Anthropic, OpenAI).
1818

1919
<Note>
2020
Deep Agents require a model that supports [tool calling](/oss/langchain/models#tool-calling). See [customization](/oss/deepagents/customization#model) for how to configure your model.
@@ -208,7 +208,7 @@ Use this to run an internet search for a given query. You can specify the max nu
208208
"""
209209
```
210210

211-
Pass a `model` string in `provider:model` format, or an initialized model instance. Defaults to `anthropic:claude-sonnet-4-6`. See [supported models](/oss/deepagents/models#supported-models) for all providers and [suggested models](/oss/deepagents/models#suggested-models) for tested recommendations.
211+
Pass a `model` string in `provider:model` format, or an initialized model instance. See [supported models](/oss/deepagents/models#supported-models) for all providers and [suggested models](/oss/deepagents/models#suggested-models) for tested recommendations.
212212

213213
<Tabs>
214214
<Tab title="Google">

src/oss/langchain/agents.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ from langchain.agents import create_agent
895895
from langchain.messages import SystemMessage, HumanMessage
896896

897897
literary_agent = create_agent(
898-
model="anthropic:claude-sonnet-4-5",
898+
model="google_genai:gemini-3.1-pro-preview",
899899
system_prompt=SystemMessage(
900900
content=[
901901
{
@@ -929,7 +929,7 @@ import { createAgent } from "langchain";
929929
import { SystemMessage, HumanMessage } from "@langchain/core/messages";
930930

931931
const literaryAgent = createAgent({
932-
model: "anthropic:claude-sonnet-4-5",
932+
model: "google_genai:gemini-3.1-pro-preview",
933933
systemPrompt: new SystemMessage({
934934
content: [
935935
{

src/oss/langchain/frontend/integrations/copilotkit.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ const structuredOutputMiddleware = createMiddleware({
290290
});
291291

292292
export const agent = createAgent({
293-
model: process.env.COPILOTKIT_MODEL ?? "anthropic:claude-haiku-4-5",
293+
model: process.env.COPILOTKIT_MODEL ?? "google_genai:gemini-3.1-pro-preview",
294294
contextSchema,
295295
middleware: [structuredOutputMiddleware],
296296
tools: [searchWebTool, deepSearchTool],

src/oss/langchain/mcp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ async with client.session("server_name") as session: # [!code highlight]
527527
# Pass the session to load tools, resources, or prompts
528528
tools = await load_mcp_tools(session) # [!code highlight]
529529
agent = create_agent(
530-
"anthropic:claude-3-7-sonnet-latest",
530+
"google_genai:gemini-3.1-pro-preview",
531531
tools
532532
)
533533
```

0 commit comments

Comments
 (0)