Unverified50% confidenceFactExact time
不同Provider对工具调用的消息格式存在差异:OpenAI将工具定义放在顶层tools字段并通过role:tool返回结果,Anthropic Claude使用tool_use和tool_result内容块,Google Gemini采用functionDeclarations和functionResponse
1
Sources
50%
Confidence
Long-term
Relevance
7/20/2026
First Seen
Sources
Related Claims
UnverifiedOpenAI支持parallel_tool_calls并行调用多工具,Anthropic的Claude采用<function_calls>特殊XML标签分隔工具调用输出,Google Gemini通过FunctionDeclaration对象声明工具78% similarUnverified不同模型的函数调用格式不同:OpenAI使用tools参数、Anthropic使用tool_use块、开源模型各有各的模板格式76% similarVerifiedOpenAI采用messages数组结构,Anthropic的Claude API将system prompt与用户对话严格分离,Google Gemini使用contents字段封装多轮对话75% similarUnverifiedOpenAI、Anthropic、Google等主流模型提供商均已支持工具调用机制,但具体Schema规范略有差异74% similarUnverifiedOpenAI的Code Interpreter、LangChain的工具调用框架和Anthropic为Claude设计的工具使用(Tool Use)API都是「LLM+求解器」混合架构的代表性实现73% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/567243API
curl https://kongchang.com/api/v1/knowledge/claims/567243MCP
get_claim(id=567243)