Unverified60% confidenceFactExact time
在 OpenAI 等主流 API 中,每次调用都需要传入完整的消息历史(messages),包括 system、user、assistant 等角色的消息
2
Sources
60%
Confidence
Medium-term (~90 days)
Relevance
7/2/2026
First Seen
Valid until: 9/30/2026
Sources
Agent Middleware机制:为模型调用加装拦截器
bilibili老陈说编程6/14/2026
Related Claims
Verified在OpenAI Function Calling或LangChain的Tool调用规范中,上下文回贯对应将tool角色的消息插入messages列表79% similarUnverifiedIn 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% similarUnverified在OpenAI和Anthropic的API设计中,每一次工具调用会产生至少两条新消息(调用请求+执行结果)77% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/46999API
curl https://kongchang.com/api/v1/knowledge/claims/46999MCP
get_claim(id=46999)