Loading...
Loading...
Compare original and translation side by side
| Context | Detection Signal | Content Type |
|---|---|---|
| Implementing | About to write code using library API | |
| Debugging | Error contains library name (e.g., | |
| Installing | Adding new package, | |
| Integrating | Connecting libraries ("use X with Y") | |
| Upgrading | Version migration, breaking changes | |
| Uncertain | First use of library feature, unsure of pattern | |
| 场景 | 检测信号 | 内容类型 |
|---|---|---|
| 功能实现 | 即将编写使用库API的代码 | |
| 调试 | 错误信息中包含库名称(如 | |
| 安装 | 添加新包、执行 | |
| 集成 | 连接多个库(如“将X与Y配合使用”) | |
| 版本升级 | 版本迁移、破坏性变更 | |
| 不确定用法 | 首次使用库的某项功能、对实现模式存疑 | |
Priority: User mention → Error message → File imports → package.json → Ask userPrismaClientKnownRequestErrorimport { useState } from 'react'from fastapi import FastAPI优先级:用户提及 → 错误信息 → 文件导入 → package.json → 询问用户PrismaClientKnownRequestErrorimport { useState } from 'react'from fastapi import FastAPIPriority: User specifies → Error message → Feature being implemented → "getting started"优先级:用户指定 → 错误信息 → 正在实现的功能 → "入门指南"| Task | Content Type |
|---|---|
| Implementing code | |
| Debugging error | |
| Installing/setup | |
| Integrating libs | |
| Upgrading version | |
| Understanding why | |
| Best practices | |
| 任务 | 内容类型 |
|---|---|
| 编写代码实现功能 | |
| 调试错误 | |
| 安装/搭建 | |
| 集成多个库 | |
| 版本升级 | |
| 理解原理 | |
| 最佳实践 | |
undefinedundefinedundefinedundefined| Library | ID |
|---|---|
| React | |
| Next.js | |
| Prisma | |
| Tailwind | |
| FastAPI | |
| 库 | ID |
|---|---|
| React | |
| Next.js | |
| Prisma | |
| Tailwind | |
| FastAPI | |
| Error | Action |
|---|---|
| Try spelling variations |
| Use --library-id directly |
| Broaden topic or use |
| Check API key setup |
--library-id| 错误 | 操作 |
|---|---|
| 尝试拼写变体 |
| 直接使用--library-id参数 |
| 扩大主题范围或使用 |
| 检查API密钥配置 |
--library-id