Skip to content

Commit 3415122

Browse files
committed
docs(ai-chat): repoint the tools page customAgent link to custom-agents
1 parent 965b814 commit 3415122

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/ai-chat/tools.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ This is shorthand for `UIMessage<unknown, UIDataTypes, InferUITools<typeof tools
168168

169169
## Manual turn loops (`chat.customAgent`)
170170

171-
The `tools` config option belongs to the managed [`chat.agent`](/ai-chat/backend#chat-agent). When you drive the loop yourself with [`chat.customAgent`](/ai-chat/backend#raw-task-primitives) (or build messages from `chat.history`), you own the conversion, so pass your tools to `convertToModelMessages` directly to get the same cross-turn `toModelOutput` behavior:
171+
The `tools` config option belongs to the managed [`chat.agent`](/ai-chat/backend#chat-agent). When you drive the loop yourself with [`chat.customAgent`](/ai-chat/custom-agents#chat-customagent) (or build messages from `chat.history`), you own the conversion, so pass your tools to `convertToModelMessages` directly to get the same cross-turn `toModelOutput` behavior:
172172

173173
```ts
174174
import { convertToModelMessages, streamText } from "ai";

0 commit comments

Comments
 (0)