Skip to content

Commit 09c7608

Browse files
committed
remove references to the ai chat reference project from the docs
1 parent 0288aac commit 09c7608

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

docs/ai-chat/patterns/code-sandbox.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ This page describes a **durable chat** pattern that fits `chat.agent()`:
1212
- **Reuse** it for every `executeCode` tool call during that turn (and across turns in the same run if you keep the handle).
1313
- **Dispose** it **right before the run suspends** waiting for the next user message — using the **`onChatSuspend`** hook, not `onTurnComplete`.
1414

15-
<Info>
16-
The reference implementation lives in the monorepo at [`references/ai-chat`](https://github.com/triggerdotdev/trigger.dev/tree/main/references/ai-chat) (`code-sandbox.ts`, `chat-tools.ts`, `trigger/chat.ts`).
17-
</Info>
1815

1916
## Why not tear down in `onTurnComplete`?
2017

docs/ai-chat/patterns/database-persistence.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Durable chat runs can span **hours** and **many turns**. You usually want:
99
1. **Conversation state** — full **`UIMessage[]`** (or equivalent) keyed by **`chatId`**, so reloads and history views work.
1010
2. **Live session state** — the **current Trigger `runId`**, a **scoped access token** for realtime + input streams, and optionally **`lastEventId`** for stream resume.
1111

12-
This page describes a **hook mapping** that works with any database. The [ai-chat reference app](https://github.com/triggerdotdev/trigger.dev/tree/main/references/ai-chat) implements the same idea with a SQL database and an ORM; adapt table and column names to your stack.
12+
This page describes a **hook mapping** that works with any database. Adapt table and column names to your stack.
1313

1414
## Conceptual data model
1515

docs/ai-chat/sub-agents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,4 @@ export const myAgent = chat.agent({
245245
});
246246
```
247247

248-
For `chat.customAgent()`, define the tool and sub-agent Map inside the `run` closure so they survive across turns. See [Example 7 in the ai-chat reference project](https://github.com/triggerdotdev/trigger.dev/blob/main/references/ai-chat/src/trigger/chat-client-test.ts) for a complete working example.
248+
For `chat.customAgent()`, define the tool and sub-agent Map inside the `run` closure so they survive across turns.

0 commit comments

Comments
 (0)