mirror of
https://github.com/langchain-ai/docs.git
synced 2026-08-27 21:00:00 -04:00
142 lines
5.3 KiB
Plaintext
142 lines
5.3 KiB
Plaintext
<CodeGroup>
|
|
```ts Google
|
|
import { createDeepAgent } from "deepagents";
|
|
|
|
// System prompt to steer the agent to be an expert researcher
|
|
const researchInstructions = `You are an expert researcher. Your job is to conduct thorough research and then write a polished report.
|
|
|
|
You have access to an internet search tool as your primary means of gathering information.
|
|
|
|
## \`internet_search\`
|
|
|
|
Use this to run an internet search for a given query. You can specify the max number of results to return, the topic, and whether raw content should be included.
|
|
`;
|
|
|
|
const agent = createDeepAgent({
|
|
model: "google-genai:gemini-3.6-flash",
|
|
tools: [internetSearch],
|
|
systemPrompt: researchInstructions,
|
|
});
|
|
```
|
|
|
|
```ts OpenAI
|
|
import { createDeepAgent } from "deepagents";
|
|
|
|
// System prompt to steer the agent to be an expert researcher
|
|
const researchInstructions = `You are an expert researcher. Your job is to conduct thorough research and then write a polished report.
|
|
|
|
You have access to an internet search tool as your primary means of gathering information.
|
|
|
|
## \`internet_search\`
|
|
|
|
Use this to run an internet search for a given query. You can specify the max number of results to return, the topic, and whether raw content should be included.
|
|
`;
|
|
|
|
const agent = createDeepAgent({
|
|
model: "openai:gpt-5.5",
|
|
tools: [internetSearch],
|
|
systemPrompt: researchInstructions,
|
|
});
|
|
```
|
|
|
|
```ts Anthropic
|
|
import { createDeepAgent } from "deepagents";
|
|
|
|
// System prompt to steer the agent to be an expert researcher
|
|
const researchInstructions = `You are an expert researcher. Your job is to conduct thorough research and then write a polished report.
|
|
|
|
You have access to an internet search tool as your primary means of gathering information.
|
|
|
|
## \`internet_search\`
|
|
|
|
Use this to run an internet search for a given query. You can specify the max number of results to return, the topic, and whether raw content should be included.
|
|
`;
|
|
|
|
const agent = createDeepAgent({
|
|
model: "anthropic:claude-sonnet-4-6",
|
|
tools: [internetSearch],
|
|
systemPrompt: researchInstructions,
|
|
});
|
|
```
|
|
|
|
```ts OpenRouter
|
|
import { createDeepAgent } from "deepagents";
|
|
|
|
// System prompt to steer the agent to be an expert researcher
|
|
const researchInstructions = `You are an expert researcher. Your job is to conduct thorough research and then write a polished report.
|
|
|
|
You have access to an internet search tool as your primary means of gathering information.
|
|
|
|
## \`internet_search\`
|
|
|
|
Use this to run an internet search for a given query. You can specify the max number of results to return, the topic, and whether raw content should be included.
|
|
`;
|
|
|
|
const agent = createDeepAgent({
|
|
model: "openrouter:openrouter:z-ai/glm-5.2",
|
|
tools: [internetSearch],
|
|
systemPrompt: researchInstructions,
|
|
});
|
|
```
|
|
|
|
```ts Fireworks
|
|
import { createDeepAgent } from "deepagents";
|
|
|
|
// System prompt to steer the agent to be an expert researcher
|
|
const researchInstructions = `You are an expert researcher. Your job is to conduct thorough research and then write a polished report.
|
|
|
|
You have access to an internet search tool as your primary means of gathering information.
|
|
|
|
## \`internet_search\`
|
|
|
|
Use this to run an internet search for a given query. You can specify the max number of results to return, the topic, and whether raw content should be included.
|
|
`;
|
|
|
|
const agent = createDeepAgent({
|
|
model: "fireworks:accounts/fireworks/models/glm-5p2",
|
|
tools: [internetSearch],
|
|
systemPrompt: researchInstructions,
|
|
});
|
|
```
|
|
|
|
```ts Baseten
|
|
import { createDeepAgent } from "deepagents";
|
|
|
|
// System prompt to steer the agent to be an expert researcher
|
|
const researchInstructions = `You are an expert researcher. Your job is to conduct thorough research and then write a polished report.
|
|
|
|
You have access to an internet search tool as your primary means of gathering information.
|
|
|
|
## \`internet_search\`
|
|
|
|
Use this to run an internet search for a given query. You can specify the max number of results to return, the topic, and whether raw content should be included.
|
|
`;
|
|
|
|
const agent = createDeepAgent({
|
|
model: "baseten:zai-org/GLM-5.2",
|
|
tools: [internetSearch],
|
|
systemPrompt: researchInstructions,
|
|
});
|
|
```
|
|
|
|
```ts Ollama
|
|
import { createDeepAgent } from "deepagents";
|
|
|
|
// System prompt to steer the agent to be an expert researcher
|
|
const researchInstructions = `You are an expert researcher. Your job is to conduct thorough research and then write a polished report.
|
|
|
|
You have access to an internet search tool as your primary means of gathering information.
|
|
|
|
## \`internet_search\`
|
|
|
|
Use this to run an internet search for a given query. You can specify the max number of results to return, the topic, and whether raw content should be included.
|
|
`;
|
|
|
|
const agent = createDeepAgent({
|
|
model: "ollama:north-mini-code-1.0",
|
|
tools: [internetSearch],
|
|
systemPrompt: researchInstructions,
|
|
});
|
|
```
|
|
</CodeGroup>
|