mirror of
https://github.com/langchain-ai/docs.git
synced 2026-08-27 21:00:00 -04:00
128 lines
4.9 KiB
Plaintext
128 lines
4.9 KiB
Plaintext
<CodeGroup>
|
|
```python Google
|
|
# System prompt to steer the agent to be an expert researcher
|
|
research_instructions = """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.
|
|
"""
|
|
|
|
agent = create_deep_agent(
|
|
model="google_genai:gemini-3.6-flash",
|
|
tools=[internet_search],
|
|
system_prompt=research_instructions,
|
|
)
|
|
```
|
|
|
|
```python OpenAI
|
|
# System prompt to steer the agent to be an expert researcher
|
|
research_instructions = """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.
|
|
"""
|
|
|
|
agent = create_deep_agent(
|
|
model="openai:gpt-5.5",
|
|
tools=[internet_search],
|
|
system_prompt=research_instructions,
|
|
)
|
|
```
|
|
|
|
```python Anthropic
|
|
# System prompt to steer the agent to be an expert researcher
|
|
research_instructions = """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.
|
|
"""
|
|
|
|
agent = create_deep_agent(
|
|
model="anthropic:claude-sonnet-4-6",
|
|
tools=[internet_search],
|
|
system_prompt=research_instructions,
|
|
)
|
|
```
|
|
|
|
```python OpenRouter
|
|
# System prompt to steer the agent to be an expert researcher
|
|
research_instructions = """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.
|
|
"""
|
|
|
|
agent = create_deep_agent(
|
|
model="openrouter:z-ai/glm-5.2",
|
|
tools=[internet_search],
|
|
system_prompt=research_instructions,
|
|
)
|
|
```
|
|
|
|
```python Fireworks
|
|
# System prompt to steer the agent to be an expert researcher
|
|
research_instructions = """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.
|
|
"""
|
|
|
|
agent = create_deep_agent(
|
|
model="fireworks:accounts/fireworks/models/glm-5p2",
|
|
tools=[internet_search],
|
|
system_prompt=research_instructions,
|
|
)
|
|
```
|
|
|
|
```python Baseten
|
|
# System prompt to steer the agent to be an expert researcher
|
|
research_instructions = """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.
|
|
"""
|
|
|
|
agent = create_deep_agent(
|
|
model="baseten:zai-org/GLM-5.2",
|
|
tools=[internet_search],
|
|
system_prompt=research_instructions,
|
|
)
|
|
```
|
|
|
|
```python Ollama
|
|
# System prompt to steer the agent to be an expert researcher
|
|
research_instructions = """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.
|
|
"""
|
|
|
|
agent = create_deep_agent(
|
|
model="ollama:north-mini-code-1.0",
|
|
tools=[internet_search],
|
|
system_prompt=research_instructions,
|
|
)
|
|
```
|
|
</CodeGroup>
|