{"type":"excalidraw","version":2,"source":"https://excalidraw.com","blogImage":"/images/ai-agent-concepts/tool-call.svg","title":"工具调用：请求、执行、反馈","elements":[{"id":"ai-agent-concepts-tool-call-0","type":"text","x":36,"y":21.9,"width":377,"height":39.150000000000006,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":209510953,"version":1,"versionNonce":209510953,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"工具调用：请求、执行、反馈","originalText":"工具调用：请求、执行、反馈","fontSize":29,"fontFamily":1,"textAlign":"left","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":26.1},{"id":"ai-agent-concepts-tool-call-1","type":"text","x":172,"y":81.4,"width":72,"height":32.400000000000006,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":112709283,"version":1,"versionNonce":112709283,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"模型侧","originalText":"模型侧","fontSize":24,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":21.6},{"id":"ai-agent-concepts-tool-call-2","type":"text","x":471.4,"y":81.4,"width":169.2,"height":32.400000000000006,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":267077601,"version":1,"versionNonce":267077601,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"宿主 / 执行环境","originalText":"宿主 / 执行环境","fontSize":24,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":21.6},{"id":"ai-agent-concepts-tool-call-3","type":"rectangle","x":36,"y":125,"width":320,"height":95,"angle":0,"strokeColor":"#1971c2","backgroundColor":"#e7f5ff","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-3-labels"],"frameId":null,"roundness":{"type":3},"seed":84706007,"version":1,"versionNonce":84706007,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"blue"}},{"id":"ai-agent-concepts-tool-call-4","type":"text","x":121.47235829251224,"y":136.97480755773267,"width":149.05528341497552,"height":33.53743876836949,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-3-labels"],"frameId":null,"roundness":null,"seed":150697283,"version":1,"versionNonce":150697283,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"知道可用工具","originalText":"知道可用工具","fontSize":24.84254723582925,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":22.358292512246326},{"id":"ai-agent-concepts-tool-call-5","type":"text","x":86.6927921623513,"y":178.51224632610217,"width":218.6144156752974,"height":29.512946116165153,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-3-labels"],"frameId":null,"roundness":null,"seed":33564620,"version":1,"versionNonce":33564620,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"名称、说明、参数结构","originalText":"名称、说明、参数结构","fontSize":21.86144156752974,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":19.675297410776768},{"id":"ai-agent-concepts-tool-call-6","type":"rectangle","x":404,"y":125,"width":320,"height":95,"angle":0,"strokeColor":"#2b8a3e","backgroundColor":"#ebfbee","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-6-labels"],"frameId":null,"roundness":{"type":3},"seed":66371552,"version":1,"versionNonce":66371552,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"green"}},{"id":"ai-agent-concepts-tool-call-7","type":"text","x":489.47235829251224,"y":136.97480755773267,"width":149.05528341497552,"height":33.53743876836949,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-6-labels"],"frameId":null,"roundness":null,"seed":112459835,"version":1,"versionNonce":112459835,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"提供工具定义","originalText":"提供工具定义","fontSize":24.84254723582925,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":22.358292512246326},{"id":"ai-agent-concepts-tool-call-8","type":"text","x":465.07697690692794,"y":178.51224632610217,"width":197.84604618614418,"height":29.512946116165153,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-6-labels"],"frameId":null,"roundness":null,"seed":119080671,"version":1,"versionNonce":119080671,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"本地工具 / 外部服务","originalText":"本地工具 / 外部服务","fontSize":21.86144156752974,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":19.675297410776768},{"id":"ai-agent-concepts-tool-call-9","type":"arrow","x":404,"y":171,"width":42,"height":0,"angle":0,"strokeColor":"#868e96","backgroundColor":"#f8f9fa","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":52344305,"version":1,"versionNonce":52344305,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral"},"points":[[0,0],[-42,0]],"lastCommittedPoint":null,"startBinding":null,"endBinding":null,"startArrowhead":null,"endArrowhead":"arrow"},{"id":"ai-agent-concepts-tool-call-10","type":"arrow","x":196,"y":220,"width":0,"height":31,"angle":0,"strokeColor":"#868e96","backgroundColor":"#f8f9fa","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":261523370,"version":1,"versionNonce":261523370,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral"},"points":[[0,0],[0,31]],"lastCommittedPoint":null,"startBinding":null,"endBinding":null,"startArrowhead":null,"endArrowhead":"arrow"},{"id":"ai-agent-concepts-tool-call-11","type":"rectangle","x":36,"y":257,"width":320,"height":95,"angle":0,"strokeColor":"#7048e8","backgroundColor":"#f3f0ff","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-11-labels"],"frameId":null,"roundness":{"type":3},"seed":9422952,"version":1,"versionNonce":9422952,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"purple"}},{"id":"ai-agent-concepts-tool-call-12","type":"text","x":121.47235829251224,"y":268.9748075577327,"width":149.05528341497552,"height":33.53743876836949,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-11-labels"],"frameId":null,"roundness":null,"seed":22882079,"version":1,"versionNonce":22882079,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"生成调用请求","originalText":"生成调用请求","fontSize":24.84254723582925,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":22.358292512246326},{"id":"ai-agent-concepts-tool-call-13","type":"text","x":82.51725682295312,"y":310.5122463261022,"width":226.96548635409377,"height":29.512946116165153,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-11-labels"],"frameId":null,"roundness":null,"seed":178614677,"version":1,"versionNonce":178614677,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"工具名、参数、调用 ID","originalText":"工具名、参数、调用 ID","fontSize":21.86144156752974,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":19.675297410776768},{"id":"ai-agent-concepts-tool-call-14","type":"arrow","x":356,"y":305,"width":42,"height":0,"angle":0,"strokeColor":"#868e96","backgroundColor":"#f8f9fa","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":83981511,"version":1,"versionNonce":83981511,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral"},"points":[[0,0],[42,0]],"lastCommittedPoint":null,"startBinding":null,"endBinding":null,"startArrowhead":null,"endArrowhead":"arrow"},{"id":"ai-agent-concepts-tool-call-15","type":"rectangle","x":404,"y":257,"width":320,"height":95,"angle":0,"strokeColor":"#b27300","backgroundColor":"#fff9db","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-15-labels"],"frameId":null,"roundness":{"type":3},"seed":135378237,"version":1,"versionNonce":135378237,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"gold"}},{"id":"ai-agent-concepts-tool-call-16","type":"text","x":501.89363191042685,"y":268.9748075577327,"width":124.21273617914626,"height":33.53743876836949,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-15-labels"],"frameId":null,"roundness":null,"seed":55560444,"version":1,"versionNonce":55560444,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"检查后执行","originalText":"检查后执行","fontSize":24.84254723582925,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":22.358292512246326},{"id":"ai-agent-concepts-tool-call-17","type":"text","x":465.6235129461162,"y":310.5122463261022,"width":196.75297410776767,"height":29.512946116165153,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-15-labels"],"frameId":null,"roundness":null,"seed":249081523,"version":1,"versionNonce":249081523,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"校验参数与业务权限","originalText":"校验参数与业务权限","fontSize":21.86144156752974,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":19.675297410776768},{"id":"ai-agent-concepts-tool-call-18","type":"arrow","x":564,"y":352,"width":0,"height":31,"angle":0,"strokeColor":"#868e96","backgroundColor":"#f8f9fa","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":234698111,"version":1,"versionNonce":234698111,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral"},"points":[[0,0],[0,31]],"lastCommittedPoint":null,"startBinding":null,"endBinding":null,"startArrowhead":null,"endArrowhead":"arrow"},{"id":"ai-agent-concepts-tool-call-19","type":"rectangle","x":404,"y":389,"width":320,"height":95,"angle":0,"strokeColor":"#1971c2","backgroundColor":"#e7f5ff","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-19-labels"],"frameId":null,"roundness":{"type":3},"seed":260925403,"version":1,"versionNonce":260925403,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"blue"}},{"id":"ai-agent-concepts-tool-call-20","type":"text","x":489.47235829251224,"y":400.9748075577327,"width":149.05528341497552,"height":33.53743876836949,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-19-labels"],"frameId":null,"roundness":null,"seed":117812343,"version":1,"versionNonce":117812343,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"返回执行结果","originalText":"返回执行结果","fontSize":24.84254723582925,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":22.358292512246326},{"id":"ai-agent-concepts-tool-call-21","type":"text","x":476.55423372988105,"y":442.5122463261022,"width":174.89153254023793,"height":29.512946116165153,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-19-labels"],"frameId":null,"roundness":null,"seed":199495265,"version":1,"versionNonce":199495265,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"内容、状态、错误","originalText":"内容、状态、错误","fontSize":21.86144156752974,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":19.675297410776768},{"id":"ai-agent-concepts-tool-call-22","type":"arrow","x":404,"y":437,"width":42,"height":0,"angle":0,"strokeColor":"#868e96","backgroundColor":"#f8f9fa","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":174455536,"version":1,"versionNonce":174455536,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral"},"points":[[0,0],[-42,0]],"lastCommittedPoint":null,"startBinding":null,"endBinding":null,"startArrowhead":null,"endArrowhead":"arrow"},{"id":"ai-agent-concepts-tool-call-23","type":"rectangle","x":36,"y":389,"width":320,"height":95,"angle":0,"strokeColor":"#2b8a3e","backgroundColor":"#ebfbee","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-23-labels"],"frameId":null,"roundness":{"type":3},"seed":263910771,"version":1,"versionNonce":263910771,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"green"}},{"id":"ai-agent-concepts-tool-call-24","type":"text","x":96.629811056683,"y":400.9748075577327,"width":198.740377886634,"height":33.53743876836949,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-23-labels"],"frameId":null,"roundness":null,"seed":172400554,"version":1,"versionNonce":172400554,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"根据结果继续判断","originalText":"根据结果继续判断","fontSize":24.84254723582925,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":22.358292512246326},{"id":"ai-agent-concepts-tool-call-25","type":"text","x":108.00769769069278,"y":442.5122463261022,"width":175.98460461861444,"height":29.512946116165153,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":["ai-agent-concepts-tool-call-23-labels"],"frameId":null,"roundness":null,"seed":43564465,"version":1,"versionNonce":43564465,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"再调用 / 准备交付","originalText":"再调用 / 准备交付","fontSize":21.86144156752974,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":19.675297410776768},{"id":"ai-agent-concepts-tool-call-26","type":"text","x":125.00000000000003,"y":527.5,"width":509.99999999999994,"height":33.75,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":259270788,"version":1,"versionNonce":259270788,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"请求已生成 ≠ 工具已成功 ≠ 用户目标已完成","originalText":"请求已生成 ≠ 工具已成功 ≠ 用户目标已完成","fontSize":25,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":22.5},{"id":"ai-agent-concepts-tool-call-27","type":"text","x":160,"y":568.2,"width":440,"height":29.700000000000003,"angle":0,"strokeColor":"#343a40","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1.6,"strokeStyle":"solid","roughness":1.15,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":32329308,"version":1,"versionNonce":32329308,"isDeleted":false,"boundElements":null,"updated":1,"link":null,"locked":false,"customData":{"tone":"neutral","muted":false},"text":"托管工具可由提供方执行；具体位置看实现。","originalText":"托管工具可由提供方执行；具体位置看实现。","fontSize":22,"fontFamily":1,"textAlign":"center","verticalAlign":"top","containerId":null,"lineHeight":1.35,"baseline":19.8}],"appState":{"viewBackgroundColor":"#fffdf7","gridSize":null},"files":{},"canvas":{"width":760,"height":615}}
