待验证60% 置信事实精确时间
在 OpenAI 等主流 API 中,每次调用都需要传入完整的消息历史(messages),包括 system、user、assistant 等角色的消息
2
来源数
60%
置信度
中期 (~90 天)
时效性
2026/7/2
首次发现
有效期至:2026/9/30
来源
Agent Middleware机制:为模型调用加装拦截器
bilibili老陈说编程2026/6/14
相关事实
已验证在OpenAI Function Calling或LangChain的Tool调用规范中,上下文回贯对应将tool角色的消息插入messages列表79% 相似待验证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 field78% 相似待验证在OpenAI和Anthropic的API设计中,每一次工具调用会产生至少两条新消息(调用请求+执行结果)77% 相似
引用此条事实
Stable URI
https://kongchang.com/claim/46999API
curl https://kongchang.com/api/v1/knowledge/claims/46999MCP
get_claim(id=46999)