Skip to content

Commit 7abb5b9

Browse files
authored
Merge branch 'main' into subagent-structured-output
2 parents 2261538 + 583a567 commit 7abb5b9

253 files changed

Lines changed: 9752 additions & 4242 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursorrules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Single page (`src/index.mdx`). No tabs.
6363
| Platform setup | Overview, Hybrid, Self-hosted (by cloud provider, Setup guides, Enable features, Configuration, External services, Auth) |
6464
| Reference | LangSmith Deployment APIs, Releases |
6565

66-
### Agent Builder (`src/langsmith/agent-builder/`)
66+
### Fleet (`src/langsmith/fleet/`)
6767
Flat groups (no tabs): Get started, Tools and integrations, Advanced, Additional resources
6868

6969
### Open source (`src/oss/`)

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Single page (`src/index.mdx`). No tabs.
6161
| Platform setup | Overview, Hybrid, Self-hosted (by cloud provider, Setup guides, Enable features, Configuration, External services, Auth) |
6262
| Reference | LangSmith Deployment APIs, Releases |
6363

64-
### Agent Builder (`src/langsmith/agent-builder/`)
64+
### Fleet (`src/langsmith/fleet/`)
6565
Flat groups (no tabs): Get started, Tools and integrations, Advanced, Additional resources
6666

6767
### Open source (`src/oss/`)

.github/workflows/_check-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
fi
9191
9292
- name: Validate documentation links
93-
run: make broken-links
93+
run: make broken-links-with-anchors
9494

9595
- name: Validate openapi spec validity
9696
run: make check-openapi

AGENTS.md

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,21 @@ Documentation for LangChain products hosted on Mintlify. These guidelines apply
2323
| Images | `src/images/` |
2424
| Provider icons | `src/images/providers/` |
2525
| Navigation config | `src/docs.json` |
26-
| API reference (auto-generated) | `reference/` — do not edit |
2726
| Build system | `pipeline/` |
28-
| Icon library | Tabler — https://tabler.io/icons |
29-
| Mintlify components | https://mintlify.com/docs/components |
27+
| Icon library | Tabler — <https://tabler.io/icons> |
28+
| Mintlify components | <https://mintlify.com/docs/components> |
3029
| Mintlify MCP server | `npx add-mcp https://www.mintlify.com/docs/mcp` |
3130

3231
## Repository structure
3332

3433
```txt
3534
docs/
3635
├── src/ # All manually authored content
37-
│ ├── docs.json # Mintlify config + navigation (88KB)
36+
│ ├── docs.json # Mintlify config + navigation
3837
│ ├── index.mdx # Home page
3938
│ ├── style.css # Custom CSS
40-
│ ├── langsmith/ # LangSmith product docs (~324 MDX files)
41-
│ ├── oss/ # Open source docs (~1800 MDX files)
39+
│ ├── langsmith/ # LangSmith product docs
40+
│ ├── oss/ # Open source docs
4241
│ │ ├── langchain/ # LangChain framework
4342
│ │ ├── langgraph/ # LangGraph framework
4443
│ │ ├── deepagents/ # Deep Agents
@@ -56,15 +55,14 @@ docs/
5655
│ │ └── providers/ # Provider icons (dark/ and light/ variants)
5756
│ └── fonts/ # TWK Lausanne font files
5857
├── pipeline/ # Python build system & preprocessors
59-
├── reference/ # Auto-generated API reference — do not edit
6058
├── build/ # Build output — do not edit
6159
├── scripts/ # Helper utilities
6260
└── tests/ # Pipeline tests
6361
```
6462

6563
## Navigation map
6664

67-
Navigation is defined in `src/docs.json`. The site has 4 products. When adding pages, find the correct product/tab/group below, then update the matching section in `docs.json`.
65+
Navigation is defined in `src/docs.json`. The site has 4 products (Home, LangSmith, LangSmith Fleet, Open source). When adding pages, find the correct product/tab/group below, then update the matching section in `docs.json`.
6866

6967
### Home
7068

@@ -74,37 +72,40 @@ Single page (`src/index.mdx`). No tabs.
7472

7573
7 tabs, all files in `src/langsmith/`:
7674

77-
| Tab | Groups | Key files/directories |
78-
|-----|--------|----------------------|
79-
| Get started | Account administration (Workspace setup, Users & access control, Billing & usage), Tools, Additional resources (Data & compliance, FAQ) | `home.mdx`, `create-account-api-key.mdx`, `rbac.mdx`, `abac.mdx` |
80-
| Observability | Tracing setup (Integrations, Manual instrumentation), Configuration & troubleshooting, Viewing & managing traces, Automations, Feedback & evaluation, Monitoring & alerting, Data type reference | `tracing/`, `observability/` |
81-
| Evaluation | Datasets, Set up evaluations (Run, Types, Frameworks, Techniques, Tutorials), Analyze experiment results, Annotation & human feedback | `evaluation/` |
82-
| Prompt engineering | Create and update prompts, Tutorials | `prompt-engineering/` |
83-
| Agent deployment | Configure app, Deployment guides, App development, Studio, Auth & access control, Server customization | `agent-deployment/` |
84-
| Platform setup | Overview, Hybrid, Self-hosted (by cloud provider, Setup guides, Enable features, Configuration, External services, Auth, Observability, Scripts) | `self-hosted/`, `self-hosted-changelog.mdx` |
85-
| Reference | LangSmith Deployment (Agent Server API, Control Plane API), Releases | `reference/` |
75+
| Tab | Groups |
76+
|-----|--------|
77+
| Get started | Account administration (Workspace setup, Users & access control, Billing & usage), Tools, Additional resources |
78+
| Observability | Tracing setup, Configuration & troubleshooting, Viewing & managing traces, Automations, Feedback & evaluation, Monitoring & alerting, Data type reference |
79+
| Evaluation | Datasets, Set up evaluations, Analyze experiment results, Annotation & human feedback, Common data types |
80+
| Prompt engineering | Create and update prompts, Tutorials |
81+
| Agent deployment | Agent server, Core capabilities, Develop agents, Deployment guides, Studio, Auth & access control, Server customization |
82+
| Platform setup | Overview, Hybrid, Self-hosted (by cloud provider, Setup guides, Enable features, Configuration, External services, Auth, Observability, Scripts) |
83+
| Reference | LangSmith Deployment (Agent Server API, Control Plane API), Releases |
8684

87-
### Agent Builder (`src/langsmith/`)
85+
All LangSmith files are flat in `src/langsmith/` (no per-tab subdirectories except `fleet/` and `images/`).
8886

89-
Flat groups (no tabs), files in `src/langsmith/agent-builder/`:
87+
### LangSmith Fleet (`src/langsmith/fleet/`)
88+
89+
Flat groups (no tabs):
9090

9191
- Get started
92-
- Tools and integrations
92+
- Configure
93+
- Tools and automation
9394
- Advanced
9495
- Additional resources
9596

9697
### Open source (`src/oss/`)
9798

98-
2 language dropdowns (Python, TypeScript), each with 7 identical tabs:
99+
2 language dropdowns (Python, TypeScript), each with 7 tabs sharing the same names. Groups listed below are for the Python dropdown; TypeScript groups differ in some tabs (noted with *).
99100

100-
| Tab | Directory | Notes |
101-
|-----|-----------|-------|
102-
| Deep Agents | `src/oss/deepagents/` | Get started, Core capabilities, Streaming, Protocols, CLI |
103-
| LangChain | `src/oss/langchain/` | Get started, Core components, Middleware, Advanced usage, Multi-agent |
104-
| LangGraph | `src/oss/langgraph/` | Get started, Capabilities, Production, Graph API, Functional API |
105-
| Integrations | `src/oss/python/integrations/` or `src/oss/javascript/integrations/` | Per-provider pages |
106-
| Learn | `src/oss/` (various) | Tutorials, Conceptual overviews |
107-
| Reference | `reference/` | Auto-generated — do not edit |
101+
| Tab | Directory | Groups |
102+
|-----|-----------|--------|
103+
| Deep Agents | `src/oss/deepagents/` | Get started, Deployment, Core capabilities, Frontend, Protocols, Command line interface |
104+
| LangChain | `src/oss/langchain/` | Get started, Core components, Middleware, Frontend, Advanced usage, Agent development, Deploy with LangSmith |
105+
| LangGraph | `src/oss/langgraph/` | Get started, Capabilities, Production, Frontend, LangGraph APIs |
106+
| Integrations* | `src/oss/python/integrations/` or `src/oss/javascript/integrations/` | Popular Providers, Integrations by component (TS: "General integrations, RAG integrations") |
107+
| Learn* | `src/oss/` (various) | Tutorials, Conceptual overviews, Additional resources (TS adds: "LangChain Academy") |
108+
| Reference | `src/oss/reference/` | Reference, Errors, Releases, Policies — auto-generated, do not edit |
108109
| Contribute | `src/oss/contributing/` | Contribution guides, integration authoring |
109110

110111
## Local development
@@ -206,6 +207,12 @@ Follow [Google Developer Documentation Style Guide](https://developers.google.co
206207
- Include "key features" lists
207208
- Use horizontal lines
208209

210+
### Model references
211+
212+
Always use the latest generally available (GA) models when referencing LLMs in docstrings and illustrative code snippets. Avoid preview or beta identifiers unless the model has no GA equivalent. Outdated model names signal stale code and confuse users.
213+
214+
Before writing or updating model references, verify current model IDs against the provider's official docs. Do not rely on memorized or cached model names — they go stale quickly.
215+
209216
## Adding pages
210217

211218
1. Create MDX file with required frontmatter in the correct directory (see navigation map above)

CLAUDE.md

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,21 @@ Documentation for LangChain products hosted on Mintlify. These guidelines apply
2323
| Images | `src/images/` |
2424
| Provider icons | `src/images/providers/` |
2525
| Navigation config | `src/docs.json` |
26-
| API reference (auto-generated) | `reference/` — do not edit |
2726
| Build system | `pipeline/` |
28-
| Icon library | Tabler — https://tabler.io/icons |
29-
| Mintlify components | https://mintlify.com/docs/components |
27+
| Icon library | Tabler — <https://tabler.io/icons> |
28+
| Mintlify components | <https://mintlify.com/docs/components> |
3029
| Mintlify MCP server | `npx add-mcp https://www.mintlify.com/docs/mcp` |
3130

3231
## Repository structure
3332

3433
```txt
3534
docs/
3635
├── src/ # All manually authored content
37-
│ ├── docs.json # Mintlify config + navigation (88KB)
36+
│ ├── docs.json # Mintlify config + navigation
3837
│ ├── index.mdx # Home page
3938
│ ├── style.css # Custom CSS
40-
│ ├── langsmith/ # LangSmith product docs (~324 MDX files)
41-
│ ├── oss/ # Open source docs (~1800 MDX files)
39+
│ ├── langsmith/ # LangSmith product docs
40+
│ ├── oss/ # Open source docs
4241
│ │ ├── langchain/ # LangChain framework
4342
│ │ ├── langgraph/ # LangGraph framework
4443
│ │ ├── deepagents/ # Deep Agents
@@ -56,15 +55,14 @@ docs/
5655
│ │ └── providers/ # Provider icons (dark/ and light/ variants)
5756
│ └── fonts/ # TWK Lausanne font files
5857
├── pipeline/ # Python build system & preprocessors
59-
├── reference/ # Auto-generated API reference — do not edit
6058
├── build/ # Build output — do not edit
6159
├── scripts/ # Helper utilities
6260
└── tests/ # Pipeline tests
6361
```
6462

6563
## Navigation map
6664

67-
Navigation is defined in `src/docs.json`. The site has 4 products. When adding pages, find the correct product/tab/group below, then update the matching section in `docs.json`.
65+
Navigation is defined in `src/docs.json`. The site has 4 products (Home, LangSmith, LangSmith Fleet, Open source). When adding pages, find the correct product/tab/group below, then update the matching section in `docs.json`.
6866

6967
### Home
7068

@@ -74,37 +72,40 @@ Single page (`src/index.mdx`). No tabs.
7472

7573
7 tabs, all files in `src/langsmith/`:
7674

77-
| Tab | Groups | Key files/directories |
78-
|-----|--------|----------------------|
79-
| Get started | Account administration (Workspace setup, Users & access control, Billing & usage), Tools, Additional resources (Data & compliance, FAQ) | `home.mdx`, `create-account-api-key.mdx`, `rbac.mdx`, `abac.mdx` |
80-
| Observability | Tracing setup (Integrations, Manual instrumentation), Configuration & troubleshooting, Viewing & managing traces, Automations, Feedback & evaluation, Monitoring & alerting, Data type reference | `tracing/`, `observability/` |
81-
| Evaluation | Datasets, Set up evaluations (Run, Types, Frameworks, Techniques, Tutorials), Analyze experiment results, Annotation & human feedback | `evaluation/` |
82-
| Prompt engineering | Create and update prompts, Tutorials | `prompt-engineering/` |
83-
| Agent deployment | Configure app, Deployment guides, App development, Studio, Auth & access control, Server customization | `agent-deployment/` |
84-
| Platform setup | Overview, Hybrid, Self-hosted (by cloud provider, Setup guides, Enable features, Configuration, External services, Auth, Observability, Scripts) | `self-hosted/`, `self-hosted-changelog.mdx` |
85-
| Reference | LangSmith Deployment (Agent Server API, Control Plane API), Releases | `reference/` |
75+
| Tab | Groups |
76+
|-----|--------|
77+
| Get started | Account administration (Workspace setup, Users & access control, Billing & usage), Tools, Additional resources |
78+
| Observability | Tracing setup, Configuration & troubleshooting, Viewing & managing traces, Automations, Feedback & evaluation, Monitoring & alerting, Data type reference |
79+
| Evaluation | Datasets, Set up evaluations, Analyze experiment results, Annotation & human feedback, Common data types |
80+
| Prompt engineering | Create and update prompts, Tutorials |
81+
| Agent deployment | Agent server, Core capabilities, Develop agents, Deployment guides, Studio, Auth & access control, Server customization |
82+
| Platform setup | Overview, Hybrid, Self-hosted (by cloud provider, Setup guides, Enable features, Configuration, External services, Auth, Observability, Scripts) |
83+
| Reference | LangSmith Deployment (Agent Server API, Control Plane API), Releases |
8684

87-
### Agent Builder (`src/langsmith/`)
85+
All LangSmith files are flat in `src/langsmith/` (no per-tab subdirectories except `fleet/` and `images/`).
8886

89-
Flat groups (no tabs), files in `src/langsmith/agent-builder/`:
87+
### LangSmith Fleet (`src/langsmith/fleet/`)
88+
89+
Flat groups (no tabs):
9090

9191
- Get started
92-
- Tools and integrations
92+
- Configure
93+
- Tools and automation
9394
- Advanced
9495
- Additional resources
9596

9697
### Open source (`src/oss/`)
9798

98-
2 language dropdowns (Python, TypeScript), each with 7 identical tabs:
99+
2 language dropdowns (Python, TypeScript), each with 7 tabs sharing the same names. Groups listed below are for the Python dropdown; TypeScript groups differ in some tabs (noted with *).
99100

100-
| Tab | Directory | Notes |
101-
|-----|-----------|-------|
102-
| Deep Agents | `src/oss/deepagents/` | Get started, Core capabilities, Streaming, Protocols, CLI |
103-
| LangChain | `src/oss/langchain/` | Get started, Core components, Middleware, Advanced usage, Multi-agent |
104-
| LangGraph | `src/oss/langgraph/` | Get started, Capabilities, Production, Graph API, Functional API |
105-
| Integrations | `src/oss/python/integrations/` or `src/oss/javascript/integrations/` | Per-provider pages |
106-
| Learn | `src/oss/` (various) | Tutorials, Conceptual overviews |
107-
| Reference | `reference/` | Auto-generated — do not edit |
101+
| Tab | Directory | Groups |
102+
|-----|-----------|--------|
103+
| Deep Agents | `src/oss/deepagents/` | Get started, Deployment, Core capabilities, Frontend, Protocols, Command line interface |
104+
| LangChain | `src/oss/langchain/` | Get started, Core components, Middleware, Frontend, Advanced usage, Agent development, Deploy with LangSmith |
105+
| LangGraph | `src/oss/langgraph/` | Get started, Capabilities, Production, Frontend, LangGraph APIs |
106+
| Integrations* | `src/oss/python/integrations/` or `src/oss/javascript/integrations/` | Popular Providers, Integrations by component (TS: "General integrations, RAG integrations") |
107+
| Learn* | `src/oss/` (various) | Tutorials, Conceptual overviews, Additional resources (TS adds: "LangChain Academy") |
108+
| Reference | `src/oss/reference/` | Reference, Errors, Releases, Policies — auto-generated, do not edit |
108109
| Contribute | `src/oss/contributing/` | Contribution guides, integration authoring |
109110

110111
## Local development
@@ -206,6 +207,12 @@ Follow [Google Developer Documentation Style Guide](https://developers.google.co
206207
- Include "key features" lists
207208
- Use horizontal lines
208209

210+
### Model references
211+
212+
Always use the latest generally available (GA) models when referencing LLMs in docstrings and illustrative code snippets. Avoid preview or beta identifiers unless the model has no GA equivalent. Outdated model names signal stale code and confuse users.
213+
214+
Before writing or updating model references, verify current model IDs against the provider's official docs. Do not rely on memorized or cached model names — they go stale quickly.
215+
209216
## Adding pages
210217

211218
1. Create MDX file with required frontmatter in the correct directory (see navigation map above)

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all dev build format lint test install clean lint_md lint_md_fix lint_prose broken-links broken-links-with-anchors format-check code-snippets test-code-samples check-cross-refs
1+
.PHONY: all dev build export format lint test install clean lint_md lint_md_fix lint_prose broken-links broken-links-with-anchors format-check code-snippets test-code-samples check-cross-refs
22

33
# Default target
44
all: help
@@ -13,6 +13,13 @@ build:
1313
npm install
1414
PYTHONPATH=$(CURDIR) uv run pipeline build
1515

16+
# Offline zip via Mintlify (https://www.mintlify.com/docs/deploy/export).
17+
# Must run from build/: docs.json paths are oss/python/... and oss/javascript/... but sources live under src/oss/... until the pipeline emits build/oss/{python,javascript}/...
18+
# Example: make export MINT_EXPORT_ARGS='--output ../langchain-docs-export.zip'
19+
export: build
20+
@command -v mint >/dev/null 2>&1 || { echo "Error: mint not installed. Run: npm install -g mint@latest"; exit 1; }
21+
@cd build && mint export $(MINT_EXPORT_ARGS)
22+
1623
# Define a variable for the test file path.
1724
TEST_FILE ?= tests/unit_tests
1825

@@ -157,6 +164,7 @@ help:
157164
@echo "Available commands:"
158165
@echo " make dev - Start development mode with file watching and mint dev"
159166
@echo " make build - Build documentation to ./build directory"
167+
@echo " make export - Run mint export from ./build (optional: MINT_EXPORT_ARGS)"
160168
@echo " make broken-links - Check for broken links in built documentation"
161169
@echo " make check-cross-refs - Check for unresolved @[ref] cross-references"
162170
@echo " make broken-links-with-anchors - Same as above, also validates anchor links"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Unable to parse .venv/lib/python3.13/site-packages/soupsieve-2.7.dist-info/licen
210210
1. **Use the safe Make commands** (recommended):
211211

212212
```bash
213-
make mint-broken-links # Builds docs first, then checks links (excludes integrations)
213+
make broken-links-with-anchors # Builds docs first, then checks internal links
214214
```
215215

216216
2. **Run Mintlify commands from the build directory**:

0 commit comments

Comments
 (0)