Unverified50% confidenceFactExact time
Anthropic 的 Messages API 将 system 消息作为独立的顶层参数传递,而非放在 messages 数组中;工具调用使用 tool_use 和 tool_result content block 类型。
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
7/2/2026
First Seen
Valid until: 9/30/2026
Sources
Claude Code安装教程:接入DeepSeek模型的完整指南
bilibili小柚子llk6/19/2026
Related Claims
UnverifiedAnthropic's Messages API uses a separate 'system' field for system prompts and explicitly distinguishes 'user' and 'assistant' roles in the message body.80% similarUnverified在API调用中系统提示作为独立的message角色(role: system)传入,具有比普通用户消息更高的指令优先级,并贯穿整个对话74% similarUnverifiedThe code execution tool can be integrated by adding a tools block to the existing Messages API74% similarUnverifiedAnthropic使用Messages API并引入了独特的system prompt处理方式73% similarUnverified在LangChain框架中,Tool调用结果通过ToolMessage对象追加到消息链71% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/44676API
curl https://kongchang.com/api/v1/knowledge/claims/44676MCP
get_claim(id=44676)