Skip to content

Commit a4f2f24

Browse files
authored
docs: Fix broken links in site (#82)
1 parent d25aeac commit a4f2f24

File tree

75 files changed

+453
-489
lines changed

Some content is hidden

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

75 files changed

+453
-489
lines changed

src/langgraph-platform/INVALID-LICENSE.mdx

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/langgraph-platform/add-auth-server.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: Connect an authentication provider
33
sidebarTitle: Connect an authentication provider
44
---
5-
In [the last tutorial](resource-auth), you added resource authorization to give users private conversations. However, you are still using hard-coded tokens for authentication, which is not secure. Now you'll replace those tokens with real user accounts using [OAuth2](getting-started).
5+
In [the last tutorial](/langgraph-platform/resource-auth), you added resource authorization to give users private conversations. However, you are still using hard-coded tokens for authentication, which is not secure. Now you'll replace those tokens with real user accounts using [OAuth2](/langgraph-platform/deployment-quickstart).
66

7-
You'll keep the same [`Auth`](https://langchain-ai.github.io/langgraph/cloud/reference/sdk/python-sdk_ref#langgraph_sdk.auth.Auth) object and [resource-level access control](auth#single-owner-resources), but upgrade authentication to use Supabase as your identity provider. While Supabase is used in this tutorial, the concepts apply to any OAuth2 provider. You'll learn how to:
7+
You'll keep the same [`Auth`](/langgraph-platform/python-sdk#langgraph_sdk.auth.Auth) object and [resource-level access control](/langgraph-platform/auth#single-owner-resources), but upgrade authentication to use Supabase as your identity provider. While Supabase is used in this tutorial, the concepts apply to any OAuth2 provider. You'll learn how to:
88

99
1. Replace test tokens with real JWT tokens
1010
2. Integrate with OAuth2 providers for secure user authentication
@@ -40,7 +40,7 @@ sequenceDiagram
4040

4141
Before you start this tutorial, ensure you have:
4242

43-
* The [bot from the second tutorial](resource-auth) running without errors.
43+
* The [bot from the second tutorial](/langgraph-platform/resource-auth) running without errors.
4444
* A [Supabase project](https://supabase.com/dashboard) to use its authentication server.
4545

4646
## 1. Install dependencies
@@ -75,9 +75,9 @@ Since you're using Supabase for this, you can do this in the Supabase dashboard:
7575

7676
## 3. Implement token validation
7777

78-
In the previous tutorials, you used the [`Auth`](https://langchain-ai.github.io/langgraph/cloud/reference/sdk/python-sdk_ref#langgraph_sdk.auth.Auth) object to [validate hard-coded tokens](set-up-custom-auth) and [add resource ownership](resource-auth).
78+
In the previous tutorials, you used the [`Auth`](/langgraph-platform/python-sdk#langgraph_sdk.auth.Auth) object to [validate hard-coded tokens](/langgraph-platform/set-up-custom-auth) and [add resource ownership](/langgraph-platform/resource-auth).
7979

80-
Now you'll upgrade your authentication to validate real JWT tokens from Supabase. The main changes will all be in the [`@auth.authenticate`](https://langchain-ai.github.io/langgraph/cloud/reference/sdk/python-sdk_ref#langgraph_sdk.auth.Auth.authenticate) decorated function:
80+
Now you'll upgrade your authentication to validate real JWT tokens from Supabase. The main changes will all be in the [`@auth.authenticate`](/langgraph-platform/python-sdk#langgraph_sdk.auth.Auth.authenticate) decorated function:
8181

8282
* Instead of checking against a hard-coded list of tokens, you'll make an HTTP request to Supabase to validate the token.
8383
* You'll extract real user information (ID, email) from the validated token.
@@ -270,5 +270,5 @@ You've successfully built a production-ready authentication system for your Lang
270270
Now that you have production authentication, consider:
271271

272272
1. Building a web UI with your preferred framework (see the [Custom Auth](https://github.com/langchain-ai/custom-auth) template for an example)
273-
2. Learn more about the other aspects of authentication and authorization in the [conceptual guide on authentication](auth).
274-
3. Customize your handlers and setup further after reading the [reference docs](https://langchain-ai.github.io/langgraph/cloud/reference/sdk/python-sdk_ref#langgraph_sdk.auth.Auth).
273+
2. Learn more about the other aspects of authentication and authorization in the [conceptual guide on authentication](/langgraph-platform/auth).
274+
3. Customize your handlers and setup further after reading the [reference docs](/langgraph-platform/python-sdk#langgraph_sdk.auth.Auth).

src/langgraph-platform/add-human-in-the-loop.mdx

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -69,27 +69,27 @@ To review, edit, and approve tool calls in an agent or workflow, use LangGraph's
6969
const result = await client.runs.wait(
7070
threadID,
7171
assistantID,
72-
{ input: { "some_text": "original text" } } // (1)!
72+
{ input: { "some_text": "original text" } } # (1)!
7373
);
7474

75-
console.log(result['__interrupt__']); // (2)!
75+
console.log(result['__interrupt__']); # (2)!
7676
// > [
77-
// > {
78-
// > 'value': {'text_to_revise': 'original text'},
79-
// > 'resumable': True,
80-
// > 'ns': ['human_node:fc722478-2f21-0578-c572-d9fc4dd07c3b'],
81-
// > 'when': 'during'
82-
// > }
83-
// > ]
77+
# > {
78+
# > 'value': {'text_to_revise': 'original text'},
79+
# > 'resumable': True,
80+
# > 'ns': ['human_node:fc722478-2f21-0578-c572-d9fc4dd07c3b'],
81+
# > 'when': 'during'
82+
# > }
83+
# > ]
8484

8585
// Resume the graph
8686
console.log(await client.runs.wait(
8787
threadID,
8888
assistantID,
89-
// highlight-next-line
90-
{ command: { resume: "Edited text" }} // (3)!
89+
# highlight-next-line
90+
{ command: { resume: "Edited text" }} # (3)!
9191
));
92-
// > {'some_text': 'Edited text'}
92+
# > {'some_text': 'Edited text'}
9393
```
9494

9595
1. The graph is invoked with some initial state.
@@ -136,7 +136,7 @@ To review, edit, and approve tool calls in an agent or workflow, use LangGraph's
136136

137137
<Accordion title="Extended example: using `interrupt`">
138138
This is an example graph you can run in the LangGraph API server.
139-
See [LangGraph Platform quickstart](deployment-quickstart) for more details.
139+
See [LangGraph Platform quickstart](/langgraph-platform/deployment-quickstart) for more details.
140140

141141
```python
142142
from typing import TypedDict
@@ -176,7 +176,7 @@ To review, edit, and approve tool calls in an agent or workflow, use LangGraph's
176176
3. Once resumed, the return value of `interrupt(...)` is the human-provided input, which is used to update the state.
177177

178178
Once you have a running LangGraph API server, you can interact with it using
179-
[LangGraph SDK](../cloud/reference/sdk/python-sdk_ref/)
179+
[LangGraph SDK](/langgraph-platform/python-sdk)
180180

181181
<Tabs>
182182
<Tab title="Python">
@@ -241,27 +241,27 @@ To review, edit, and approve tool calls in an agent or workflow, use LangGraph's
241241
const result = await client.runs.wait(
242242
threadID,
243243
assistantID,
244-
{ input: { "some_text": "original text" } } // (1)!
244+
{ input: { "some_text": "original text" } } # (1)!
245245
);
246246

247-
console.log(result['__interrupt__']); // (2)!
248-
// > [
249-
// > {
250-
// > 'value': {'text_to_revise': 'original text'},
251-
// > 'resumable': True,
252-
// > 'ns': ['human_node:fc722478-2f21-0578-c572-d9fc4dd07c3b'],
253-
// > 'when': 'during'
254-
// > }
255-
// > ]
247+
console.log(result['__interrupt__']); # (2)!
248+
# > [
249+
# > {
250+
# > 'value': {'text_to_revise': 'original text'},
251+
# > 'resumable': True,
252+
# > 'ns': ['human_node:fc722478-2f21-0578-c572-d9fc4dd07c3b'],
253+
# > 'when': 'during'
254+
# > }
255+
# > ]
256256

257257
// Resume the graph
258258
console.log(await client.runs.wait(
259259
threadID,
260260
assistantID,
261-
// highlight-next-line
262-
{ command: { resume: "Edited text" }} // (3)!
261+
# highlight-next-line
262+
{ command: { resume: "Edited text" }} # (3)!
263263
));
264-
// > {'some_text': 'Edited text'}
264+
# > {'some_text': 'Edited text'}
265265
```
266266

267267
1. The graph is invoked with some initial state.
@@ -360,9 +360,9 @@ Alternatively, you can set static interrupts at run time:
360360
assistantID,
361361
{
362362
input: input,
363-
// highlight-next-line
363+
# highlight-next-line
364364
interruptBefore: ["node_a"], // (2)!
365-
// highlight-next-line
365+
# highlight-next-line
366366
interruptAfter: ["node_b", "node_c"] // (3)!
367367
}
368368
)
@@ -436,14 +436,14 @@ The following example shows how to add static interrupts:
436436
const result = await client.runs.wait(
437437
threadID,
438438
assistantID,
439-
{ input: input } // (1)!
439+
{ input: input } # (1)!
440440
);
441441

442442
// Resume the graph
443443
await client.runs.wait(
444444
threadID,
445445
assistantID,
446-
{ input: null } // (2)!
446+
{ input: null } # (2)!
447447
);
448448
```
449449

src/langgraph-platform/application-structure.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ Below are examples of directory structures for Python and JavaScript application
8080

8181
The `langgraph.json` file is a JSON file that specifies the dependencies, graphs, environment variables, and other settings required to deploy a LangGraph application.
8282

83-
See the [LangGraph configuration file reference](cli#configuration-file) for details on all supported keys in the JSON file.
83+
See the [LangGraph configuration file reference](/langgraph-platform/cli#configuration-file) for details on all supported keys in the JSON file.
8484

8585
<Tip>
86-
The [LangGraph CLI](langgraph-cli) defaults to using the configuration file `langgraph.json` in the current directory.
86+
The [LangGraph CLI](/langgraph-platform/langgraph-cli) defaults to using the configuration file `langgraph.json` in the current directory.
8787
</Tip>
8888

8989
### Examples

src/langgraph-platform/assistants.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@ sidebarTitle: Overview
77

88
For example, imagine a general-purpose writing agent built on a common graph architecture. While the structure remains the same, different writing styles—such as blog posts and tweets—require tailored configurations to optimize performance. To support these variations, you can create multiple assistants (e.g., one for blogs and another for tweets) that share the underlying graph but differ in model selection and system prompt.
99

10-
![assistant versions](images/assistants.png)
10+
![assistant versions](/langgraph-platform/images/assistants.png)
1111

12-
The LangGraph Cloud API provides several endpoints for creating and managing assistants and their versions. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/server-api-ref.html#tag/assistants) for more details.
12+
The LangGraph Cloud API provides several endpoints for creating and managing assistants and their versions. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/api_ref/#tag/assistants) for more details.
1313

1414
<Info>
15-
Assistants are a [LangGraph Platform](index) concept. They are not available in the open source LangGraph library.
15+
Assistants are a [LangGraph Platform](/langgraph-platform/index) concept. They are not available in the open source LangGraph library.
1616
</Info>
1717

1818
## Configuration
1919

2020
Assistants build on the LangGraph open source concept of [configuration](https://langchain-ai.github.io/langgraph/concepts/low_level/#configuration).
21-
While configuration is available in the open source LangGraph library, assistants are only present in [LangGraph Platform](index). This is due to the fact that assistants are tightly coupled to your deployed graph. Upon deployment, LangGraph Server will automatically create a default assistant for each graph using the graph's default configuration settings.
21+
While configuration is available in the open source LangGraph library, assistants are only present in [LangGraph Platform](/langgraph-platform/index). This is due to the fact that assistants are tightly coupled to your deployed graph. Upon deployment, LangGraph Server will automatically create a default assistant for each graph using the graph's default configuration settings.
2222

23-
In practice, an assistant is just an _instance_ of a graph with a specific configuration. Therefore, multiple assistants can reference the same graph but can contain different configurations (e.g. prompts, models, tools). The LangGraph Server API provides several endpoints for creating and managing assistants. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/server-api-ref.html) and [this how-to](configuration-cloud) for more details on how to create assistants.
23+
In practice, an assistant is just an _instance_ of a graph with a specific configuration. Therefore, multiple assistants can reference the same graph but can contain different configurations (e.g. prompts, models, tools). The LangGraph Server API provides several endpoints for creating and managing assistants. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/api_ref/) and [this how-to](/langgraph-platform/configuration-cloud) for more details on how to create assistants.
2424

2525
## Versioning
2626

2727
Assistants support versioning to track changes over time.
28-
Once you've created an assistant, subsequent edits to that assistant will create new versions. See [this how-to](configuration-cloud#create-a-new-version-for-your-assistant) for more details on how to manage assistant versions.
28+
Once you've created an assistant, subsequent edits to that assistant will create new versions. See [this how-to](/langgraph-platform/configuration-cloud#create-a-new-version-for-your-assistant) for more details on how to manage assistant versions.
2929

3030
## Execution
3131

3232
A **run** is an invocation of an assistant. Each run may have its own input, configuration, and metadata, which may affect execution and output of the underlying graph. A run can optionally be executed on a [thread](https://langchain-ai.github.io/langgraph/concepts/persistence/#threads).
3333

34-
The LangGraph Platform API provides several endpoints for creating and managing runs. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/server-api-ref.html) for more details.
34+
The LangGraph Platform API provides several endpoints for creating and managing runs. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/api_ref/) for more details.

0 commit comments

Comments
 (0)