Unverified50% confidenceFactExact time
在API调用中系统提示作为独立的message角色(role: system)传入,具有比普通用户消息更高的指令优先级,并贯穿整个对话
1
Sources
50%
Confidence
Long-term
Relevance
8/13/2026
First Seen
Sources
Related Claims
Verified在大型语言模型的API调用中,消息分为三种角色:system、user和assistant,其中system prompt具有最高优先级。80% similarUnverifiedAnthropic's Messages API uses a separate 'system' field for system prompts and explicitly distinguishes 'user' and 'assistant' roles in the message body.78% similarUnverified多轮对话中System消息设定行为基调和约束,user消息代表用户输入,assistant消息是模型的历史回复75% similarUnverifiedAnthropic 的 Messages API 将 system 消息作为独立的顶层参数传递,而非放在 messages 数组中;工具调用使用 tool_use 和 tool_result content block 类型。74% similarUnverified系统提示词(System Prompt)在每次API调用时都会被放置在messages列表的首位,以role: system标识74% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/741065API
curl https://kongchang.com/api/v1/knowledge/claims/741065MCP
get_claim(id=741065)