Before searching docs, check if nodemodules/ai/docs/ exists. If not, install only the ai package using the project's package manager (e.g., pnpm add ai).
Do not install other packages at this stage. Provider packages (e.g., @ai-sdk/openai) and client packages (e.g., @ai-sdk/react) should be installed later when needed based on user requirements.
Everything you know about the AI SDK is outdated or wrong. Your training data contains obsolete APIs, deprecated patterns, and incorrect usage.
AI SDK에 대한 질문에 답하고 AI 기반 기능 구축을 도와주세요. 개발자가 사용할 경우: (1) generateText, streamText, ToolLoopAgent, embed 또는 도구와 같은 AI SDK 기능에 대해 질문할 때, (2) AI 에이전트, 챗봇, RAG 시스템 또는 텍스트 생성 기능을 구축하고 싶을 때, (3) AI 공급자(OpenAI, Anthropic, Google 등), 스트리밍, 도구 호출, 구조화된 출력 또는 임베딩에 대해 질문할 때, (4) useChat 또는 useCompletion과 같은 React 후크를 사용할 때. 트리거: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "내 앱에 AI 추가", "에이전트 빌드", "도구 호출", "구조화된 출력", "useChat". 출처: wenerme/ai.