待验证50% 置信事实时间未知
In OpenAI's and Anthropic's API designs, the messages array is an ordered list of conversation history where each message contains a role (user/assistant/tool) and content field
1
来源数
50%
置信度
中期 (~90 天)
时效性
2026/7/2
首次发现
有效期至:2026/9/30
来源
相关事实
待验证在 OpenAI 等主流 API 中,每次调用都需要传入完整的消息历史(messages),包括 system、user、assistant 等角色的消息78% 相似待验证OpenAI采用以 messages 数组为核心的对话格式,通过 model 字段指定模型77% 相似已验证在OpenAI Function Calling或LangChain的Tool调用规范中,上下文回贯对应将tool角色的消息插入messages列表76% 相似待验证主流大语言模型API在消息格式上存在显著差异:Anthropic使用messages数组结构和特殊的system prompt分离方式,OpenAI采用role/content键值对并支持function calling格式75% 相似待验证在OpenAI和Anthropic的API设计中,每一次工具调用会产生至少两条新消息(调用请求+执行结果)75% 相似
引用此条事实
Stable URI
https://kongchang.com/claim/56416API
curl https://kongchang.com/api/v1/knowledge/claims/56416MCP
get_claim(id=56416)