{"id":1512,"date":"2026-09-14T13:56:40","date_gmt":"2026-09-14T05:56:40","guid":{"rendered":"https:\/\/blog.humh.cn\/?p=1512"},"modified":"2026-09-14T13:56:40","modified_gmt":"2026-09-14T05:56:40","slug":"%e5%a4%9a%e6%99%ba%e8%83%bd%e4%bd%93agent%e6%8e%a2%e7%b4%a2","status":"publish","type":"post","link":"https:\/\/blog.humh.cn\/?p=1512","title":{"rendered":"\u591a\u667a\u80fd\u4f53Agent\u63a2\u7d22"},"content":{"rendered":"\n<p><strong>Function Calling<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u5b9a\u4e49\u5de5\u5177\u5217\u8868\ntools = [\n    {\n        \"type\": \"function\",\n        \"function\": {\n            \"name\": \"get_current_weather\",\n            \"description\": \"\u5f53\u4f60\u60f3\u67e5\u8be2\u6307\u5b9a\u57ce\u5e02\u7684\u5929\u6c14\u65f6\u975e\u5e38\u6709\u7528\u3002\",\n            \"parameters\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"location\": {\n                        \"type\": \"string\",\n                        \"description\": \"\u57ce\u5e02\u6216\u53bf\u533a\uff0c\u6bd4\u5982\u5317\u4eac\u5e02\u3001\u676d\u5dde\u5e02\u3001\u4f59\u676d\u533a\u7b49\u3002\",\n                    }\n                },\n                \"required\": [\"location\"],\n            },\n        },\n    },\n]\n\n\n# \u6a21\u62df\u5929\u6c14\u67e5\u8be2\u5de5\u5177\ndef get_current_weather(arguments):\n    weather_conditions = [\"\u6674\u5929\", \"\u591a\u4e91\", \"\u96e8\u5929\"]\n    random_weather = random.choice(weather_conditions)\n    location = arguments[\"location\"]\n    return f\"{location}\u4eca\u5929\u662f{random_weather}\u3002\"\n\n\n# \u5c01\u88c5\u6a21\u578b\u54cd\u5e94\u51fd\u6570\ndef get_response(messages):\n    completion = client.chat.completions.create(\n        model=\"qwen-plus\",\n        messages=messages,\n        tools=tools,\n    )\n    return completion<\/pre>\n\n\n\n<p>\u5148\u601d\u8003<\/p>\n\n\n\n<p>\u9996\u5148\u6211\u4eec\u5df2\u7ecf\u4e86\u89e3\u8fc7 Function Calling \u7684\u8fc7\u7a0b\uff0c\u90a3\u4e48\u7528\u6237\u63d0\u95ee\u201c<strong><em>\u6211\u6628\u5929\u4e70\u7684\u4f1a\u5458\u600e\u4e48\u6ca1\u5230\u8d26\uff1f<\/em><\/strong>\u201d\uff0c\u96be\u9053\u662f\u901a\u8fc7\u4e00\u4e2a\u63d0\u793a\u8bcd\u4e2d\u5199\u201c\u5148\u67e5\u8be2\u7528\u6237\u6628\u5929\u662f\u5426\u8d2d\u4e70\u4f1a\u5458\uff0c\u53ef\u4ee5\u8c03\u7528xxx\uff0c\u5982\u679c\u6628\u5929\u8d2d\u4e70\u4e86\uff0c\u90a3\u4e48\u518d\u770b\u7528\u6237\u5f53\u524d\u662f\u5426\u662f\u4f1a\u5458\u53ef\u4ee5\u8c03\u7528xxx\uff0c\u5982\u679c\u4e0d\u662fxxx\u201d\u6765\u5b8c\u6210\u5417\uff1f\u8fd8\u662f\u8bf4\u5b8c\u5168\u4ea4\u7ed9 LLM \u5224\u65ad\uff1f<\/p>\n\n\n\n<p><span class=\"has-inline-color has-vivid-red-color\">\u7eafLLM\u6d41\u7a0b\u4e0a\u5b8c\u5168\u81ea\u7531\u4e0d\u53ef\u9884\u6d4b\uff0c\u4e14\u5408\u89c4\u6027\u4e5f\u4e0d\u7b26\u5408\u9ad8\u5b89\u5168\u6027\uff08\u91d1\u878d\u7ea7\uff09\u7684\u8981\u6c42\uff0c\u8981\u6c42\u53ef\u5ba1\u8ba1\u53ef\u89c2\u6d4b\u6027<\/span><\/p>\n\n\n\n<p>\u4f60\u4f1a\u600e\u4e48\u8bbe\u8ba1\uff1f<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><em>\u667a\u80fd\u4f53 = \u5927\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09 + \u89c2\u5bdf + \u601d\u8003 + \u884c\u52a8 + \u8bb0\u5fc6<\/em><\/p>\n\n\n\n<ol><li>\u5927\u8bed\u8a00\u6a21\u578b\uff08<strong>LLM<\/strong>\uff09\uff1aLLM\u4f5c\u4e3a\u667a\u80fd\u4f53\u7684\u201c\u5927\u8111\u201d\u90e8\u5206\uff0c\u4f7f\u5176\u80fd\u591f\u5904\u7406\u4fe1\u606f\uff0c\u4ece\u4ea4\u4e92\u4e2d\u5b66\u4e60\uff0c\u505a\u51fa\u51b3\u7b56\u5e76\u6267\u884c\u884c\u52a8\u3002<\/li><li><strong>\u89c2\u5bdf<\/strong>\uff1a\u8fd9\u662f\u667a\u80fd\u4f53\u7684\u611f\u77e5\u673a\u5236\uff0c\u4f7f\u5176\u80fd\u591f\u611f\u77e5\u5176\u73af\u5883\u3002\u667a\u80fd\u4f53\u53ef\u80fd\u4f1a\u63a5\u6536\u6765\u81ea\u53e6\u4e00\u4e2a\u667a\u80fd\u4f53\uff08\u5de5\u5177\u3001MCP\uff09\u7684\u6587\u672c\u6d88\u606f\u3001\u6765\u81ea\u76d1\u89c6\u6444\u50cf\u5934\u7684\u89c6\u89c9\u6570\u636e\u6216\u6765\u81ea\u5ba2\u6237\u670d\u52a1\u5f55\u97f3\u7684\u97f3\u9891\u7b49\u4e00\u7cfb\u5217\u4fe1\u53f7\u3002\u8fd9\u4e9b\u89c2\u5bdf\u6784\u6210\u4e86\u6240\u6709\u540e\u7eed\u884c\u52a8\u7684\u57fa\u7840\u3002<\/li><li><strong>\u601d\u8003<\/strong>\uff1a\u601d\u8003\u8fc7\u7a0b\u6d89\u53ca\u5206\u6790\u89c2\u5bdf\u7ed3\u679c\u548c\u8bb0\u5fc6\u5185\u5bb9\u5e76\u8003\u8651\u53ef\u80fd\u7684\u884c\u52a8\u3002\u8fd9\u662f\u667a\u80fd\u4f53\u5185\u90e8\u7684\u51b3\u7b56\u8fc7\u7a0b\uff0c\u5176\u53ef\u80fd\u7531LLM\u8fdb\u884c\u9a71\u52a8\uff08\u53ef\u4ee5\u6df7\u5408\uff09\u3002<\/li><li><strong>\u884c\u52a8<\/strong>\uff1a\u8fd9\u4e9b\u662f\u667a\u80fd\u4f53\u5bf9\u5176\u601d\u8003\u548c\u89c2\u5bdf\u7684\u663e\u5f0f\u54cd\u5e94\u3002\u884c\u52a8\u53ef\u4ee5\u662f\u5229\u7528 LLM \u751f\u6210\u4ee3\u7801\uff0c\u6216\u662f\u624b\u52a8\u9884\u5b9a\u4e49\u7684\u64cd\u4f5c\uff0c\u5982\u9605\u8bfb\u672c\u5730\u6587\u4ef6\u3002\u6b64\u5916\uff0c\u667a\u80fd\u4f53\u8fd8\u53ef\u4ee5\u6267\u884c\u4f7f\u7528\u5de5\u5177\u7684\u64cd\u4f5c\uff0c\u5305\u62ec\u5728\u4e92\u8054\u7f51\u4e0a\u641c\u7d22\u5929\u6c14\uff0c\u4f7f\u7528\u8ba1\u7b97\u5668\u8fdb\u884c\u6570\u5b66\u8ba1\u7b97\u7b49\u3002<\/li><li><strong>\u8bb0\u5fc6<\/strong>\uff1a\u667a\u80fd\u4f53\u7684\u8bb0\u5fc6\u5b58\u50a8\u8fc7\u53bb\u7684\u7ecf\u9a8c\u3002\u8fd9\u5bf9\u5b66\u4e60\u81f3\u5173\u91cd\u8981\uff0c\u56e0\u4e3a\u5b83\u5141\u8bb8\u667a\u80fd\u4f53\u53c2\u8003\u5148\u524d\u7684\u7ed3\u679c\u5e76\u636e\u6b64\u8c03\u6574\u672a\u6765\u7684\u884c\u52a8\u3002<\/li><\/ol>\n\n\n\n<p><span class=\"has-inline-color has-vivid-cyan-blue-color\">\u667a\u80fd\u4f53\u793a\u4f8b<\/span><\/p>\n\n\n\n<p>\u5e2e\u6211\u57fa\u4e8epython3.11\u5b9e\u73b0\u4e00\u4e2a\u53ef\u751f\u6210100\u4e2a\u968f\u673a\u5076\u6570\u7684\u811a\u672c\u3002<br>\u8981\u6c42\uff1a<br>\u4ee3\u7801\u4f18\u96c5\uff0c\u65e0\u6027\u80fd\u95ee\u9898\uff1b<br>\u811a\u672c\u901a\u8fc7main\u51fd\u6570\u542f\u52a8<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134217217.png\" target=\"_blank\" rel=\"noopener\"><img width=\"1024\" height=\"518\" class=\"wp-image-1513 lazyload\" title=\"\u591a\u667a\u80fd\u4f53Agent\u63a2\u7d22\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134217217-1024x518.png\" alt=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134217217-1024x518.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134217217-1024x518.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134217217-300x152.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134217217-768x388.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134217217-1536x777.png 1536w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134217217-2048x1036.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/a><\/figure><\/div>\n\n\n\n<p><em>\u591a\u667a\u80fd\u4f53 = \u667a\u80fd\u4f53 + \u73af\u5883 + \u6807\u51c6\u6d41\u7a0b\uff08SOP\uff09 + \u901a\u4fe1 + \u7ecf\u6d4e<\/em><\/p>\n\n\n\n<ol><li><strong>\u667a\u80fd\u4f53<\/strong>\uff1a\u5728\u4e0a\u9762\u5355\u72ec\u5b9a\u4e49\u7684\u57fa\u7840\u4e0a\uff0c\u5728\u591a\u667a\u80fd\u4f53\u7cfb\u7edf\u4e2d\u7684\u667a\u80fd\u4f53\u534f\u540c\u5de5\u4f5c\uff0c\u6bcf\u4e2a\u667a\u80fd\u4f53\u90fd\u5177\u5907\u72ec\u7279\u6709\u7684LLM\u3001\u89c2\u5bdf\u3001\u601d\u8003\u3001\u884c\u52a8\u548c\u8bb0\u5fc6\u3002<\/li><li><strong>\u73af\u5883<\/strong>\uff1a\u73af\u5883\u662f\u667a\u80fd\u4f53\u751f\u5b58\u548c\u4e92\u52a8\u7684\u516c\u5171\u573a\u6240\u3002\u667a\u80fd\u4f53\u4ece\u73af\u5883\u4e2d\u89c2\u5bdf\u5230\u91cd\u8981\u4fe1\u606f\uff0c\u5e76\u53d1\u5e03\u884c\u52a8\u7684\u8f93\u51fa\u7ed3\u679c\u4ee5\u4f9b\u5176\u4ed6\u667a\u80fd\u4f53\u4f7f\u7528\u3002\uff08\u5b9e\u9a8c\u5ba4\u5185\u53ef\u4ee5\u505a\u5b9e\u9a8c\uff0c\u53ef\u4ee5\u89c2\u5bdf\u5230\u5b9e\u9a8c\u6210\u679c\uff09<\/li><li><strong>\u6807\u51c6\u6d41\u7a0b\uff08SOP\uff09\/\u72b6\u6001\u673a<\/strong>\uff1a\u8fd9\u4e9b\u662f\u7ba1\u7406\u667a\u80fd\u4f53\u884c\u52a8\u548c\u4ea4\u4e92\u7684\u65e2\u5b9a\u7a0b\u5e8f\uff0c\u786e\u4fdd\u7cfb\u7edf\u5185\u90e8\u7684\u6709\u5e8f\u548c\u9ad8\u6548\u8fd0\u4f5c\u3002\u4f8b\u5982\uff0c\u5728\u6c7d\u8f66\u5236\u9020\u7684SOP\u4e2d\uff0c\u4e00\u4e2a\u667a\u80fd\u4f53\u710a\u63a5\u6c7d\u8f66\u96f6\u4ef6\uff0c\u800c\u53e6\u4e00\u4e2a\u5b89\u88c5\u7535\u7f06\uff0c\u4fdd\u6301\u88c5\u914d\u7ebf\u7684\u6709\u5e8f\u8fd0\u4f5c\u3002<\/li><li><strong>\u901a\u4fe1<\/strong>\uff1a\u901a\u4fe1\u662f\u667a\u80fd\u4f53\u4e4b\u95f4\u4fe1\u606f\u4ea4\u6d41\u7684\u8fc7\u7a0b\u3002\u5b83\u5bf9\u4e8e\u7cfb\u7edf\u5185\u7684\u534f\u4f5c\u3001\u8c08\u5224\u548c\u7ade\u4e89\u81f3\u5173\u91cd\u8981\u3002<\/li><li><strong>\u7ecf\u6d4e<\/strong>\uff1a\u8fd9\u6307\u7684\u662f\u591a\u667a\u80fd\u4f53\u73af\u5883\u4e2d\u7684\u4ef7\u503c\u4ea4\u6362\u7cfb\u7edf\uff0c\u51b3\u5b9a\u8d44\u6e90\u5206\u914d\u548c\u4efb\u52a1\u4f18\u5148\u7ea7\u3002\uff08\u5404\u4e2a\u5b50\u4efb\u52a1\uff09<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>plan.md \u610f\u56fe\u8bc6\u522b\uff0c\u751f\u6210\u8ba1\u5212<\/p>\n\n\n\n<p>OTA\uff1aObserve\/Observation\uff08\u89c2\u5bdf\uff09+ think\/thought\uff08\u601d\u8003\uff09+ Act\/Action\uff08\u884c\u52a8\uff09\u3002&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134741886.png\" target=\"_blank\" rel=\"noopener\"><img width=\"1024\" height=\"566\" class=\"wp-image-1514 lazyload\" title=\"\u591a\u667a\u80fd\u4f53Agent\u63a2\u7d22\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134741886-1024x566.png\" alt=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134741886-1024x566.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134741886-1024x566.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134741886-300x166.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134741886-768x424.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134741886-1536x849.png 1536w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134741886-2048x1132.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/a><\/figure><\/div>\n\n\n\n<p>ReAct*<em>\uff08Reason + Act\uff09*<\/em>\uff1a\u53ef\u80fd\u662f\u4e00\u4e2a\u5faa\u73af\u53cd\u590d\u7684\u8fc7\u7a0b\uff0c\u8ba1\u5212\u89c4\u5212\u540e\u5f00\u59cb Act \u5373\u6267\u884c\u9636\u6bb5\uff0c\u968f\u540e Observe \u89c2\u5bdf\u5206\u6790\u7ed3\u679c\uff0c\u7136\u540e\u6839\u636e\u5206\u6790\u7684\u7ed3\u679c\u8fdb\u884c\u601d\u8003\u51b3\u7b56\uff0c\u51b3\u7b56\u51fa\u4e0b\u4e00\u6b65\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134838927.png\" target=\"_blank\" rel=\"noopener\"><img width=\"1024\" height=\"903\" class=\"wp-image-1515 lazyload\" title=\"\u591a\u667a\u80fd\u4f53Agent\u63a2\u7d22\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134838927-1024x903.png\" alt=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134838927-1024x903.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134838927-1024x903.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134838927-300x264.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134838927-768x677.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134838927-1536x1354.png 1536w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914134838927.png 1554w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/a><\/figure><\/div>\n\n\n\n<p>\u89c2\u5bdf\u5206\u6790\uff1a\u4e13\u95e8\u5224\u65ad\u5f02\u5e38\u7684 Agent\uff0c\u6df7\u5408\u6a21\u5f0f\uff0c\u53ef\u9759\u6001\u4ee3\u7801\u5224\u65ad\uff08\u5982\u54cd\u5e94\u7801\u3001\u9000\u51fa\u72b6\u6001\u7801\u7b49\uff09+ LLM\u5224\u65ad\uff08\u54cd\u5e94\u8f93\u51fabody\u3001\u5f02\u5e38\u5806\u6808\uff09<\/p>\n\n\n\n<p>\u6301\u4e45\u5316<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\uff08\u5370\u8bc1\u5f00\u5934\u601d\u8003\uff0c\u4e3a\u4ec0\u4e48\u4e0d\u5355\u9760LLM\uff09\u7528\u6237\u9700\u6c42\u8d8a\u590d\u6742\uff0c\u4efb\u52a1\u73af\u8282\u8d8a\u591a\u8d8a\u91cd\u8981\uff0c\u5e76\u4e0d\u662f\u4ec5\u9760\u67d0\u5355\u4e00\u5927\u6a21\u578b\u80fd\u89e3\u51b3\u7684\u4e8b<br>Q\uff1a\u5f53\u524d\u6a21\u578b\u80fd\u529b\u53ef\u80fd\u4e0d\u8db3\uff0c\u5982\u679c\u4f34\u968f\u6a21\u578b\u8fed\u4ee3\uff0c\u66f4\u5f3a\u5927\u7684\u6a21\u578b\u80fd\u5b8c\u6210\u6240\u6709\u4e8b\uff1f&nbsp;<br>A\uff1a\u6df7\u5408\u72b6\u6001\u673a<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><span class=\"has-inline-color has-vivid-cyan-blue-color\">\u52a8\u6001Agent<\/span><\/p>\n\n\n\n<p>\u4f55\u4e3a\u72b6\u6001\u673a\uff1f<\/p>\n\n\n\n<p>\u72b6\u6001\u673a\uff08State Machine\uff09\u662f\u8ba1\u7b97\u673a\u79d1\u5b66\u4e2d\u4e00\u79cd<strong>\u6570\u5b66\u6a21\u578b<\/strong>\uff0c\u7528\u4e8e\u63cf\u8ff0\u7cfb\u7edf\u5728\u4e0d\u540c\u72b6\u6001\u4e4b\u95f4\u8f6c\u6362\u7684\u884c\u4e3a\u3002\u5b83\u7684\u6838\u5fc3\u601d\u60f3\u662f\uff1a<strong>\u7cfb\u7edf\u5728\u4efb\u4f55\u65f6\u523b\u90fd\u5904\u4e8e\u4e00\u4e2a\u660e\u786e\u7684\u72b6\u6001\uff0c\u5916\u90e8\u4e8b\u4ef6\u89e6\u53d1\u72b6\u6001\u8f6c\u6362\uff0c\u5e76\u6267\u884c\u76f8\u5e94\u52a8\u4f5c<\/strong>\u3002<\/p>\n\n\n\n<p>\u601d\u8003\u505a\u4e00\u4ef6\u4e8b\u54ea\u4e9b\u4e8b\u60c5\u662f\u52a8\u6001\u54ea\u4e9b\u662f\u56fa\u5b9a\u7684<\/p>\n\n\n\n<p>\u201c\u6211\u60f3\u505a\u4e00\u4e2a\u5173\u4e8esu7\u7684ppt\u201d<\/p>\n\n\n\n<p>\u56fa\u5b9a\uff1a\u8d44\u6599\u641c\u96c6\uff08\u6587\u5b57+\u56fe\u7247\uff09\u2192 ppt\u6587\u6848\u63d0\u53d6&nbsp;\u2192 \u5236\u4f5c\u6bcf\u4e00\u9875&nbsp;\u2192 \u5408\u5e76\u6240\u6709\u9875&nbsp;\u2192 \u6f14\u793a<\/p>\n\n\n\n<p>\u975e\u56fa\u5b9a\uff1a<\/p>\n\n\n\n<ul><li>\u5982\u679c\u6ca1\u6709\u5408\u9002\u56fe\u7247\uff0c\u9700\u8981\u81ea\u884c\u753b\u56fe<\/li><\/ul>\n\n\n\n<p>\u6574\u4f53\u5927\u65b9\u5411\uff08\u5c42\u4e0e\u5c42\u4e4b\u95f4\u7684\uff09\u6267\u884c\u6d41\u7a0b\u7531\u5927\u6a21\u578b\u63a8\u5bfc\u51faPlan\uff0c\u5177\u4f53\u4e1a\u52a1\u7ebf\u6216\u7ec6\u5c0f\u90e8\u5206\u7a0b\u5e8f\u4ee3\u7801\u63a7\u5236\uff08\u90e8\u5206 \u72b6\u6001\u673a\/\u5de5\u4f5c\u6d41\u5f15\u64ce\uff09\u540c\u65f6\u51b3\u7b56\u90e8\u5206\u53ef\u901a\u8fc7LLM\u5b9e\u73b0\u52a8\u6001\u51b3\u7b56<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914135141243.png\" target=\"_blank\" rel=\"noopener\"><img width=\"300\" height=\"259\" class=\"wp-image-1516 lazyload\" title=\"\u591a\u667a\u80fd\u4f53Agent\u63a2\u7d22\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914135141243.png\" alt=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2026\/09\/20260914135141243.png\"><\/a><\/figure><\/div>\n\n\n\n<p>\u7528\u6237\u79ef\u5206<\/p>\n\n\n\n<p>\u201c\u6211\u6628\u5929\u53d1\u4e86\u89c6\u9891\uff0c\u4f46\u79ef\u5206\u6ca1\u52a0\u4e0a\uff1f\u201d\u3001\u201c\u6211\u6628\u5929\u79ef\u5206\u4e0d\u592a\u5bf9\u201d\u00a0<br>\u4e0a\u56fe\u84dd\u8272\u6d41\u7a0b\u53ef\u80fd\u662f\u67d0\u4e2a\u5b50 Agent \u4e2d\u7684\u6d41\u7a0b\uff0c\u5982\u201c\u67e5\u89c6\u9891\u53d1\u5e03 Agent\u201d\uff0c\u201c\u7528\u6237\u79ef\u5206\u8ba1\u7b97 Agent\uff08\u5148\u67e5\u8be2\u79ef\u5206\u660e\u7ec6\u4e0e\u6b21\u6570\uff0c\u518d\u67e5\u8be2\u662f\u5426\u4f1a\u5458\uff09\u201d\u5177\u4f53\u8c03\u7528\u54ea\u4e9b\u5927 Agent \u7531\u6a21\u578b\u63a8\u65ad\u51fa\u6765\u3002<\/p>\n\n\n\n<p>\u201c\u6211\u6628\u5929\u4e70\u7684\u4f1a\u5458\u600e\u4e48\u6ca1\u5230\u8d26\uff1f\u201d<\/p>\n\n\n\n<p>\u5b50Agent\uff081-&gt;2-&gt;3\uff09\uff1a<\/p>\n\n\n\n<ol><li>\u6838\u5b9e\u662f\u5426\u8d2d\u4e70\u4f1a\u5458&nbsp; &#8211;&nbsp; \u201c\u67e5\u8be2\u4f1a\u5458\u8ba2\u5355Agent\u201d<\/li><li>\u6838\u5b9e\u7528\u6237\u5f53\u524d\u4f1a\u5458\u72b6\u6001&nbsp; &#8211;&nbsp; \u201c\u67e5\u8be2\u7528\u6237\u4f1a\u5458\u72b6\u6001\u4e0e\u6709\u6548\u671fAgent\u201d<\/li><li>\u6838\u5b9e\u8ba2\u5355\u5546\u54c1\u7c7b\u578b\u4e0e\u4f1a\u5458\u6240\u7eed\u5468\u671f\u662f\u5426\u4e00\u81f4&nbsp; &#8211;&nbsp; \u201c\u9a8c\u8bc1Agent\u201d<\/li><\/ol>\n\n\n\n<p>\u6a21\u578b\u603b\u7ed3\u7ed3\u679c<\/p>\n\n\n\n<p>\uff08\u5370\u8bc1\u5f00\u5934\u601d\u8003\uff0c\u4e3a\u4ec0\u4e48\u4e0d\u5355\u9760LLM\uff09\u65e2\u7136LLM\u5f88\u5f3a\u5927\uff0c\u4e3a\u4ec0\u4e48\u8fd8\u9700\u8981\u5f15\u5165\u72b6\u6001\u673a\uff1f<\/p>\n\n\n\n<p>\u72b6\u6001\u673a\u662f<strong>\u5c06\u590d\u6742\u6d41\u7a0b\u5206\u89e3\u4e3a\u53ef\u63a7\u72b6\u6001\u8f6c\u6362<\/strong>\u7684\u67b6\u6784\u6a21\u5f0f\u3002\u5728Agent\u7cfb\u7edf\u4e2d\uff1a<\/p>\n\n\n\n<ul><li><strong>\u4e0d\u662f\u66ff\u4ee3LLM<\/strong>\uff0c\u800c\u662f\u4e3aLLM\u63d0\u4f9b\u5b89\u5168\u6267\u884c\u6846\u67b6<\/li><li><strong>\u4e0d\u662f\u9650\u5236\u7075\u6d3b\u6027<\/strong>\uff0c\u800c\u662f\u5c06\u7075\u6d3b\u6027\u63a7\u5236\u5728\u9884\u5b9a\u4e49\u8fb9\u754c\u5185\uff08\u6a21\u578b\u5e7b\u89c9\u3001\u6307\u4ee4\u5ffd\u7565\uff09<\/li><li><strong>\u4e0d\u662f\u8fc7\u65f6\u6280\u672f<\/strong>\uff0c\u800c\u662f\u73b0\u4ee3Agent\u7cfb\u7edf\u7684\u57fa\u77f3\u67b6\u6784<\/li><\/ul>\n\n\n\n<p>\u5bf9\u4e8e\u4e1a\u52a1\uff0c\u72b6\u6001\u673a\u786e\u4fdd\u4e3b\u6d41\u7a0b100%\u53ef\u63a7\uff0c\u800cLLM\u53ef\u4ee5\u5728\u6bcf\u4e2a\u72b6\u6001\u5185\u90e8\u5904\u7406\u8bed\u4e49\u7406\u89e3\u3001\u5f02\u5e38\u5206\u6790\u7b49\u52a8\u6001\u51b3\u7b56\uff0c\u5b9e\u73b0<strong>\u5b89\u5168\u4e0e\u667a\u80fd\u7684\u6700\u4f73\u5e73\u8861<\/strong>\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4ec5\u51b3\u7b56\u4f9d\u9760LLM\uff0c\u4e3a\u4ec0\u4e48\u4e0d\u81ea\u5df1\u5199if else\uff1f<\/p>\n\n\n\n<ul><li>\u2705\u610f\u56fe\u8bc6\u522b\u9700\u8981LLM\uff1b<br>case\u5224\u65ad\u9700\u8981LLM\uff0c\u201c\u6211\u6628\u5929\u53d1\u4e86\u89c6\u9891\uff0c\u4f46\u79ef\u5206\u6ca1\u52a0\u4e0a\uff1f\u201d\u3001\u201c\u6211\u6628\u5929\u79ef\u5206\u4e0d\u592a\u5bf9\u201d<\/li><li>\u2705\u5185\u5bb9\u63d0\u53d6\u9700\u8981LLM\uff1b\uff08\u5982\u201c\u6211\u60f3\u77e5\u9053\u5317\u4eac\u7684\u5929\u6c14\u201d\uff0c\u63d0\u53d6\u51fa\u201c\u5317\u4eac\u201d\u7684\u53c2\u6570\u4ee5\u4fbf\u5de5\u5177\u8c03\u7528\uff09<br>\u274c\u5b57\u7b26\u4e32\u6b63\u5219\u5339\u914d<\/li><li>\u2705\u5185\u5bb9\u6574\u5408\u9700\u8981LLM\uff1b<br>\u274c\u7eaf\u5b57\u7b26\u4e32\u6216\u7ed3\u679c\u62fc\u63a5<\/li><li>\u2705\u4ee3\u7801\u8fd0\u884c\u7ed3\u679c\uff0c\u81ea\u52a8\u5f02\u5e38\u5806\u6808\u5206\u6790\uff1b<br>\u274c\u7a0b\u5e8f\u65e0\u6cd5\u81ea\u52a8\u5206\u6790\u51fa\u53ef\u80fd\u539f\u56e0<\/li><\/ul>\n\n\n\n<p>\u8fd9\u662f\u4e00\u4e2aAgent\u5417\uff1f<\/p>\n\n\n\n<p><strong>\u67e5\u8be2\u5929\u6c14FunctionCalling<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from openai import OpenAI\nfrom datetime import datetime\nimport json\nimport os\nimport random\n\n\n# \u521d\u59cb\u5316\u5ba2\u6237\u7aef\nclient = OpenAI(\n    # \u82e5\u6ca1\u6709\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u8bf7\u7528\u963f\u91cc\u4e91\u767e\u70bcAPI Key\u5c06\u4e0b\u884c\u66ff\u6362\u4e3a\uff1aapi_key=\"sk-xxx\",\n    # \u65b0\u52a0\u5761\u548c\u5317\u4eac\u5730\u57df\u7684API Key\u4e0d\u540c\u3002\u83b7\u53d6API Key\uff1ahttps:\/\/help.aliyun.com\/zh\/model-studio\/get-api-key\n    api_key=os.getenv(\"DASHSCOPE_API_KEY\"),\n    # \u4ee5\u4e0b\u662f\u5317\u4eac\u5730\u57dfbase_url\uff0c\u5982\u679c\u4f7f\u7528\u65b0\u52a0\u5761\u5730\u57df\u7684\u6a21\u578b\uff0c\u9700\u8981\u5c06base_url\u66ff\u6362\u4e3a\uff1ahttps:\/\/dashscope-intl.aliyuncs.com\/compatible-mode\/v1\n    base_url=\"https:\/\/dashscope.aliyuncs.com\/compatible-mode\/v1\",\n)\n# \u6a21\u62df\u7528\u6237\u95ee\u9898\nUSER_QUESTION = \"\u5317\u4eac\u5929\u6c14\u548b\u6837\"\n# \u5b9a\u4e49\u5de5\u5177\u5217\u8868\ntools = [\n    {\n        \"type\": \"function\",\n        \"function\": {\n            \"name\": \"get_current_weather\",\n            \"description\": \"\u5f53\u4f60\u60f3\u67e5\u8be2\u6307\u5b9a\u57ce\u5e02\u7684\u5929\u6c14\u65f6\u975e\u5e38\u6709\u7528\u3002\",\n            \"parameters\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"location\": {\n                        \"type\": \"string\",\n                        \"description\": \"\u57ce\u5e02\u6216\u53bf\u533a\uff0c\u6bd4\u5982\u5317\u4eac\u5e02\u3001\u676d\u5dde\u5e02\u3001\u4f59\u676d\u533a\u7b49\u3002\",\n                    }\n                },\n                \"required\": [\"location\"],\n            },\n        },\n    },\n]\n\n\n# \u6a21\u62df\u5929\u6c14\u67e5\u8be2\u5de5\u5177\ndef get_current_weather(arguments):\n    weather_conditions = [\"\u6674\u5929\", \"\u591a\u4e91\", \"\u96e8\u5929\"]\n    random_weather = random.choice(weather_conditions)\n    location = arguments[\"location\"]\n    return f\"{location}\u4eca\u5929\u662f{random_weather}\u3002\"\n\n\n# \u5c01\u88c5\u6a21\u578b\u54cd\u5e94\u51fd\u6570\ndef get_response(messages):\n    completion = client.chat.completions.create(\n        model=\"qwen-plus\",\n        messages=messages,\n        tools=tools,\n    )\n    return completion\n\n\nmessages = [{\"role\": \"user\", \"content\": USER_QUESTION}]\nresponse = get_response(messages)\nassistant_output = response.choices[0].message\nif assistant_output.content is None:\n    assistant_output.content = \"\"\nmessages.append(assistant_output)\n# \u5982\u679c\u4e0d\u9700\u8981\u8c03\u7528\u5de5\u5177\uff0c\u76f4\u63a5\u8f93\u51fa\u5185\u5bb9\nif assistant_output.tool_calls is None:\n    print(f\"\u65e0\u9700\u8c03\u7528\u5929\u6c14\u67e5\u8be2\u5de5\u5177\uff0c\u76f4\u63a5\u56de\u590d\uff1a{assistant_output.content}\")\nelse:\n    # \u8fdb\u5165\u5de5\u5177\u8c03\u7528\u5faa\u73af\n    while assistant_output.tool_calls is not None:\n        tool_call = assistant_output.tool_calls[0]\n        tool_call_id = tool_call.id\n        func_name = tool_call.function.name\n        arguments = json.loads(tool_call.function.arguments)\n        print(f\"\u6b63\u5728\u8c03\u7528\u5de5\u5177 [{func_name}]\uff0c\u53c2\u6570\uff1a{arguments}\")\n        # \u6267\u884c\u5de5\u5177\n        tool_result = get_current_weather(arguments)\n        # \u6784\u9020\u5de5\u5177\u8fd4\u56de\u4fe1\u606f\n        tool_message = {\n            \"role\": \"tool\",\n            \"tool_call_id\": tool_call_id,\n            \"content\": tool_result,  # \u4fdd\u6301\u539f\u59cb\u5de5\u5177\u8f93\u51fa\n        }\n        print(f\"\u5de5\u5177\u8fd4\u56de\uff1a{tool_message['content']}\")\n        messages.append(tool_message)\n        # \u518d\u6b21\u8c03\u7528\u6a21\u578b\uff0c\u83b7\u53d6\u603b\u7ed3\u540e\u7684\u81ea\u7136\u8bed\u8a00\u56de\u590d\n        response = get_response(messages)\n        assistant_output = response.choices[0].message\n        if assistant_output.content is None:\n            assistant_output.content = \"\"\n        messages.append(assistant_output)\n    print(f\"\u52a9\u624b\u6700\u7ec8\u56de\u590d\uff1a{assistant_output.content}\")<\/pre>\n\n\n\n<p>\u8fd9\u6bb5\u4ee3\u7801 <strong>\u53ef\u4ee5\u88ab\u89c6\u4f5c\u4e00\u4e2a\u6700\u7b80\u5f62\u5f0f\u7684\u201cAgent\u201d\u96cf\u5f62<\/strong>\uff0c\u4f46\u4e25\u683c\u6765\u8bf4\uff0c\u5b83\u5c5e\u4e8e <strong>Function Calling\uff08\u51fd\u6570\u8c03\u7528\uff09\u9a71\u52a8\u7684\u5355\u6b65\u5de5\u5177\u8c03\u7528\u6d41\u7a0b<\/strong>\uff0c\u5c1a\u672a\u8fbe\u5230\u5178\u578b LLM Agent \u7684\u5b8c\u6574\u80fd\u529b\u3002\u6211\u4eec\u53ef\u4ee5\u4ece Agent \u7684\u6838\u5fc3\u7279\u5f81\u51fa\u53d1\u8fdb\u884c\u5206\u6790\uff1a<\/p>\n\n\n\n<h3 id=\"\u2705-\u5b83\u5177\u5907\u7684\u90e8\u5206-agent-\u7279\u5f81\">\u2705 \u5b83\u5177\u5907\u7684\u90e8\u5206 Agent \u7279\u5f81<\/h3>\n\n\n\n<ol><li><strong>\u611f\u77e5\uff08Perception\uff09<\/strong><ul><li>\u63a5\u6536\u7528\u6237\u8f93\u5165\uff08<code>USER_QUESTION = \"\u5317\u4eac\u5929\u6c14\u548b\u6837\"<\/code>\uff09\u3002<\/li><\/ul><\/li><li><strong>\u51b3\u7b56\uff08Reasoning\uff09<\/strong><ul><li>\u5927\u6a21\u578b\uff08Qwen-Plus\uff09\u6839\u636e\u95ee\u9898\u5224\u65ad\u662f\u5426\u9700\u8981\u8c03\u7528\u5de5\u5177\uff08<code>get_current_weather<\/code>\uff09\u3002<\/li><\/ul><\/li><li><strong>\u884c\u52a8\uff08Action\uff09<\/strong><ul><li>\u8c03\u7528\u5916\u90e8\u201c\u5de5\u5177\u201d\uff08\u867d\u7136\u662f\u6a21\u62df\u7684 <code>get_current_weather<\/code> \u51fd\u6570\uff09\u83b7\u53d6\u4fe1\u606f\u3002<\/li><\/ul><\/li><li><strong>\u53cd\u9988\u4e0e\u8fed\u4ee3\uff08Reflection \/ Iteration\uff09<\/strong><ul><li>\u5c06\u5de5\u5177\u8fd4\u56de\u7ed3\u679c\u6ce8\u5165\u5bf9\u8bdd\u4e0a\u4e0b\u6587\uff0c\u5e76\u518d\u6b21\u8c03\u7528\u6a21\u578b\u751f\u6210\u6700\u7ec8\u81ea\u7136\u8bed\u8a00\u56de\u590d\u3002<\/li><\/ul><\/li><\/ol>\n\n\n\n<p>\u8fd9\u7b26\u5408 <strong>ReAct\uff08Reason + Act\uff09\u8303\u5f0f<\/strong> \u7684\u57fa\u672c\u7ed3\u6784\uff0c\u662f\u5f53\u524d\u4e3b\u6d41 Agent \u67b6\u6784\u7684\u57fa\u7840\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u53c2\u8003\uff1aYao et al., <em>ReAct: Synergizing Reasoning and Acting in Language Models<\/em>, ICLR 2023.<br><a href=\"https:\/\/arxiv.org\/abs\/2210.03629\">https:\/\/arxiv.org\/abs\/2210.03629<\/a><\/p><\/blockquote>\n\n\n\n<h3 id=\"\u274c-\u5b83\u7f3a\u5931\u7684\u5178\u578b-agent-\u80fd\u529b\">\u274c \u5b83\u7f3a\u5931\u7684\u5178\u578b Agent \u80fd\u529b<\/h3>\n\n\n\n<ol><li><strong>\u591a\u5de5\u5177\u652f\u6301\u4e0e\u52a8\u6001\u9009\u62e9<\/strong><ul><li>\u5f53\u524d\u53ea\u6ce8\u518c\u4e86\u4e00\u4e2a\u5de5\u5177\u3002\u771f\u5b9e Agent \u5e94\u80fd\u4ece\u591a\u4e2a\u5de5\u5177\u4e2d\u6309\u9700\u9009\u62e9\uff08\u5982\u67e5\u5929\u6c14\u3001\u67e5\u65e5\u5386\u3001\u53d1\u90ae\u4ef6\u7b49\uff09\u3002<\/li><\/ul><\/li><li><strong>\u591a\u8f6e\u5de5\u5177\u8c03\u7528\uff08Multi-step Tool Use\uff09<\/strong><ul><li>\u4ec5\u652f\u6301\u5355\u6b21\u5de5\u5177\u8c03\u7528\uff08\u867d\u7136\u6709 while \u5faa\u73af\uff0c\u4f46\u5b9e\u9645\u53ea\u5904\u7406\u7b2c\u4e00\u4e2a <code>tool_call<\/code>\uff09\u3002\u82e5\u6a21\u578b\u8fd4\u56de\u591a\u4e2a\u5e76\u884c\u5de5\u5177\u8c03\u7528\uff0c\u6b64\u4ee3\u7801\u65e0\u6cd5\u6b63\u786e\u5904\u7406\u3002<\/li><\/ul><\/li><li><strong>\u72b6\u6001\u7ba1\u7406\u4e0e\u8bb0\u5fc6\uff08Memory\uff09<\/strong><ul><li>\u6ca1\u6709\u957f\u671f\u8bb0\u5fc6\u3001\u4f1a\u8bdd\u5386\u53f2\u538b\u7f29\u6216\u4e0a\u4e0b\u6587\u6458\u8981\u673a\u5236\u3002<\/li><\/ul><\/li><li><strong>\u76ee\u6807\u5bfc\u5411\u4e0e\u89c4\u5212\uff08Planning\uff09<\/strong><ul><li>\u65e0\u6cd5\u5206\u89e3\u590d\u6742\u4efb\u52a1\uff08\u5982\u201c\u5e2e\u6211\u8ba2\u4e00\u5f20\u660e\u5929\u4ece\u5317\u4eac\u5230\u4e0a\u6d77\u7684 cheapest \u673a\u7968\u201d\uff09\uff0c\u7f3a\u4e4f\u5b50\u76ee\u6807\u62c6\u89e3\u548c\u6267\u884c\u987a\u5e8f\u89c4\u5212\u3002<\/li><\/ul><\/li><li><strong>\u9519\u8bef\u6062\u590d\u4e0e\u91cd\u8bd5\u673a\u5236<\/strong><ul><li>\u5de5\u5177\u5931\u8d25\u65f6\u65e0 fallback \u7b56\u7565\uff08\u5982\u91cd\u8bd5\u3001\u6362\u5de5\u5177\u3001\u5411\u7528\u6237\u6f84\u6e05\uff09\u3002<\/li><\/ul><\/li><li><strong>\u5b89\u5168\u4e0e\u6743\u9650\u63a7\u5236<\/strong><ul><li>\u672a\u8003\u8651\u5de5\u5177\u8c03\u7528\u7684\u5b89\u5168\u8fb9\u754c\uff08\u4f8b\u5982\u9632\u6b62 LLM \u8c03\u7528\u5371\u9669\u64cd\u4f5c\uff09\u3002<\/li><\/ul><\/li><\/ol>\n\n\n\n<h3 id=\"\u7ed3\u8bba\">\u7ed3\u8bba<\/h3>\n\n\n\n<ul><li><strong>\u5b66\u672f\/\u5de5\u7a0b\u4e0a<\/strong>\uff1a\u8fd9\u662f\u4e00\u4e2a <strong>\u57fa\u4e8e Function Calling \u7684\u7b80\u5355 Tool-Using Agent \u539f\u578b\uff08Minimal Agent\uff09<\/strong>\uff0c\u5e38\u7528\u4e8e\u6f14\u793a\u6216\u6559\u5b66\u3002<\/li><li><strong>\u5de5\u4e1a\u7ea7 Agent \u7cfb\u7edf<\/strong>\uff08\u5982 LangChain Agent\u3001LlamaIndex ReActAgent\u3001AutoGen\u3001OpenDevin\uff09\u901a\u5e38\u5305\u542b\u4e0a\u8ff0\u7f3a\u5931\u7684\u80fd\u529b\u6a21\u5757\u3002<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u5de5\u4e1a\u7ea7\u6210\u719f Agent<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/langchain-ai.github.io\/langgraph\/\">LangGraph<\/a>\uff1a\u72b6\u6001\u673a + LLM\u8282\u70b9<\/li><li><a href=\"https:\/\/microsoft.github.io\/autogen\/?spm=a2ty_o01.29997173.0.0.70f951714IqujR\">AutoGen<\/a>\uff1aLLM\u751f\u6210\u8ba1\u5212 + \u7a0b\u5e8f\u6267\u884c\u9a8c\u8bc1<\/li><li><a href=\"https:\/\/github.com\/OpenDevin\/OpenDevin\">OpenDevin<\/a>\uff1a\u6c99\u76d2\u73af\u5883 + \u6df7\u5408\u51b3\u7b56<\/li><li><a href=\"https:\/\/docs.deepwisdom.ai\/main\/zh\/guide\/get_started\/introduction.html\">MetaGPT<\/a>\/OpenManus<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Function Calling \u5148\u601d\u8003 \u9996\u5148\u6211\u4eec\u5df2\u7ecf\u4e86\u89e3\u8fc7 Function Calling \u7684\u8fc7\u7a0b\uff0c\u90a3\u4e48\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[145],"tags":[144,141,143],"_links":{"self":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/1512"}],"collection":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1512"}],"version-history":[{"count":1,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/1512\/revisions"}],"predecessor-version":[{"id":1517,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/1512\/revisions\/1517"}],"wp:attachment":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}