reference-sdk
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseReference SDK Check
参考SDK检查
When implementing SDK features or debugging provider-specific issues, check reference implementations.
在实现SDK功能或调试特定供应商问题时,查看参考实现。
When to Use
使用场景
- Implementing SDK features
- Debugging provider-specific issues
- Understanding how other libraries solve similar problems
- "How does Vercel AI SDK do X?"
- "Check Anthropic SDK for Y"
- 实现SDK功能
- 调试特定供应商的问题
- 了解其他库如何解决类似问题
- “Vercel AI SDK是如何实现X的?”
- “查看Anthropic SDK的Y实现”
Commands
命令
Use to check how reference SDKs implement similar features:
btca askbash
undefined使用来查看参考SDK如何实现类似功能:
btca askbash
undefinedCheck Vercel AI SDK for streaming patterns
查看Vercel AI SDK的流处理模式
btca ask -r vercel-ai -q "How does streamObject work?"
btca ask -r vercel-ai -q "How does streamObject work?"
Check Anthropic SDK for tool calling
查看Anthropic SDK的工具调用实现
btca ask -r anthropic-sdk -q "How are tools defined and called?"
btca ask -r anthropic-sdk -q "How are tools defined and called?"
Check Zod for validation patterns
查看Zod的验证模式
btca ask -r zod -q "How does safeParse handle errors?"
undefinedbtca ask -r zod -q "How does safeParse handle errors?"
undefinedConfigured Resources
已配置资源
- - Streaming, tool calling, structured output
vercel-ai - - Anthropic API patterns
anthropic-sdk - - Schema validation
zod
Add more:
btca config resources add -n <name> -t git -u <url> -b <branch>- - 流处理、工具调用、结构化输出
vercel-ai - - Anthropic API模式
anthropic-sdk - - Schema验证
zod
添加更多资源:
btca config resources add -n <name> -t git -u <url> -b <branch>When to Check
检查时机
- Before implementing - See how others solved similar problems
- When debugging - Find how reference code handles edge cases
- Multi-provider support - Compare implementations across SDKs
- Validation patterns - Check idiomatic approaches
- 实现前 - 了解他人如何解决类似问题
- 调试时 - 查找参考代码如何处理边缘情况
- 多供应商支持 - 对比不同SDK的实现
- 验证模式 - 查看惯用实现方式
Don't Use For
不适用场景
- Documentation lookups (use /nia-docs instead)
- Simple API questions (use WebSearch)
- Project-specific patterns (use Grep/Glob)
- 文档查询(请使用/nia-docs)
- 简单API问题(请使用WebSearch)
- 项目特定模式(请使用Grep/Glob)