Skip to content

Commit e7d5e83

Browse files
committed
Rename lang-graph files to langgraph and fix guide copy
- Rename lang-graph-message-per-response/token to langgraph-message-per-response/token - Update nav links and index page to match new filenames - Replace "NPM package" with "Node project" across all guides
1 parent b2a2c5f commit e7d5e83

14 files changed

+21
-21
lines changed

src/data/nav/aitransport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ export default {
140140
pages: [
141141
{
142142
name: 'Message per response',
143-
link: '/docs/ai-transport/guides/langgraph/lang-graph-message-per-response',
143+
link: '/docs/ai-transport/guides/langgraph/langgraph-message-per-response',
144144
},
145145
{
146146
name: 'Message per token',
147-
link: '/docs/ai-transport/guides/langgraph/lang-graph-message-per-token',
147+
link: '/docs/ai-transport/guides/langgraph/langgraph-message-per-token',
148148
},
149149
{
150150
name: 'Human-in-the-loop',

src/pages/docs/ai-transport/guides/anthropic/anthropic-citations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Useful links:
2727
- [Anthropic Citations documentation](https://docs.anthropic.com/en/docs/build-with-claude/citations)
2828
- [Ably JavaScript SDK getting started](/docs/getting-started/javascript)
2929

30-
Create a new NPM package, which will contain the agent and client code:
30+
Create a new Node project, which will contain the agent and client code:
3131

3232
<Code>
3333
```shell

src/pages/docs/ai-transport/guides/anthropic/anthropic-human-in-the-loop.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Useful links:
2525
- [Anthropic tool use guide](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/overview)
2626
- [Ably JavaScript SDK getting started](/docs/getting-started/javascript)
2727

28-
Create a new NPM package, which will contain the agent, client, and server code:
28+
Create a new Node project, which will contain the agent, client, and server code:
2929

3030
<Code>
3131
```shell

src/pages/docs/ai-transport/guides/anthropic/anthropic-message-per-response.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Useful links:
4242
### Agent setup
4343

4444
<If agentLang="javascript">
45-
Create a new npm package for the agent code:
45+
Create a new Node project for the agent code:
4646

4747
<Code>
4848
```shell
@@ -109,7 +109,7 @@ export ANTHROPIC_API_KEY="your_api_key_here"
109109
### Client setup
110110

111111
<If clientLang="javascript">
112-
Create a new npm package for the client code, or use the same project as the agent if both are JavaScript:
112+
Create a new Node project for the client code, or use the same project as the agent if both are JavaScript:
113113

114114
<Code>
115115
```shell

src/pages/docs/ai-transport/guides/anthropic/anthropic-message-per-token.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Useful links:
4242
### Agent setup
4343

4444
<If agentLang="javascript">
45-
Create a new npm package for the agent code:
45+
Create a new Node project for the agent code:
4646

4747
<Code>
4848
```shell
@@ -109,7 +109,7 @@ export ANTHROPIC_API_KEY="your_api_key_here"
109109
### Client setup
110110

111111
<If clientLang="javascript">
112-
Create a new npm package for the client code, or use the same project as the agent if both are JavaScript:
112+
Create a new Node project for the client code, or use the same project as the agent if both are JavaScript:
113113

114114
<Code>
115115
```shell

src/pages/docs/ai-transport/guides/langgraph/lang-graph-message-per-response.mdx renamed to src/pages/docs/ai-transport/guides/langgraph/langgraph-message-per-response.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Guide: Stream LangGraph responses using the message-per-response pattern
33
meta_description: "Stream tokens from LangGraph over Ably in realtime using message appends."
44
meta_keywords: "AI, token streaming, LangGraph, LangChain, Anthropic, AI transport, Ably, realtime, message appends"
55
redirect_from:
6-
- /docs/guides/ai-transport/lang-graph-message-per-response
7-
- /docs/guides/ai-transport/langgraph/lang-graph-message-per-response
6+
- /docs/guides/ai-transport/langgraph-message-per-response
7+
- /docs/guides/ai-transport/langgraph/langgraph-message-per-response
88
---
99

1010
This guide shows you how to stream AI responses from [LangGraph](https://docs.langchain.com/oss/javascript/langgraph/overview) over Ably using the [message-per-response pattern](/docs/ai-transport/token-streaming/message-per-response). Specifically, it appends each response token to a single Ably message, creating a complete AI response that grows incrementally while delivering tokens in realtime.
@@ -26,7 +26,7 @@ Useful links:
2626
- [LangGraph documentation](https://docs.langchain.com/oss/javascript/langgraph/overview)
2727
- [Ably JavaScript SDK getting started](/docs/getting-started/javascript)
2828

29-
Create a new NPM package, which will contain the publisher and subscriber code:
29+
Create a new Node project, which will contain the publisher and subscriber code:
3030

3131
<Code>
3232
```shell

src/pages/docs/ai-transport/guides/langgraph/lang-graph-message-per-token.mdx renamed to src/pages/docs/ai-transport/guides/langgraph/langgraph-message-per-token.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Guide: Stream LangGraph responses using the message-per-token pattern"
33
meta_description: "Stream tokens from LangGraph over Ably in realtime."
44
meta_keywords: "AI, token streaming, LangGraph, LangChain, Anthropic, AI transport, Ably, realtime"
55
redirect_from:
6-
- /docs/guides/ai-transport/lang-graph-message-per-token
7-
- /docs/guides/ai-transport/langgraph/lang-graph-message-per-token
6+
- /docs/guides/ai-transport/langgraph-message-per-token
7+
- /docs/guides/ai-transport/langgraph/langgraph-message-per-token
88
---
99

1010
This guide shows you how to stream AI responses from [LangGraph](https://docs.langchain.com/oss/javascript/langgraph/overview) over Ably using the [message-per-token pattern](/docs/ai-transport/token-streaming/message-per-token). Specifically, it implements the [explicit start/stop events approach](/docs/ai-transport/token-streaming/message-per-token#explicit-events), which publishes each response token as an individual message, along with explicit lifecycle events to signal when responses begin and end.

src/pages/docs/ai-transport/guides/openai/openai-citations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Useful links:
2727
- [OpenAI Web Search documentation](https://platform.openai.com/docs/guides/tools-web-search)
2828
- [Ably JavaScript SDK getting started](/docs/getting-started/javascript)
2929

30-
Create a new NPM package, which will contain the publisher and subscriber code:
30+
Create a new Node project, which will contain the publisher and subscriber code:
3131

3232
<Code>
3333
```shell

src/pages/docs/ai-transport/guides/openai/openai-human-in-the-loop.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Useful links:
2525
- [OpenAI function calling guide](https://platform.openai.com/docs/guides/function-calling)
2626
- [Ably JavaScript SDK getting started](/docs/getting-started/javascript)
2727

28-
Create a new NPM package, which will contain the agent, client, and server code:
28+
Create a new Node project, which will contain the agent, client, and server code:
2929

3030
<Code>
3131
```shell

src/pages/docs/ai-transport/guides/openai/openai-message-per-response.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Useful links:
2626
- [OpenAI developer quickstart](https://platform.openai.com/docs/quickstart)
2727
- [Ably JavaScript SDK getting started](/docs/getting-started/javascript)
2828

29-
Create a new NPM package, which will contain the publisher and subscriber code:
29+
Create a new Node project, which will contain the publisher and subscriber code:
3030

3131
<Code>
3232
```shell

0 commit comments

Comments
 (0)