SuperAPI AI 工具集

anthropic-api-core

编程与开发

查看项目

更新于 10-15 21:40

技能介绍

用途:作为调用 Claude API(platform.claude.com)Messages API 的核心参考资料,负责 Claude API 本体的调用方式;工具调用、Agent Skills、MCP 连接器见 anthropic-api-tools-mcp,Claude Code 见 anthropic-claude-code,Agent SDK 见 anthropic-agent-sdk。

主要能力:覆盖文本生成、SSE 流式、思考(adaptive thinking / effort,及旧版 extended thinking 固定 budget_tokens)、prompt caching(cache_control)、context editing、compaction、结构化输出(output_config.format)、Message Batches、Files API、vision/PDF、citations、search results、embeddings、fast mode、task budgets、token counting、多语言支持、stop reasons 处理等;另含错误码、速率限制、beta 头(anthropic-beta)、API 版本(anthropic-version)、service tiers、支持区域,以及 Amazon Bedrock、Google Cloud Vertex AI、Microsoft Foundry、Claude Platform on AWS 的接入方式。

使用方式:按任务在映射表中找到对应分类,先读该分类的 references/{category}/README.md(samples/ 与 scripts/ 为各自 README.md)定位目标页,再 Read 对应 .md 查看细节。分类含 getting-started、api-basics、messages、thinking、caching-context、endpoints、platforms、samples、scripts;endpoints 提供 Messages/Batches/Files/Models 的请求与响应规格(curl 相当)。

适用场景:需要查询 Claude API 调用细节、构建消息与流式响应、配置思考与缓存、处理批量与文件、排查错误与限流、或经由云平台接入时。

限制:资料仅给出目录结构与检索路径,具体请求参数、响应字段、代码示例内容暂未提供;本技能不负责工具调用/MCP、Claude Code 与 Agent SDK 内容。