agentleFS
hefeng6500hefeng6500/lc-studylab/.cursor/rules/frontend/2.ai-sdk-doc.mdc

lc-studylab / frontend

Cursor rule399 starsChanged 12 months agoMITView on GitHub

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
2.ai-sdk-doc.mdc
---
alwaysApply: true
---

# AI SDK v6 (Beta) 文档导航  

## 📘 基础入口
- [AI SDK by Vercel](https://v6.ai-sdk.dev/docs/introduction)
- [AI SDK 6 Beta](https://v6.ai-sdk.dev/docs/announcing-ai-sdk-6-beta)

---

## ⚙️ Foundations
- [Overview](https://v6.ai-sdk.dev/docs/foundations/overview)
- [Providers and Models](https://v6.ai-sdk.dev/docs/foundations/providers-and-models)
- [Prompts](https://v6.ai-sdk.dev/docs/foundations/prompts)
- [Tools](https://v6.ai-sdk.dev/docs/foundations/tools)
- [Streaming](https://v6.ai-sdk.dev/docs/foundations/streaming)

---

## 🚀 Getting Started
- [Navigating the Library](https://v6.ai-sdk.dev/docs/getting-started/navigating-the-library)
- [Next.js App Router](https://v6.ai-sdk.dev/docs/getting-started/nextjs-app-router)
- [Next.js Pages Router](https://v6.ai-sdk.dev/docs/getting-started/nextjs-pages-router)
- [Svelte](https://v6.ai-sdk.dev/docs/getting-started/svelte)
- [Vue.js (Nuxt)](https://v6.ai-sdk.dev/docs/getting-started/nuxt)
- [Node.js](https://v6.ai-sdk.dev/docs/getting-started/nodejs)
- [Expo](https://v6.ai-sdk.dev/docs/getting-started/expo)

---

## 🧠 Agents
- [Overview](https://v6.ai-sdk.dev/docs/agents/overview)
- [Building Agents](https://v6.ai-sdk.dev/docs/agents/building-agents)
- [Workflow Patterns](https://v6.ai-sdk.dev/docs/agents/workflows)
- [Loop Control](https://v6.ai-sdk.dev/docs/agents/loop-control)

---

## 🧩 AI SDK Core
- [Overview](https://v6.ai-sdk.dev/docs/ai-sdk-core/overview)
- [Generating Text](https://v6.ai-sdk.dev/docs/ai-sdk-core/generating-text)
- [Generating Structured Data](https://v6.ai-sdk.dev/docs/ai-sdk-core/generating-structured-data)
- [Tool Calling](https://v6.ai-sdk.dev/docs/ai-sdk-core/tools-and-tool-calling)
- [Model Context Protocol (MCP) Tools](https://v6.ai-sdk.dev/docs/ai-sdk-core/mcp-tools)
- [Prompt Engineering](https://v6.ai-sdk.dev/docs/ai-sdk-core/prompt-engineering)
- [Settings](https://v6.ai-sdk.dev/docs/ai-sdk-core/settings)
- [Embeddings](https://v6.ai-sdk.dev/docs/ai-sdk-core/embeddings)
- [Reranking](https://v6.ai-sdk.dev/docs/ai-sdk-core/reranking)
- [Image Generation](https://v6.ai-sdk.dev/docs/ai-sdk-core/image-generation)
- [Transcription](https://v6.ai-sdk.dev/docs/ai-sdk-core/transcription)
- [Speech](https://v6.ai-sdk.dev/docs/ai-sdk-core/speech)
- [Language Model Middleware](https://v6.ai-sdk.dev/docs/ai-sdk-core/middleware)
- [Provider & Model Management](https://v6.ai-sdk.dev/docs/ai-sdk-core/provider-management)
- [Error Handling](https://v6.ai-sdk.dev/docs/ai-sdk-core/error-handling)
- [Testing](https://v6.ai-sdk.dev/docs/ai-sdk-core/testing)
- [Telemetry](https://v6.ai-sdk.dev/docs/ai-sdk-core/telemetry)

---

## 💬 AI SDK UI
- [Overview](https://v6.ai-sdk.dev/docs/ai-sdk-ui/overview)
- [Chatbot](https://v6.ai-sdk.dev/docs/ai-sdk-ui/chatbot)
- [Chatbot Message Persistence](https://v6.ai-sdk.dev/docs/ai-sdk-ui/chatbot-message-persistence)
- [Chatbot Resume Streams](https://v6.ai-sdk.dev/docs/ai-sdk-ui/chatbot-resume-streams)
- [Chatbot Tool Usage](https://v6.ai-sdk.dev/docs/ai-sdk-ui/chatbot-tool-usage)
- [Generative User Interfaces](https://v6.ai-sdk.dev/docs/ai-sdk-ui/generative-user-interfaces)
- [Completion](https://v6.ai-sdk.dev/docs/ai-sdk-ui/completion)
- [Object Generation](https://v6.ai-sdk.dev/docs/ai-sdk-ui/object-generation)
- [Streaming Custom Data](https://v6.ai-sdk.dev/docs/ai-sdk-ui/streaming-data)
- [Error Handling](https://v6.ai-sdk.dev/docs/ai-sdk-ui/error-handling)
- [Transport](https://v6.ai-sdk.dev/docs/ai-sdk-ui/transport)
- [Reading UIMessage Streams](https://v6.ai-sdk.dev/docs/ai-sdk-ui/reading-ui-message-streams)
- [Message Metadata](https://v6.ai-sdk.dev/docs/ai-sdk-ui/message-metadata)
- [Stream Protocols](https://v6.ai-sdk.dev/docs/ai-sdk-ui/stream-protocol)

---

## 🧠 AI SDK RSC
- [AI SDK RSC](https://v6.ai-sdk.dev/docs/ai-sdk-rsc)

---

## ⚙️ Advanced
- [Advanced](https://v6.ai-sdk.dev/docs/advanced)

---

## 📚 Reference
- [AI SDK Core](https://v6.ai-sdk.dev/docs/reference/ai-sdk-core)
- [AI SDK UI](https://v6.ai-sdk.dev/docs/reference/ai-sdk-ui)
- [AI SDK RSC](https://v6.ai-sdk.dev/docs/reference/ai-sdk-rsc)
- [Stream Helpers](https://v6.ai-sdk.dev/docs/reference/stream-helpers)
- [AI SDK Errors](https://v6.ai-sdk.dev/docs/reference/ai-sdk-errors)

---

## 🧭 Migration Guides
- [Migration Guides](https://v6.ai-sdk.dev/docs/migration-guides)

---

## 🛠 Troubleshooting
- [Azure OpenAI Slow to Stream](https://v6.ai-sdk.dev/docs/troubleshooting/azure-stream-slow)
- [Client-Side Function Calls Not Invoked](https://v6.ai-sdk.dev/docs/troubleshooting/client-side-function-calls-not-invoked)
- [Server Actions in Client Components](https://v6.ai-sdk.dev/docs/troubleshooting/server-actions-in-client-components)
- [useChat/useCompletion stream output contains 0:… instead of text](https://v6.ai-sdk.dev/docs/troubleshooting/strange-stream-output)
- [Streamable UI Errors](https://v6.ai-sdk.dev/docs/troubleshooting/streamable-ui-errors)
- [Tool Invocation Missing Result Error](https://v6.ai-sdk.dev/docs/troubleshooting/tool-invocation-missing-result)
- [Streaming Not Working When Deployed](https://v6.ai-sdk.dev/docs/troubleshooting/streaming-not-working-when-deployed)
- [Streaming Not Working When Proxied](https://v6.ai-sdk.dev/docs/troubleshooting/streaming-not-working-when-proxied)
- [Getting Timeouts When Deploying on Vercel](https://v6.ai-sdk.dev/docs/troubleshooting/timeout-on-vercel)
- [Unclosed Streams](https://v6.ai-sdk.dev/docs/troubleshooting/unclosed-streams)
- [useChat Failed to Parse Stream](https://v6.ai-sdk.dev/docs/troubleshooting/use-chat-failed-to-parse-stream)
- [Server Action Plain Objects Error](https://v6.ai-sdk.dev/docs/troubleshooting/client-stream-error)
- [useChat No Response](https://v6.ai-sdk.dev/docs/troubleshooting/use-chat-tools-no-response)
- [Custom headers, body, and credentials not working with useChat](https://v6.ai-sdk.dev/docs/troubleshooting/use-chat-custom-request-options)
- [TypeScript performance issues with Zod and AI SDK 5](https://v6.ai-sdk.dev/docs/troubleshooting/typescript-performance-zod)
- [useChat "An error occurred"](https://v6.ai-sdk.dev/docs/troubleshooting/use-chat-an-error-occurred)
- [Repeated assistant messages in useChat](https://v6.ai-sdk.dev/docs/troubleshooting/repeated-assistant-messages)
- [onFinish not called when stream is aborted](https://v6.ai-sdk.dev/docs/troubleshooting/stream-abort-handling)
- [Tool calling with generateObject and streamObject](https://v6.ai-sdk.dev/docs/troubleshooting/tool-calling-with-structured-outputs)
- [Abort breaks resumable streams](https://v6.ai-sdk.dev/docs/troubleshooting/abort-breaks-resumable-streams)
- [streamText fails silently](https://v6.ai-sdk.dev/docs/troubleshooting/stream-text-not-working)
- [Streaming Status Shows But No Text Appears](https://v6.ai-sdk.dev/docs/troubleshooting/streaming-status-delay)
- [Stale body values with useChat](https://v6.ai-sdk.dev/docs/troubleshooting/use-chat-stale-body-data)
- [Type Error with onToolCall](https://v6.ai-sdk.dev/docs/troubleshooting/ontoolcall-type-narrowing)
- [Unsupported model version error](https://v6.ai-sdk.dev/docs/troubleshooting/unsupported-model-version)
- [Model is not assignable to type "LanguageModelV1"](https://v6.ai-sdk.dev/docs/troubleshooting/model-is-not-assignable-to-type)
- [TypeScript error "Cannot find namespace 'JSX'"](https://v6.ai-sdk.dev/docs/troubleshooting/typescript-cannot-find-namespace-jsx)
- [React error "Maximum update depth exceeded"](https://v6.ai-sdk.dev/docs/troubleshooting/react-maximum-update-depth-exceeded)
- [Jest: cannot find module '@ai-sdk/rsc'](https://v6.ai-sdk.dev/docs/troubleshooting/jest-cannot-find-module-ai-rsc)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.