Skip to content

Commit 9f401ec

Browse files
authored
oss: slight rfc on quickstart (#1636)
* Add more explicit docs MCP server callout * Callout from overview to install and quickstart pages * Dedicated quickstart requirements section
1 parent 689f0d3 commit 9f401ec

File tree

2 files changed

+19
-42
lines changed

2 files changed

+19
-42
lines changed

src/oss/langchain/overview.mdx

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -29,47 +29,11 @@ We recommend you use LangChain if you want to quickly build agents and autonomou
2929

3030
LangChain [agents](/oss/langchain/agents) are built on top of LangGraph in order to provide durable execution, streaming, human-in-the-loop, persistence, and more. You do not need to know LangGraph for basic LangChain agent usage.
3131

32-
## <Icon icon="download" size={20} /> Install
33-
34-
:::python
35-
<CodeGroup>
36-
```bash pip
37-
pip install -U langchain
38-
# Requires Python 3.10+
39-
```
40-
41-
```bash uv
42-
uv add langchain
43-
# Requires Python 3.10+
44-
```
45-
</CodeGroup>
46-
:::
47-
:::js
48-
<CodeGroup>
49-
```bash npm
50-
npm install langchain @langchain/core
51-
```
52-
53-
```bash pnpm
54-
pnpm add langchain @langchain/core
55-
```
56-
57-
```bash yarn
58-
yarn add langchain @langchain/core
59-
```
60-
61-
```bash bun
62-
bun add langchain @langchain/core
63-
```
64-
</CodeGroup>
65-
:::
66-
6732
## <Icon icon="wand-magic-sparkles" /> Create an agent
6833

6934
:::python
7035
```python
71-
# pip install -qU "langchain[anthropic]" to call the model
72-
36+
# pip install -qU langchain "langchain[anthropic]"
7337
from langchain.agents import create_agent
7438

7539
def get_weather(city: str) -> str:
@@ -119,6 +83,7 @@ console.log(
11983
```
12084
:::
12185

86+
See the [Installation instructions](/oss/langchain/install) and [Quickstart guide](/oss/langchain/quickstart) to get started building your own agents and applications with LangChain.
12287

12388
## <Icon icon="star" size={20} /> Core benefits
12489

src/oss/langchain/quickstart.mdx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,24 @@ title: Quickstart
44

55
This quickstart takes you from a simple setup to a fully functional AI agent in just a few minutes.
66

7+
## Requirements
8+
9+
For these examples, you will need to:
10+
11+
* [Install](/oss/langchain/install) the LangChain package
12+
* Set up a [Claude (Anthropic)](https://www.anthropic.com/) account and get an API key
13+
* Set the `ANTHROPIC_API_KEY` environment variable in your terminal
14+
15+
<Tip>
16+
**LangChain Docs MCP server**
17+
18+
If you're using an AI coding assistant, you should install the [LangChain Docs MCP server](/use-these-docs) to get the most out of it. This ensures your agent has access to the latest documentation and examples.
19+
</Tip>
20+
721
## Build a basic agent
822

923
Start by creating a simple agent that can answer questions and call tools. The agent will use Claude Sonnet 4.5 as its language model, a basic weather function as a tool, and a simple prompt to guide its behavior.
1024

11-
<Info>
12-
For this example, you will need to set up a [Claude (Anthropic)](https://www.anthropic.com/) account and get an API key. Then, set the `ANTHROPIC_API_KEY` environment variable in your terminal.
13-
</Info>
14-
1525
:::python
1626
```python
1727
from langchain.agents import create_agent
@@ -205,7 +215,7 @@ Let's walk through each step:
205215
:::
206216
</Step>
207217
<Step title="Configure your model">
208-
Set up your [language model](/oss/langchain/models) with the right [parameters](/oss/langchain/models#parameters) for your use case:
218+
Set up your [language model](/oss/langchain/models) with the right parameters for your use case:
209219

210220
:::python
211221

@@ -232,6 +242,8 @@ Let's walk through each step:
232242
);
233243
```
234244
:::
245+
246+
Depending on the model and provider chosen, initialization parameters may vary; refer to their reference pages for details.
235247
</Step>
236248
<Step title="Define response format">
237249
:::python

0 commit comments

Comments
 (0)