{"id":19100,"date":"2025-08-13T16:23:16","date_gmt":"2025-08-13T08:23:16","guid":{"rendered":"https:\/\/92it.top\/?p=19100"},"modified":"2025-08-15T08:31:55","modified_gmt":"2025-08-15T00:31:55","slug":"multi-agent%e5%bc%80%e5%8f%91%e6%a1%86%e6%9e%b6autogen%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=19100","title":{"rendered":"Multi-Agent\u5f00\u53d1\u6846\u67b6AutoGen\u4ecb\u7ecd"},"content":{"rendered":"\n<p><strong><strong>\u4e3a\u4ec0\u4e48\u9700\u8981\u5f00\u53d1\u6846\u67b6<\/strong><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u6709\u4eba\u4f1a\u8bf4\uff0cAgent\u4e0d\u5c31\u662f\u81ea\u52a8\u8c03\u7528\u51e0\u4e2a\u5de5\u5177\uff1f\u6211\u624b\u5199\u51e0\u4e2aPython\u51fd\u6570\u5c31\u5b8c\u4e86\u561b\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\u53ef\u4ee5\u8fd9\u4e48\u505a\uff0c<strong>\u4f46\u4e00\u65e6Agent\u6d89\u53ca\u4ee5\u4e0b\u4efb\u610f\u4e00\u4e2a\u7ef4\u5ea6\uff0c\u4ee3\u7801\u590d\u6742\u5ea6\u5c31\u4f1a\u7206\u70b8<\/strong>\uff1a<\/p>\n\n\n\n<ul>\n<li>\u591a\u8f6e\u5bf9\u8bdd\u3001\u4e0a\u4e0b\u6587\u7ba1\u7406\uff08\u7528\u6237\u591a\u6b21\u4ea4\u4e92\uff09<\/li>\n\n\n\n<li>\u591a\u5de5\u5177\u7ec4\u5408\u8c03\u7528\uff08\u5916\u90e8API\u3001\u6570\u636e\u5e93\u3001\u641c\u7d22\u5f15\u64ce\u7b49\uff09<\/li>\n\n\n\n<li>\u591aAgent\u534f\u4f5c\uff08\u7c7b\u7ec4\u7ec7\u7ed3\u6784\uff0c\u89d2\u8272\u534f\u540c\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e9b\u95ee\u9898\u4e0d\u662f\u201c\u8c03\u5927\u6a21\u578b\u201d\u80fd\u89e3\u51b3\u7684\uff0c\u800c\u662f<strong>\u4e00\u4e2a\u771f\u6b63\u7684\u201c\u7cfb\u7edf\u5de5\u7a0b\u201d\u95ee\u9898<\/strong>\uff0c\u9700\u8981\u89e3\u51b3\uff1a<\/p>\n\n\n\n<ul>\n<li>\u5982\u4f55\u7ec4\u7ec7\u6a21\u5757\uff1f<\/li>\n\n\n\n<li>\u5982\u4f55\u4fdd\u6301\u72b6\u6001\uff1f<\/li>\n\n\n\n<li>\u5982\u4f55\u8ba9\u591a\u4e2aAgent\u534f\u540c\u5de5\u4f5c\uff0c\u800c\u4e0d\u662f\u4e92\u76f8\u6363\u4e71\uff1f<\/li>\n<\/ul>\n\n\n\n<p>\u6240\u4ee5\uff0c<strong>Agent\u6846\u67b6\u7684\u51fa\u73b0\uff0c\u5c31\u662f\u4e3a\u4e86\u7ed3\u6784\u5316\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002<\/strong><\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u628a\u5b83\u7406\u89e3\u6210\u2014\u2014<\/p>\n\n\n\n<p>\u7ed9AI Agent\u5f00\u53d1\u63d0\u4f9b\u4e00\u4e2a\u50cf\u201cSpring Boot\u90a3\u6837\u7684\u5de5\u7a0b\u67b6\u6784\u201d\uff0c\u4ece\u7ec4\u4ef6\u5316\u3001\u6d41\u7a0b\u63a7\u5236\u3001\u72b6\u6001\u7ba1\u7406\uff0c\u5230\u63a5\u53e3\u5b9a\u4e49\u3001\u90e8\u7f72\u8c03\u8bd5\uff0c\u4e00\u6574\u5957\u201c\u7f16\u7a0b\u8303\u5f0f\u201d\u3002<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"812\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83-1024x812.png\" alt=\"\" class=\"wp-image-19162\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83-1024x812.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83-300x238.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83-768x609.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83-1536x1218.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83-830x658.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83-230x182.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83-350x277.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83-480x380.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-83.png 1698w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"912\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84-1024x912.png\" alt=\"\" class=\"wp-image-19163\" style=\"width:378px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84-1024x912.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84-300x267.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84-768x684.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84-1536x1368.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84-830x739.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84-230x205.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84-350x312.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84-480x427.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-84.png 1554w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87-1024x992.png\" alt=\"\" class=\"wp-image-19166\" style=\"width:384px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87-1024x992.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87-300x291.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87-768x744.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87-1536x1488.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87-830x804.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87-230x223.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87-350x339.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87-480x465.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-87.png 1608w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-2 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"985\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85-1024x985.png\" alt=\"\" class=\"wp-image-19164\" style=\"width:401px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85-1024x985.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85-300x289.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85-768x739.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85-1536x1478.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85-830x798.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85-230x221.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85-350x337.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85-480x462.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-85.png 1576w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1000\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86-1024x1000.png\" alt=\"\" class=\"wp-image-19165\" style=\"width:417px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86-1024x1000.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86-300x293.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86-768x750.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86-1536x1500.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86-830x811.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86-230x225.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86-350x342.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86-480x469.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-86.png 1620w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>\u3000\u3000<\/p>\n\n\n\n<p><strong>\u5f15\u8a00<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"599\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-44-1024x599.png\" alt=\"\" class=\"wp-image-19103\" style=\"width:458px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-44-1024x599.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-44-300x176.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-44-768x450.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-44-830x486.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-44-230x135.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-44-350x205.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-44-480x281.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-44.png 1452w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>AutoGen\u662f\u4e00\u4e2a\u7531\u5fae\u8f6f\u63a8\u51fa\u7684\u6846\u67b6\uff0c\u65e8\u5728\u7b80\u5316\u548c\u81ea\u52a8\u5316\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u7684\u5de5\u4f5c\u6d41\u7a0b\u7f16\u6392\u3001\u4f18\u5316\u548c\u81ea\u52a8\u5316\u3002\u5b83\u901a\u8fc7\u521b\u5efa\u591a\u4e2a\u667a\u80fd\u4f53\uff08agents\uff09\uff0c\u8fd9\u4e9b\u667a\u80fd\u4f53\u53ef\u4ee5\u76f8\u4e92\u534f\u4f5c\uff0c\u4ee5\u5b8c\u6210\u590d\u6742\u7684\u4efb\u52a1\u3002\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u548c\u8ba1\u7b97\u673a\u4ee3\u7801\u4e3a\u4e0d\u540c\u7684\u5e94\u7528\u7a0b\u5e8f\u7f16\u5199\u7075\u6d3b\u7684\u5bf9\u8bdd\u6a21\u5f0f\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u4ee3\u7406\u4e4b\u95f4\u7684\u804a\u5929\u548c\u534f\u4f5c\u3002<\/p>\n\n\n\n<p>AutoGen\u7684\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e\u5176\u591a\u4ee3\u7406\u5bf9\u8bdd\u80fd\u529b\uff0c\u80fd\u591f\u8ba9\u4e0d\u540c\u7684\u4ee3\u7406\u4e92\u76f8\u6c9f\u901a\uff0c\u4ee5\u89e3\u51b3\u590d\u6742\u7684\u4efb\u52a1\u3002\u8fd9\u79cd\u6846\u67b6\u4e0d\u4ec5\u7b80\u5316\u4e86\u590d\u6742\u7684\u5927\u6570\u636e\u6a21\u578b\u5de5\u4f5c\u6d41\u7a0b\u7684\u7f16\u6392\u548c\u81ea\u52a8\u5316\uff0c\u8fd8\u652f\u6301\u591a\u79cd\u5bf9\u8bdd\u548c\u4efb\u52a1\u7684\u6267\u884c\u3002\u6b64\u5916\uff0cAutoGen\u8fd8\u63d0\u4f9b\u4e86\u81ea\u52a8\u5ea7\u5e2d\u804a\u5929\u96c6\u6210\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u3001\u5de5\u5177\u548c\u4eba\u7c7b\u89c1\u89e3\u7684\u529f\u80fd\uff0c\u8fdb\u4e00\u6b65\u63d0\u9ad8\u4e86\u5176\u6027\u80fd\u3002<\/p>\n\n\n\n<p>AutoGen\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u591a\u4ee3\u7406\u5bf9\u8bdd\u6846\u67b6\uff0c\u9002\u7528\u4e8e\u6784\u5efa\u57fa\u4e8e\u5927\u578b\u8bed\u8a00\u6a21\u578b\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u4e14\u5728\u5927\u6570\u636e\u6a21\u578b\u5de5\u4f5c\u6d41\u7a0b\u4e2d\u8868\u73b0\u51fa\u8272\u3002<\/p>\n\n\n\n<p>\u5728\u4eba\u5de5\u667a\u80fd\u6280\u672f\u65e5\u65b0\u6708\u5f02\u7684\u5f53\u4e0b\uff0c\u591a\u667a\u80fd\u4f53\u534f\u4f5c\u4e0e\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u7684\u5e94\u7528\u65e5\u76ca\u5e7f\u6cdb\u3002\u5fae\u8f6f\u63a8\u51fa\u7684 AutoGen \u6846\u67b6\uff0c\u72b9\u5982\u4e00\u9897\u7480\u74a8\u7684\u65b0\u661f\uff0c\u4e3a\u5f00\u53d1\u8005\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u4ee5\u5b9e\u73b0\u9ad8\u6548\u7684\u591a\u667a\u80fd\u4f53\u5bf9\u8bdd\u548c\u590d\u6742\u4efb\u52a1\u7684\u81ea\u52a8\u5316\u5904\u7406\u3002AutoGen \u6846\u67b6\u81f4\u529b\u4e8e\u7b80\u5316\u591a\u667a\u80fd\u4f53\u7cfb\u7edf\u7684\u5f00\u53d1\u8fc7\u7a0b\uff0c\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u8f7b\u677e\u6784\u5efa\u51fa\u667a\u80fd\u4f53\u4e4b\u95f4\u80fd\u591f\u76f8\u4e92\u534f\u4f5c\u3001\u4ea4\u6d41\u5e76\u5171\u540c\u89e3\u51b3\u95ee\u9898\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u65e0\u8bba\u662f\u5728\u5b66\u672f\u7814\u7a76\u9886\u57df\uff0c\u63a8\u52a8\u4eba\u5de5\u667a\u80fd\u7406\u8bba\u7684\u8fdb\u4e00\u6b65\u53d1\u5c55\uff0c\u8fd8\u662f\u5728\u5b9e\u9645\u7684\u5de5\u4e1a\u751f\u4ea7\u4e2d\uff0c\u63d0\u9ad8\u8f6f\u4ef6\u5f00\u53d1\u3001\u6570\u636e\u5206\u6790\u7b49\u5de5\u4f5c\u7684\u6548\u7387\uff0cAutoGen \u90fd\u5c55\u73b0\u51fa\u4e86\u5de8\u5927\u7684\u6f5c\u529b\u548c\u5e94\u7528\u4ef7\u503c\u3002\u5b83\u7684\u51fa\u73b0\uff0c\u65e0\u7591\u4e3a AI \u9886\u57df\u7684\u53d1\u5c55\u6ce8\u5165\u4e86\u65b0\u7684\u6d3b\u529b\uff0c\u4e5f\u4e3a\u5e7f\u5927\u5f00\u53d1\u8005\u5e26\u6765\u4e86\u66f4\u591a\u7684\u521b\u65b0\u673a\u9047\u3002\u63a5\u4e0b\u6765\uff0c\u5c31\u8ba9\u6211\u4eec\u6df1\u5165\u4e86\u89e3\u4e00\u4e0b AutoGen \u6846\u67b6\u53ca\u5176\u57fa\u7840\u73af\u5883\u7684\u5b89\u88c5\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p>AutoGen \u662f\u4e00\u4e2a\u5f00\u6e90\u7f16\u7a0b\u6846\u67b6\uff0c\u7528\u4e8e\u6784\u5efa AI \u4ee3\u7406\u5e76\u4fc3\u8fdb\u591a\u4e2a\u4ee3\u7406\u4e4b\u95f4\u7684\u5408\u4f5c\u4ee5\u89e3\u51b3\u95ee\u9898\u3002AutoGen \u65e8\u5728\u63d0\u4f9b\u4e00\u4e2a\u6613\u4e8e\u4f7f\u7528\u548c\u7075\u6d3b\u7684\u6846\u67b6\uff0c\u4ee5\u52a0\u901f\u4ee3\u7406\u578b AI \u7684\u5f00\u53d1\u548c\u7814\u7a76\uff0c\u5c31\u50cf PyTorch \u4e4b\u4e8e\u6df1\u5ea6\u5b66\u4e60\u3002\u5b83\u63d0\u4f9b\u4e86\u8bf8\u5982\u4ee3\u7406\u4e4b\u95f4\u53ef\u4ee5\u5bf9\u8bdd\u3001LLM \u548c\u5de5\u5177\u4f7f\u7528\u652f\u6301\u3001\u81ea\u4e3b\u548c\u4eba\u673a\u534f\u4f5c\u5de5\u4f5c\u6d41\u4ee5\u53ca\u591a\u4ee3\u7406\u5bf9\u8bdd\u6a21\u5f0f\u7b49\u529f\u80fd\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"506\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-59-1024x506.png\" alt=\"\" class=\"wp-image-19121\" style=\"width:470px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-59-1024x506.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-59-300x148.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-59-768x379.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-59-830x410.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-59-230x114.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-59-350x173.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-59-480x237.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-59.png 1328w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/microsoft\/autogen\">https:\/\/github.com\/microsoft\/autogen<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"619\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-1024x619.png\" alt=\"\" class=\"wp-image-19145\" style=\"width:472px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-1024x619.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-300x181.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-768x464.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-1536x929.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-2048x1238.png 2048w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-830x502.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-230x139.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-350x212.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-76-480x290.png 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u5b98\u65b9\u6587\u6863\uff1a<a href=\"https:\/\/microsoft.github.io\/autogen\/stable\">https:\/\/microsoft.github.io\/autogen\/stable<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"619\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-1024x619.png\" alt=\"\" class=\"wp-image-19142\" style=\"width:494px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-1024x619.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-300x181.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-768x464.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-1536x928.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-2048x1237.png 2048w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-830x501.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-230x139.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-350x211.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-74-480x290.png 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u3000\u3000<\/p>\n\n\n\n<p><strong>Autogen\u662f\u4ec0\u4e48\uff1f<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>AutoGen\u662f\u5fae\u8f6f\u516c\u53f8\u5f00\u6e90\u7684\u591a\u667a\u80fd\u4f53(Mutiple Agents)\u5e94\u7528\u5f00\u53d1\u6846\u67b6\uff0c\u591a\u667a\u80fd\u4f53\u5e94\u7528\u8ba9\u4e0d\u540c\u7684Agent\u4e4b\u95f4\u76f8\u4e92\u4ea4\u6d41\u6c9f\u901a\u6765\u89e3\u51b3\u95ee\u9898\u3002<br>\u66f4\u5927\u767d\u8bdd\u4e00\u4e9b\uff0c\u5728\u516c\u53f8\u91cc\uff0c\u8001\u677f\u5982\u679c\u6709\u4e00\u4e2a\u4e8b\u60c5\u8981\u529e\uff0c\u901a\u5e38\u4f1a\u8ba9\u79d8\u4e66\u7ec4\u7ec7\u4e00\u4e2a\u4f1a\u8bae\uff0c\u628a\u76f8\u5173\u7684\u4eba\u62c9\u5230\u4f1a\u8bae\u5ba4\u91cc\uff0c\u7136\u540e\u544a\u8bc9\u4ed6\u4eec\u81ea\u5df1\u7684\u76ee\u6807\uff0c\u6bd4\u5982\u8981\u534a\u5e74\u5b9e\u73b0\u4e00\u767e\u500d\u7684\u589e\u957f\uff0c\u4e0b\u9762\u7684\u4eba\u5c31\u4f1a\u76f8\u4e92\u626f\u76ae\u8ba8\u8bba\uff0c\u4f46\u662f\u6700\u7ec8\u8fd8\u662f\u7422\u78e8\u51fa\u4e00\u4e2a\u4e0d\u9760\u8c31\u7684\u65b9\u6cd5\u628a\u4e8b\u513f\u7ed9\u529e\u4e86\u3002<br>\u4f60\u53ef\u80fd\u4e0d\u662f\u8001\u677f\uff0c\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7AutoGen\u521b\u5efa\u51e0\u4e2aAgent\uff0c\u4e00\u8d77\u73a9Cosplay\u3002\u4f60\u626e\u6f14\u8001\u677f\uff0c\u7ed9Agent\u5206\u914d\u4e0d\u540c\u7684\u89d2\u8272\uff0c\u6bd4\u5982\u9879\u76ee\u7ecf\u7406\uff0c\u7a0b\u5e8f\u5458\uff0c\u6216\u8005\u4e3b\u7ba1\u7b49\u3002\u628a\u4f60\u7684\u76ee\u6807\u544a\u8bc9\u5b83\u4eec\uff0c\u8ba9\u4ed6\u4eec\u4efb\u610f\u53bb\u60f3\u529e\u6cd5\uff0c\u4f60\u53ea\u8981\u5728\u4e00\u65c1\u542c\u6c47\u62a5\uff0c\u5982\u679c\u89c9\u5f97\u6709\u610f\u89c1\u6216\u8005\u5b83\u4eec\u505a\u5f97\u4e0d\u5bf9\u7684\u5730\u65b9\uff0c\u5c31\u8ba9\u5b83\u4eec\u6539\uff0c\u76f4\u5230\u6ee1\u610f\u4e3a\u6b62\u3002<br>\u5982\u679c\u8981\u63d0\u4f9b\u4e00\u4e2a\u5f00\u53d1\u6846\u67b6\uff0c\u8ba9\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u5728\u8fd9\u4e2a\u6846\u67b6\u7684\u57fa\u7840\u4e0a\u5f00\u53d1\u51fa\u4e0d\u540c\u7684\u5e94\u7528\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6846\u67b6\u8981\u5b9e\u73b0\u54ea\u4e9b\u80fd\u529b\u5462\uff1f\u628a&#8221;\u5927\u8c61\u653e\u8fdb\u51b0\u7bb1&#8221;\u5206\u4e09\u6b65:<\/p>\n\n\n\n<ol>\n<li><strong>\u80fd\u591f\u521b\u5efa\u4e00\u4e2aAgent<\/strong>\uff0c\u5c31\u662f\u5355\u72ec\u521b\u5efa\u4e0d\u540c\u7684Agent\uff0c\u8ba9\u4ed6\u4eec\u62c5\u4efb\u4e0d\u540c\u7684\u89d2\u8272\uff0c\u5206\u914d\u5fc5\u8981\u7684\u5de5\u5177\uff0c\u8d1f\u8d23\u5177\u4f53\u7684\u4efb\u52a1\uff1b<\/li>\n\n\n\n<li><strong>\u63d0\u4f9b\u591a\u4e2aAgent\u5bf9\u8bdd\u7684\u73af\u5883<\/strong>\uff0c\u5c06\u591a\u4e2aAgent\u653e\u5230\u4e00\u4e2a&#8221;\u5c0f\u9ed1\u5c4b&#8221;\u91cc\uff0c\u8ba9\u4ed6\u4eec\u4e4b\u95f4\u80fd\u591f\u76f8\u4e92\u5bf9\u8bdd\uff0c\u628a\u5bf9\u8bdd\u8bb0\u5f55\u4e0b\u6765\uff1b<\/li>\n\n\n\n<li><strong>\u5bf9\u5bf9\u8bdd\u8fdb\u884c\u7ba1\u7406<\/strong>\uff0c\u6bd4\u5982\u53d1\u8a00\u987a\u5e8f\uff0c\u4ec0\u4e48\u65f6\u5019\u4f1a\u8bae\u7ed3\u675f\uff0c\u5bf9\u8bdd\u8fc7\u7a0b\u662f\u4e0d\u662f\u8dd1\u504f\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u57fa\u672c\u4e0aAutoGen\u5c31\u662f\u9884\u5148\u628a\u8fd9\u4e9b\u529f\u80fd\u90fd\u5b9e\u73b0\u4e86\uff0c\u5f00\u53d1\u4eba\u5458\u8981\u505a\u7684\u53ea\u662f\u660e\u786e\u4efb\u52a1\uff0c\u521b\u5efaAgent\uff0c\u628aAgent\u62c9\u5230\u804a\u5929\u5ba4\u91cc\uff0c\u8ba9\u4ed6\u4eec\u5f00\u804a\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p><strong>\u4e3a\u4ec0\u4e48\u9700\u8981Multi-Agent\u6846\u67b6<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u73b0\u5728\u4e00\u5927\u5806\u5f00\u53d1\u6846\u67b6\u90fd\u5df2\u7ecf\u5b9e\u73b0\u4e86Agent\u7684\u80fd\u529b\uff0c\u6bd4\u5982AutoGPT, Langchain Agent\u7b49\uff0c\u4e3a\u4ec0\u4e48\u4f1a\u9700\u8981\u4e00\u4e2aMulti-Agent\u6846\u67b6\uff1f\u5b9e\u9645\u4e0aMulti-Agent\u6846\u67b6\u8fd8\u4e0d\u6b62AutoGen\u4e00\u5bb6\uff0cBabyAGI\u3001CAMEL\u3001MetaGPT\u3001ChatDev\u7b49\u7b49\u90fd\u662f\u3002\u4e1a\u754c\u8fd9\u4e48\u70ed\u5fc3\u6295\u5165Multi-Agent\u7814\u7a76\u80af\u5b9a\u662f\u6709\u4e00\u4e9b\u9053\u7406\u7684\u3002<br>\u7b80\u5355\u7684\u8bf4\uff0c\u4eba\u4eec\u7684\u76f4\u89c9\u662f\u6a21\u4eff\u4eba\u7c7b\u5206\u5de5\u534f\u540c\u7684\u6a21\u5f0f\uff0c\u80fd\u591f\u66f4\u6709\u6548\u7684\u89e3\u51b3\u95ee\u9898\u3002\u66f4\u5e95\u5c42\u7684\u903b\u8f91\u662f\u4e3a\u4e86\u7a81\u7834\u5355Agent\u7684\u4e00\u4e9b\u9650\u5236\u3002\u4f8b\u5982\u4e0a\u4e0b\u6587\u7a97\u53e3\u5927\u5c0f\u3002<br>Long Context\u662f\u5f88\u591aLLM\u8ffd\u6c42\u7684\u7279\u6027\u4e4b\u4e00\uff0c\u5355\u4e00\u7684Agent\u4e5f\u4f1a\u53d7\u5230Context \u7684\u9650\u5236\uff0c\u56e0\u4e3aAgent\u4e00\u822c\u90fd\u901a\u8fc7XoT (CoT\u3001ToT\u3001GoT) + React\u7b49\u65b9\u6cd5\u6765\u89c4\u5212\u548c\u601d\u8003\uff0c\u4e0a\u4e0b\u6587\u4f1a\u4e0d\u65ad\u7684\u52a0\u957f\uff0c\u8fdf\u65e9\u4f1a\u7a81\u7834\u7a97\u53e3\u9650\u5236\u3002\u56e0\u6b64\u62c6\u5206Agent\u7684\u529f\u80fd\u907f\u514d\u8d85\u8fc7\u4e0a\u4e0b\u6587\u7a97\u53e3\u9650\u5236\u662f\u4e00\u4e2a\u5f88\u6709\u6548\u7684\u65b9\u6cd5\u3002<br>\u800c\u4e14\uff0cPrompt\u662fAgent\u5de5\u4f5c\u7684\u4e2d\u5f88\u5173\u952e\u7684\u56e0\u7d20\uff0c\u5355\u4e00\u7684Agent\u5982\u679c\u7ef4\u62a4\u7684\u5927\u91cf\u7684\u4e0a\u4e0b\u6587\uff0c\u96be\u514d&#8221;\u8111\u5b50&#8221;\u4f1a\u4e71\u3002\u5982\u679c\u53ea\u6267\u884c\u7279\u5b9a\u7684\u4efb\u52a1\uff0c\u638c\u63e1\u7279\u5b9a\u6280\u80fd\uff0c\u5f53\u7136\u7406\u8bba\u4e0a\u8868\u73b0\u4f1a\u66f4\u597d\u3002<br>\u5177\u4f53\u5230\u5f00\u53d1\u5e94\u7528\u7684\u8fc7\u7a0b\u91cc\uff0c\u4e5f\u9700\u8981\u4e0d\u540c\u7684\u5f00\u53d1\u56e2\u961f\u5206\u5de5\u534f\u540c\uff0c\u90a3\u4e48\u52bf\u5fc5\u8981\u5bf9\u5e94\u7528\u529f\u80fd\u8fdb\u884c\u62c6\u5206\uff0c\u6bcf\u4e2a\u5f00\u53d1\u56e2\u961f\u8d1f\u8d23\u4e00\u4e2aAgent\u7684\u6a21\u5f0f\u4e5f\u66f4\u6709\u6548\u3002<\/p>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<p><strong>AutoGen\u80fd\u505a\u4ec0\u4e48<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>AutoGen\u7684\u8bba\u6587\u91cc\u4e3e\u4e866\u79cd\u573a\u666f\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-46-1024x554.png\" alt=\"\" class=\"wp-image-19105\" style=\"width:520px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-46-1024x554.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-46-300x162.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-46-768x416.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-46-830x449.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-46-230x124.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-46-350x189.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-46-480x260.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-46.png 1334w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u5206\u522b\u662f\u89e3\u51b3\u6570\u5b66\u95ee\u9898\uff0c\u68c0\u7d22\u589e\u5f3a(RAG)\uff0c\u51b3\u7b56\u5236\u5b9a\uff0c\u591aAgent\u7f16\u7a0b\uff0c\u52a8\u6001\u7fa4\u804a\uff0c\u4e0b\u56fd\u9645\u8c61\u68cb\u3002\u5177\u4f53\u53ef\u4ee5\u53c2\u89c1\u5b98\u7f51\u63cf\u8ff0\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u8bf4\u660e\u3002<\/p>\n\n\n\n<p><strong>\u5b9a\u4e49\u4e0e\u6982\u5ff5\u9610\u8ff0<\/strong><\/p>\n\n\n\n<p>AutoGen \u662f\u5fae\u8f6f\u63a8\u51fa\u7684\u4e00\u4e2a\u5f00\u6e90\u7684\u591a\u4ee3\u7406\u5bf9\u8bdd\u6846\u67b6\uff0c\u5176\u6838\u5fc3\u76ee\u7684\u662f\u52a9\u529b\u5f00\u53d1\u8005\u521b\u5efa\u57fa\u4e8e\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u7684\u667a\u80fd\u5e94\u7528 \u3002\u5728\u8fd9\u4e2a\u6846\u67b6\u4e2d\uff0c\u4ee3\u7406\uff08Agent\uff09\u662f\u5177\u6709\u7279\u5b9a\u529f\u80fd\u548c\u89d2\u8272\u7684\u5b9e\u4f53\uff0c\u5b83\u4eec\u80fd\u591f\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u8fdb\u884c\u4ea4\u6d41\u548c\u534f\u4f5c\uff0c\u5171\u540c\u5b8c\u6210\u590d\u6742\u7684\u4efb\u52a1\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u5c31\u50cf\u662f\u7ec4\u5efa\u4e86\u4e00\u4e2a\u865a\u62df\u7684\u56e2\u961f\uff0c\u56e2\u961f\u4e2d\u7684\u6bcf\u4e2a\u6210\u5458\uff08\u4ee3\u7406\uff09\u90fd\u6709\u81ea\u5df1\u7684\u4e13\u957f\uff0c\u901a\u8fc7\u76f8\u4e92\u6c9f\u901a\u548c\u914d\u5408\uff0c\u5b9e\u73b0\u8bf8\u5982\u95ee\u9898\u89e3\u7b54\u3001\u4efb\u52a1\u6267\u884c\u3001\u9879\u76ee\u7ba1\u7406\u7b49\u5404\u7c7b\u76ee\u6807\u3002\u6bd4\u5982\u5728\u4e00\u4e2a\u5185\u5bb9\u521b\u4f5c\u9879\u76ee\u4e2d\uff0c\u6709\u7684\u4ee3\u7406\u8d1f\u8d23\u6536\u96c6\u8d44\u6599\uff0c\u6709\u7684\u4ee3\u7406\u8d1f\u8d23\u64b0\u5199\u6587\u6848\uff0c\u8fd8\u6709\u7684\u4ee3\u7406\u8d1f\u8d23\u5ba1\u6838\u548c\u4fee\u6539\uff0c\u5b83\u4eec\u901a\u8fc7\u5bf9\u8bdd\u534f\u4f5c\uff0c\u6700\u7ec8\u4ea7\u51fa\u9ad8\u8d28\u91cf\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n<p><strong>\u6838\u5fc3\u7279\u6027\u5256\u6790<\/strong><\/p>\n\n\n\n<p><strong>\u591a\u4ee3\u7406\u5bf9\u8bdd<\/strong><\/p>\n\n\n\n<p>AutoGen \u5141\u8bb8\u5f00\u53d1\u8005\u521b\u5efa\u591a\u4e2a\u81ea\u4e3b\u4ee3\u7406\uff0c\u8fd9\u4e9b\u4ee3\u7406\u53ef\u4ee5\u5728\u4e00\u4e2a\u5bf9\u8bdd\u73af\u5883\u4e2d\u76f8\u4e92\u4ea4\u6d41\u3001\u534f\u4f5c\uff0c\u4ee5\u5b8c\u6210\u590d\u6742\u7684\u4efb\u52a1\u3002\u6bcf\u4e2a\u4ee3\u7406\u90fd\u6709\u5176\u72ec\u7279\u7684\u89d2\u8272\u548c\u529f\u80fd\uff0c\u5b83\u4eec\u901a\u8fc7\u53d1\u9001\u548c\u63a5\u6536\u6d88\u606f\u6765\u8fdb\u884c\u4e92\u52a8\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u6570\u636e\u5206\u6790\u9879\u76ee\u4e2d\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u6536\u96c6\u4ee3\u7406\uff0c\u8d1f\u8d23\u4ece\u5404\u79cd\u6570\u636e\u6e90\u83b7\u53d6\u6570\u636e\uff1b\u4e00\u4e2a\u6570\u636e\u5206\u6790\u4ee3\u7406\uff0c\u5bf9\u6536\u96c6\u5230\u7684\u6570\u636e\u8fdb\u884c\u5206\u6790\u548c\u5efa\u6a21\uff1b\u4ee5\u53ca\u4e00\u4e2a\u62a5\u544a\u751f\u6210\u4ee3\u7406\uff0c\u6839\u636e\u5206\u6790\u7ed3\u679c\u751f\u6210\u8be6\u7ec6\u7684\u62a5\u544a\u3002\u8fd9\u4e09\u4e2a\u4ee3\u7406\u901a\u8fc7\u591a\u8f6e\u5bf9\u8bdd\uff0c\u9010\u6b65\u63a8\u8fdb\u9879\u76ee\uff0c\u4ece\u6570\u636e\u83b7\u53d6\u5230\u5206\u6790\u518d\u5230\u62a5\u544a\u751f\u6210\uff0c\u6700\u7ec8\u5b8c\u6210\u6574\u4e2a\u6570\u636e\u5206\u6790\u4efb\u52a1\u3002\u8fd9\u79cd\u591a\u4ee3\u7406\u5bf9\u8bdd\u673a\u5236\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u4efb\u52a1\u5904\u7406\u7684\u6548\u7387\u548c\u7075\u6d3b\u6027\uff0c\u80fd\u591f\u5e94\u5bf9\u5404\u79cd\u590d\u6742\u7684\u4e1a\u52a1\u573a\u666f\u3002<\/p>\n\n\n\n<p><strong>\u7b80\u5316\u5de5\u4f5c\u6d41<\/strong><\/p>\n\n\n\n<p>\u8be5\u6846\u67b6\u7b80\u5316\u4e86 LLM \u5de5\u4f5c\u6d41\u7684\u7f16\u6392\u3001\u81ea\u52a8\u5316\u548c\u4f18\u5316\u8fc7\u7a0b\u3002\u4ee5\u5f80\uff0c\u5f00\u53d1\u8005\u5728\u4f7f\u7528 LLM \u6784\u5efa\u5e94\u7528\u65f6\uff0c\u9700\u8981\u624b\u52a8\u5904\u7406\u5927\u91cf\u7e41\u7410\u7684\u6d41\u7a0b\uff0c\u5982\u6a21\u578b\u8c03\u7528\u3001\u53c2\u6570\u8bbe\u7f6e\u3001\u5bf9\u8bdd\u7ba1\u7406\u7b49\u3002\u800c AutoGen \u901a\u8fc7\u63d0\u4f9b\u4e00\u7cfb\u5217\u7684\u5de5\u5177\u548c\u63a5\u53e3\uff0c\u5c06\u8fd9\u4e9b\u590d\u6742\u7684\u64cd\u4f5c\u8fdb\u884c\u4e86\u5c01\u88c5\u548c\u81ea\u52a8\u5316\u5904\u7406\u3002\u5f00\u53d1\u8005\u53ea\u9700\u5173\u6ce8\u4e1a\u52a1\u903b\u8f91\u548c\u4efb\u52a1\u9700\u6c42\uff0c\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u548c\u4ee3\u7801\u7f16\u5199\uff0c\u5c31\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u6548\u7684 LLM \u5e94\u7528\u5f00\u53d1\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a<a href=\"https:\/\/cloud.tencent.com\/product\/cscbot?from_column=20065&amp;from=20065\">\u667a\u80fd\u5ba2\u670d\u7cfb\u7edf<\/a>\u4e2d\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5229\u7528 AutoGen \u5feb\u901f\u642d\u5efa\u8d77\u5bf9\u8bdd\u6d41\u7a0b\uff0c\u4f7f\u5ba2\u670d\u4ee3\u7406\u80fd\u591f\u81ea\u52a8\u8bc6\u522b\u7528\u6237\u95ee\u9898\uff0c\u5e76\u8c03\u7528\u5408\u9002\u7684\u6a21\u578b\u8fdb\u884c\u56de\u7b54\uff0c\u65e0\u9700\u624b\u52a8\u7f16\u5199\u590d\u6742\u7684\u5bf9\u8bdd\u7ba1\u7406\u903b\u8f91\u3002\u8fd9\u4e0d\u4ec5\u51cf\u5c11\u4e86\u5f00\u53d1\u65f6\u95f4\u548c\u5de5\u4f5c\u91cf\uff0c\u8fd8\u63d0\u9ad8\u4e86\u5e94\u7528\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n\n\n\n<p><strong>\u6a21\u5757\u5316\u8bbe\u8ba1<\/strong><\/p>\n\n\n\n<p>AutoGen \u91c7\u7528\u6a21\u5757\u5316\u7684\u67b6\u6784\u8bbe\u8ba1\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u5730\u521b\u5efa\u81ea\u5b9a\u4e49\u4ee3\u7406\uff0c\u5e76\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u7075\u6d3b\u7ec4\u5408\u3002\u6bcf\u4e2a\u6a21\u5757\u90fd\u5177\u6709\u72ec\u7acb\u7684\u529f\u80fd\uff0c\u5982\u4ee3\u7406\u6a21\u5757\u8d1f\u8d23\u4e0e\u5176\u4ed6\u4ee3\u7406\u8fdb\u884c\u5bf9\u8bdd\u548c\u4ea4\u4e92\uff0c\u6a21\u578b\u6a21\u5757\u8d1f\u8d23\u63d0\u4f9b\u8bed\u8a00\u6a21\u578b\u652f\u6301\uff0c\u5de5\u5177\u6a21\u5757\u8d1f\u8d23\u8c03\u7528\u5916\u90e8\u5de5\u5177\u7b49\u3002\u8fd9\u79cd\u6a21\u5757\u5316\u8bbe\u8ba1\u4f7f\u5f97\u6846\u67b6\u5177\u6709\u5f88\u9ad8\u7684\u53ef\u6269\u5c55\u6027\u548c\u53ef\u5b9a\u5236\u6027\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u4e1a\u52a1\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684\u6a21\u5757\u8fdb\u884c\u7ec4\u5408\uff0c\u6216\u8005\u5f00\u53d1\u65b0\u7684\u6a21\u5757\u6765\u6ee1\u8db3\u7279\u5b9a\u7684\u529f\u80fd\u8981\u6c42\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u7535\u5546\u667a\u80fd\u63a8\u8350\u7cfb\u7edf\u4e2d\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u57fa\u4e8e AutoGen \u7684\u6a21\u5757\u5316\u8bbe\u8ba1\uff0c\u521b\u5efa\u4e00\u4e2a\u5546\u54c1\u63a8\u8350\u4ee3\u7406\uff0c\u8be5\u4ee3\u7406\u53ef\u4ee5\u7ed3\u5408\u7528\u6237\u884c\u4e3a\u6570\u636e\u3001\u5546\u54c1\u4fe1\u606f\u7b49\uff0c\u5229\u7528\u8bed\u8a00\u6a21\u578b\u8fdb\u884c\u5206\u6790\u548c\u63a8\u7406\uff0c\u6700\u7ec8\u4e3a\u7528\u6237\u63d0\u4f9b\u4e2a\u6027\u5316\u7684\u5546\u54c1\u63a8\u8350\u3002\u540c\u65f6\uff0c\u5f00\u53d1\u8005\u8fd8\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\uff0c\u5bf9\u4ee3\u7406\u7684\u529f\u80fd\u8fdb\u884c\u6269\u5c55\u548c\u4f18\u5316\uff0c\u5982\u589e\u52a0\u5b9e\u65f6\u6570\u636e\u66f4\u65b0\u529f\u80fd\u3001\u4f18\u5316\u63a8\u8350\u7b97\u6cd5\u7b49\u3002<\/p>\n\n\n\n<p><strong>\u4e0e\u5176\u4ed6\u6846\u67b6\u5bf9\u6bd4\u4f18\u52bf<\/strong><\/p>\n\n\n\n<p>\u4e0e\u5176\u4ed6\u7c7b\u4f3c\u6846\u67b6\u5982 LangGraph\u3001CrewAI \u76f8\u6bd4\uff0cAutoGen \u5177\u6709\u663e\u8457\u7684\u4f18\u52bf\u3002\u5728\u7075\u6d3b\u6027\u65b9\u9762\uff0cAutoGen \u7684\u591a\u4ee3\u7406\u5bf9\u8bdd\u6a21\u5f0f\u548c\u6a21\u5757\u5316\u8bbe\u8ba1\u4f7f\u5176\u80fd\u591f\u9002\u5e94\u5404\u79cd\u590d\u6742\u7684\u4efb\u52a1\u548c\u573a\u666f\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u81ea\u7531\u7ec4\u5408\u548c\u5b9a\u5236\u4ee3\u7406 \u3002\u800c LangGraph \u867d\u7136\u5728\u6784\u5efa\u6709\u72b6\u6001\u7684\u591a\u4ee3\u7406\u5e94\u7528\u65b9\u9762\u6709\u4e00\u5b9a\u4f18\u52bf\uff0c\u4f46\u5728\u4ee3\u7406\u7684\u7075\u6d3b\u6027\u548c\u81ea\u5b9a\u4e49\u7a0b\u5ea6\u4e0a\u76f8\u5bf9\u8f83\u5f31\u3002CrewAI \u5219\u66f4\u4fa7\u91cd\u4e8e\u6a21\u62df\u771f\u5b9e\u56e2\u961f\u534f\u4f5c\uff0c\u5728\u4efb\u52a1\u5904\u7406\u7684\u7075\u6d3b\u6027\u4e0a\u4e0d\u5982 AutoGen\u3002\u5728\u793e\u533a\u652f\u6301\u65b9\u9762\uff0c\u5fae\u8f6f\u5f3a\u5927\u7684\u6280\u672f\u5b9e\u529b\u548c\u5e7f\u6cdb\u7684\u7528\u6237\u57fa\u7840\u4e3a AutoGen \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u793e\u533a\u8d44\u6e90\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u793e\u533a\u4e2d\u83b7\u53d6\u5230\u5927\u91cf\u7684\u6587\u6863\u3001\u6559\u7a0b\u3001\u4ee3\u7801\u793a\u4f8b\u4ee5\u53ca\u6280\u672f\u652f\u6301\uff0c\u8fd9\u5bf9\u4e8e\u5f00\u53d1\u8005\u5feb\u901f\u4e0a\u624b\u548c\u89e3\u51b3\u95ee\u9898\u975e\u5e38\u6709\u5e2e\u52a9 \u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cLangGraph \u548c CrewAI \u7684\u793e\u533a\u89c4\u6a21\u76f8\u5bf9\u8f83\u5c0f\uff0c\u8d44\u6e90\u76f8\u5bf9\u6709\u9650\uff0c\u5f00\u53d1\u8005\u5728\u9047\u5230\u95ee\u9898\u65f6\u53ef\u80fd\u8f83\u96be\u5feb\u901f\u627e\u5230\u89e3\u51b3\u65b9\u6848\u3002\u6b64\u5916\uff0cAutoGen \u5728\u4e0e LLM \u7684\u96c6\u6210\u65b9\u9762\u4e5f\u8868\u73b0\u51fa\u8272\uff0c\u80fd\u591f\u66f4\u597d\u5730\u53d1\u6325 LLM \u7684\u5f3a\u5927\u529f\u80fd\uff0c\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u66f4\u9ad8\u6548\u3001\u66f4\u667a\u80fd\u7684\u5f00\u53d1\u4f53\u9a8c\u3002<\/p>\n\n\n\n<p>\u3000\u3000<\/p>\n\n\n\n<p><strong>AutoGen \u6846\u67b6\u57fa\u7840\u73af\u5883\u5b89\u88c5<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48-1024x577.png\" alt=\"\" class=\"wp-image-19107\" style=\"width:504px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48-1024x577.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48-300x169.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48-768x433.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48-1536x865.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48-830x468.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48-230x130.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48-350x197.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48-480x270.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-48.png 1626w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><strong>\u51c6\u5907\u5de5\u4f5c<\/strong><\/p>\n\n\n\n<p>\u5728\u5f00\u59cb\u5b89\u88c5 AutoGen \u6846\u67b6\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u6ee1\u8db3\u4ee5\u4e0b\u57fa\u672c\u8981\u6c42\uff1a\u64cd\u4f5c\u7cfb\u7edf\u65b9\u9762\uff0c\u5efa\u8bae\u4f7f\u7528 Windows 10 \u53ca\u4ee5\u4e0a\u7248\u672c\u3001Linux\uff08\u5982 Ubuntu 18.04 \u53ca\u4ee5\u4e0a\uff09\u6216 macOS 10.15 \u53ca\u4ee5\u4e0a\u7248\u672c \u3002\u8fd9\u4e9b\u64cd\u4f5c\u7cfb\u7edf\u80fd\u591f\u4e3a\u540e\u7eed\u7684\u8f6f\u4ef6\u5b89\u88c5\u548c\u8fd0\u884c\u63d0\u4f9b\u7a33\u5b9a\u7684\u73af\u5883\u652f\u6301\u3002\u786c\u4ef6\u65b9\u9762\uff0c\u786e\u4fdd\u8ba1\u7b97\u673a\u5177\u5907\u81f3\u5c11 8GB \u7684\u5185\u5b58\uff0c\u4ee5\u4fdd\u8bc1\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u4ee5\u53ca\u540e\u7eed\u4f7f\u7528 AutoGen \u6846\u67b6\u65f6\uff0c\u7cfb\u7edf\u80fd\u591f\u6d41\u7545\u8fd0\u884c\u3002\u5982\u679c\u4f60\u7684\u8ba1\u7b97\u673a\u5185\u5b58\u8f83\u5c0f\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5b89\u88c5\u8fc7\u7a0b\u7f13\u6162\u751a\u81f3\u5931\u8d25\uff0c\u5728\u8fd0\u884c\u76f8\u5173\u5e94\u7528\u65f6\u4e5f\u53ef\u80fd\u51fa\u73b0\u5361\u987f\u73b0\u8c61\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u8981\u6709\u4e00\u5b9a\u7684\u78c1\u76d8\u7a7a\u95f4\uff0c\u81f3\u5c11\u9884\u7559 10GB \u4ee5\u4e0a\u7684\u53ef\u7528\u7a7a\u95f4\uff0c\u7528\u4e8e\u5b58\u50a8 Python\u3001AutoGen \u53ca\u5176\u4f9d\u8d56\u5e93\u7b49\u76f8\u5173\u6587\u4ef6\u3002\u7f51\u7edc\u8fde\u63a5\u4e5f\u81f3\u5173\u91cd\u8981\uff0c\u9700\u4fdd\u8bc1\u7f51\u7edc\u7a33\u5b9a\u4e14\u901f\u5ea6\u8f83\u5feb\uff0c\u56e0\u4e3a\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u8981\u4ece\u4e92\u8054\u7f51\u4e0b\u8f7d\u5927\u91cf\u7684\u8f6f\u4ef6\u5305\u548c\u4f9d\u8d56\u9879\u3002\u82e5\u7f51\u7edc\u4e0d\u7a33\u5b9a\u6216\u901f\u5ea6\u8fc7\u6162\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e0b\u8f7d\u4e2d\u65ad\u6216\u5b89\u88c5\u65f6\u95f4\u8fc7\u957f\u3002<\/p>\n\n\n\n<p><strong>Python \u73af\u5883\u642d\u5efa<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"505\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72-1024x505.png\" alt=\"\" class=\"wp-image-19139\" style=\"width:440px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72-1024x505.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72-300x148.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72-768x378.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72-1536x757.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72-830x409.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72-230x113.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72-350x172.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72-480x237.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-72.png 1786w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><strong>\u5b89\u88c5 Python<\/strong><\/p>\n\n\n\n<p>AutoGen \u6846\u67b6\u9700\u8981 Python 3.10 \u53ca\u4ee5\u4e0a\u7248\u672c\u7684\u652f\u6301\u3002\u9996\u5148\uff0c\u8bbf\u95ee Python \u5b98\u65b9\u7f51\u7ad9\uff08<a class=\"\" href=\"https:\/\/cloud.tencent.com\/developer\/tools\/blog-entry?target=https%3A%2F%2Fwww.python.org%2Fdownloads%2F&amp;objectId=2491702&amp;objectType=1&amp;contentType=undefined\">Download Python | Python.org<\/a>\uff09\uff0c\u5728\u4e0b\u8f7d\u9875\u9762\u4e2d\uff0c\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u5bf9\u5e94\u7684 Python \u5b89\u88c5\u5305\u3002\u4f8b\u5982\uff0c\u82e5\u4f7f\u7528 Windows \u7cfb\u7edf\uff0c\u70b9\u51fb\u4e0b\u8f7d Windows x86-64 executable installer\uff0864 \u4f4d\u7cfb\u7edf\uff09\u6216 Windows x86 executable installer\uff0832 \u4f4d\u7cfb\u7edf\uff09\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u5305\u8fdb\u884c\u5b89\u88c5\u3002\u5728\u5b89\u88c5\u5411\u5bfc\u4e2d\uff0c\u52a1\u5fc5\u52fe\u9009 \u201cAdd Python to PATH\u201d \u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5c06 Python \u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u65b9\u4fbf\u540e\u7eed\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8c03\u7528 Python \u547d\u4ee4\u3002\u63a5\u7740\uff0c\u9009\u62e9 \u201cCustomize installation\u201d\uff08\u81ea\u5b9a\u4e49\u5b89\u88c5\uff09\uff0c\u5728\u63a5\u4e0b\u6765\u7684\u5b89\u88c5\u9009\u9879\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u4e2a\u4eba\u9700\u6c42\u9009\u62e9\u5b89\u88c5\u7684\u7ec4\u4ef6\uff0c\u4e00\u822c\u4fdd\u6301\u9ed8\u8ba4\u8bbe\u7f6e\u5373\u53ef\uff0c\u7136\u540e\u70b9\u51fb \u201cNext\u201d\u3002\u5728\u5b89\u88c5\u8def\u5f84\u9009\u62e9\u754c\u9762\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u9ed8\u8ba4\u8def\u5f84\uff0c\u4e5f\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u559c\u597d\u66f4\u6539\u5b89\u88c5\u8def\u5f84\uff0c\u5b8c\u6210\u8bbe\u7f6e\u540e\u70b9\u51fb \u201cInstall\u201d \u5f00\u59cb\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u5de5\u5177\uff08Windows \u7cfb\u7edf\u4e3a CMD \u6216 PowerShell\uff0cLinux \u548c macOS \u7cfb\u7edf\u4e3a\u7ec8\u7aef\uff09\uff0c\u8f93\u5165 \u201cpython &#8211;version\u201d\uff0c\u82e5\u663e\u793a\u51fa\u5b89\u88c5\u7684 Python \u7248\u672c\u53f7\uff0c\u5982 \u201cPython 3.10.x\u201d\uff0c\u5219\u8bf4\u660e Python \u5b89\u88c5\u6210\u529f \u3002<\/p>\n\n\n\n<p><strong>\u5b89\u88c5\u865a\u62df\u73af\u5883<\/strong><\/p>\n\n\n\n<p>\u4e3a\u4e86\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u4f9d\u8d56\u51b2\u7a81\uff0c\u5efa\u8bae\u4f7f\u7528\u865a\u62df\u73af\u5883\u6765\u5b89\u88c5 AutoGen \u53ca\u5176\u76f8\u5173\u4f9d\u8d56\u3002Python \u81ea\u5e26\u7684 venv \u6a21\u5757\u6216 conda \u5de5\u5177\u90fd\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u865a\u62df\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u9009\u62e9\u4f7f\u7528 venv \u6a21\u5757\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8fdb\u5165\u4f60\u5e0c\u671b\u521b\u5efa\u865a\u62df\u73af\u5883\u7684\u76ee\u5f55\uff0c\u4f8b\u5982 \u201ccd C:\\Projects\u201d\u3002\u7136\u540e\u6267\u884c\u547d\u4ee4 \u201cpython -m venv myenv\u201d\uff0c\u5176\u4e2d \u201cmyenv\u201d \u662f\u4f60\u4e3a\u865a\u62df\u73af\u5883\u6307\u5b9a\u7684\u540d\u79f0\uff0c\u53ef\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u3002\u8fd9\u5c06\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a \u201cmyenv\u201d \u7684\u865a\u62df\u73af\u5883\u3002\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u5728 Windows \u7cfb\u7edf\u4e2d\uff0c\u8fdb\u5165\u865a\u62df\u73af\u5883\u7684 Scripts \u76ee\u5f55\uff0c\u6267\u884c \u201cmyenv\\Scripts\\activate.bat\u201d \u6765\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1b\u5728 Linux \u6216 macOS \u7cfb\u7edf\u4e2d\uff0c\u6267\u884c \u201csource myenv\/bin\/activate\u201d \u6fc0\u6d3b\u865a\u62df\u73af\u5883\u3002\u6fc0\u6d3b\u540e\uff0c\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u7684\u540d\u79f0\uff0c\u4f8b\u5982 \u201c(myenv) C:\\Projects\u201d\uff0c\u8868\u793a\u5df2\u6210\u529f\u8fdb\u5165\u865a\u62df\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u521b\u5efa\u4e00\u4e2aPython\u865a\u62df\u73af\u5883\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python -m venv myenv<\/pre>\n\n\n\n<p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">myenv\\Scripts\\activate<\/pre>\n\n\n\n<p>\u82e5\u4f7f\u7528 conda \u5de5\u5177\u521b\u5efa\u865a\u62df\u73af\u5883\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86 Anaconda \u6216 Miniconda\u3002\u6253\u5f00 Anaconda Prompt\uff08Windows \u7cfb\u7edf\uff09\u6216\u7ec8\u7aef\uff08Linux \u548c macOS \u7cfb\u7edf\uff09\uff0c\u6267\u884c\u547d\u4ee4 \u201cconda create -n myenv python=3.10\u201d\uff0c\u8fd9\u91cc\u540c\u6837\u4ee5 \u201cmyenv\u201d \u4f5c\u4e3a\u865a\u62df\u73af\u5883\u7684\u540d\u79f0\uff0c\u4f60\u53ef\u4ee5\u6309\u9700\u4fee\u6539\u3002\u8be5\u547d\u4ee4\u4f1a\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a \u201cmyenv\u201d \u4e14\u57fa\u4e8e Python 3.10 \u7248\u672c\u7684\u865a\u62df\u73af\u5883\u3002\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u6267\u884c \u201cconda activate myenv\u201d \u6fc0\u6d3b\u865a\u62df\u73af\u5883\u3002\u5f53\u4e0d\u518d\u4f7f\u7528\u865a\u62df\u73af\u5883\u65f6\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u6267\u884c \u201cdeactivate\u201d \u547d\u4ee4\u9000\u51fa\u865a\u62df\u73af\u5883\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"630\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51-1024x630.png\" alt=\"\" class=\"wp-image-19110\" style=\"width:500px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51-1024x630.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51-300x184.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51-768x472.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51-1536x944.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51-830x510.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51-230x141.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51-350x215.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51-480x295.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-51.png 1610w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><strong>\u5b89\u88c5 AutoGen<\/strong><\/p>\n\n\n\n<p>\u6211\u4eec\u76f4\u63a5\u4f7f\u7528pip \u5b89\u88c5\u5373\u53ef<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install pyautogen<\/pre>\n\n\n\n<p>\u5728\u6fc0\u6d3b\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f7f\u7528 pip \u547d\u4ee4\u6765\u5b89\u88c5 AutoGen\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 \u201cpip install autogen\u201d\uff0cpip \u4f1a\u81ea\u52a8\u4ece Python Package Index\uff08PyPI\uff09\u4e0b\u8f7d\u5e76\u5b89\u88c5 AutoGen \u53ca\u5176\u9ed8\u8ba4\u7684\u4f9d\u8d56\u9879\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u8bf7\u786e\u4fdd\u7f51\u7edc\u8fde\u63a5\u7a33\u5b9a\uff0c\u4ee5\u514d\u4e0b\u8f7d\u4e2d\u65ad\u5bfc\u81f4\u5b89\u88c5\u5931\u8d25\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u7f51\u7edc\u8fde\u63a5\u8f83\u6162\uff0c\u4e0b\u8f7d\u65f6\u95f4\u53ef\u80fd\u4f1a\u8f83\u957f\uff0c\u751a\u81f3\u51fa\u73b0\u8d85\u65f6\u9519\u8bef\u3002\u6b64\u65f6\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u66f4\u6362\u7f51\u7edc\u73af\u5883\uff0c\u6216\u8005\u4f7f\u7528\u56fd\u5185\u7684\u955c\u50cf\u6e90\u6765\u52a0\u901f\u4e0b\u8f7d\u3002<\/p>\n\n\n\n<p><strong>\u5b89\u88c5\u76f8\u5173\u4f9d\u8d56<\/strong><\/p>\n\n\n\n<p>\u9664\u4e86 AutoGen \u672c\u8eab\uff0c\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\uff0c\u53ef\u80fd\u8fd8\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u5176\u4ed6\u7684\u4f9d\u8d56\u5e93\u3002\u4f8b\u5982\uff0c\u5982\u679c\u8981\u4f7f\u7528 OpenAI \u7684\u8bed\u8a00\u6a21\u578b\uff0c\u9700\u8981\u5b89\u88c5 \u201copenai\u201d \u5e93\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u6267\u884c \u201cpip install openai\u201d \u5373\u53ef\u5b8c\u6210\u5b89\u88c5 \u3002\u82e5\u6d89\u53ca\u5230\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u4efb\u52a1\uff0c\u53ef\u80fd\u9700\u8981\u5b89\u88c5 \u201cpandas\u201d\u201cnumpy\u201d \u7b49\u5e93\uff0c\u5206\u522b\u6267\u884c \u201cpip install pandas\u201d \u548c \u201cpip install numpy\u201d \u8fdb\u884c\u5b89\u88c5\u3002\u5982\u679c\u8981\u8fdb\u884c\u7ed8\u56fe\u5c55\u793a\uff0c\u5982\u7ed8\u5236\u6570\u636e\u53ef\u89c6\u5316\u56fe\u8868\uff0c\u201cmatplotlib\u201d \u5e93\u662f\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u4f7f\u7528 \u201cpip install matplotlib\u201d \u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u8fd9\u4e9b\u4f9d\u8d56\u5e93\u7684\u65b9\u6cd5\u4e0e\u5b89\u88c5 AutoGen \u7c7b\u4f3c\uff0c\u90fd\u662f\u901a\u8fc7 pip \u547d\u4ee4\u5728\u865a\u62df\u73af\u5883\u4e2d\u8fdb\u884c\u5b89\u88c5\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u540c\u6837\u8981\u6ce8\u610f\u7f51\u7edc\u8fde\u63a5\u60c5\u51b5\u548c\u53ef\u80fd\u51fa\u73b0\u7684\u4f9d\u8d56\u9879\u51b2\u7a81\u95ee\u9898\uff0c\u6309\u7167\u524d\u9762\u63d0\u5230\u7684\u65b9\u6cd5\u8fdb\u884c\u76f8\u5e94\u5904\u7406\uff0c\u4ee5\u786e\u4fdd\u6240\u6709\u4f9d\u8d56\u5e93\u90fd\u80fd\u6210\u529f\u5b89\u88c5\uff0c\u4e3a\u540e\u7eed\u4f7f\u7528 AutoGen \u6846\u67b6\u8fdb\u884c\u5f00\u53d1\u5de5\u4f5c\u505a\u597d\u5145\u5206\u51c6\u5907\u3002<\/p>\n\n\n\n<p><strong>AutoGen\u7684\u53ef\u89c6\u5316\u754c\u9762AutoGen Studio<\/strong><\/p>\n\n\n\n<p>AutoGen\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u754c\u9762\uff0c\u8ba9\u4f60\u65e0\u9700\u7f16\u7801\u4e5f\u53ef\u4ee5\u8fdb\u884c\u6784\u5efa\u591aAgent\u7cfb\u7edf\u3002\u6309\u7167\u5b98\u65b9\u7684\u8bf4\u660e\u5c31\u53ef\u4ee5\u5b89\u88c5\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"680\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-52-1024x680.png\" alt=\"\" class=\"wp-image-19112\" style=\"width:494px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-52-1024x680.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-52-300x199.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-52-768x510.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-52-830x551.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-52-230x153.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-52-350x232.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-52-480x319.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-52.png 1310w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u3000<\/p>\n\n\n\n<p><strong>AutoGen \u6846\u67b6\u7684\u5e94\u7528\u573a\u666f<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>\u8f6f\u4ef6\u5f00\u53d1<\/strong><\/p>\n\n\n\n<p>\u5728\u8f6f\u4ef6\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0cAutoGen \u6846\u67b6\u5c55\u73b0\u51fa\u4e86\u5f3a\u5927\u7684\u52a9\u529b\u4f5c\u7528\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a Web \u5e94\u7528\u5f00\u53d1\u9879\u76ee\u4e2d\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5229\u7528 AutoGen \u521b\u5efa\u4e0d\u540c\u7684\u4ee3\u7406 \u3002\u521b\u5efa\u4e00\u4e2a\u9700\u6c42\u5206\u6790\u4ee3\u7406\uff0c\u8be5\u4ee3\u7406\u8d1f\u8d23\u4e0e\u4ea7\u54c1\u7ecf\u7406\u6c9f\u901a\uff0c\u6df1\u5165\u7406\u89e3\u9879\u76ee\u9700\u6c42\uff0c\u5e76\u5c06\u9700\u6c42\u8f6c\u5316\u4e3a\u8be6\u7ec6\u7684\u529f\u80fd\u89c4\u683c\u8bf4\u660e\u3002\u5f53\u4ea7\u54c1\u7ecf\u7406\u63d0\u51fa \u201c\u5f00\u53d1\u4e00\u4e2a\u5177\u6709\u7528\u6237\u6ce8\u518c\u3001\u767b\u5f55\u3001\u5546\u54c1\u6d4f\u89c8\u548c\u8d2d\u4e70\u529f\u80fd\u7684\u7535\u5546 Web \u5e94\u7528\u201d \u7684\u9700\u6c42\u65f6\uff0c\u9700\u6c42\u5206\u6790\u4ee3\u7406\u80fd\u591f\u4e0e\u4ea7\u54c1\u7ecf\u7406\u8fdb\u884c\u591a\u8f6e\u5bf9\u8bdd\uff0c\u660e\u786e\u8bf8\u5982\u7528\u6237\u6ce8\u518c\u9700\u8981\u586b\u5199\u54ea\u4e9b\u4fe1\u606f\u3001\u767b\u5f55\u7684\u9a8c\u8bc1\u65b9\u5f0f\u3001\u5546\u54c1\u6d4f\u89c8\u7684\u5c55\u793a\u5f62\u5f0f\u4ee5\u53ca\u8d2d\u4e70\u6d41\u7a0b\u4e2d\u7684\u652f\u4ed8\u65b9\u5f0f\u7b49\u7ec6\u8282\u3002\u63a5\u7740\uff0c\u4ee3\u7801\u751f\u6210\u4ee3\u7406\u767b\u573a\uff0c\u5b83\u6839\u636e\u9700\u6c42\u5206\u6790\u4ee3\u7406\u63d0\u4f9b\u7684\u529f\u80fd\u89c4\u683c\u8bf4\u660e\uff0c\u8c03\u7528\u5408\u9002\u7684\u8bed\u8a00\u6a21\u578b\uff0c\u81ea\u52a8\u751f\u6210\u524d\u7aef\u548c\u540e\u7aef\u7684\u4ee3\u7801\u6846\u67b6\u3002\u5bf9\u4e8e\u524d\u7aef\u90e8\u5206\uff0c\u53ef\u80fd\u4f1a\u751f\u6210\u5305\u542b HTML\u3001CSS \u548c JavaScript \u7684\u4ee3\u7801\uff0c\u6784\u5efa\u51fa\u7528\u6237\u754c\u9762\u7684\u57fa\u672c\u7ed3\u6784\u548c\u4ea4\u4e92\u903b\u8f91\uff1b\u5bf9\u4e8e\u540e\u7aef\uff0c\u53ef\u80fd\u4f1a\u751f\u6210\u57fa\u4e8e Python Flask \u6216 Django \u6846\u67b6\u7684\u4ee3\u7801\uff0c\u642d\u5efa\u8d77\u670d\u52a1\u5668\u7aef\u7684\u8def\u7531\u3001\u6570\u636e\u5e93\u8fde\u63a5\u548c\u4e1a\u52a1\u903b\u8f91\u5904\u7406\u6a21\u5757\u3002\u6d4b\u8bd5\u4ee3\u7406\u4e5f\u4e0d\u53ef\u6216\u7f3a\uff0c\u5b83\u53ef\u4ee5\u6839\u636e\u4ee3\u7801\u751f\u6210\u4ee3\u7406\u751f\u6210\u7684\u4ee3\u7801\uff0c\u81ea\u52a8\u751f\u6210\u6d4b\u8bd5\u7528\u4f8b\uff0c\u5e76\u6267\u884c\u6d4b\u8bd5\uff0c\u68c0\u67e5\u4ee3\u7801\u662f\u5426\u5b58\u5728\u6f0f\u6d1e\u548c\u9519\u8bef\u3002\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u5404\u4e2a\u4ee3\u7406\u4e4b\u95f4\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u5bf9\u8bdd\u8fdb\u884c\u534f\u4f5c\uff0c\u5927\u5927\u63d0\u9ad8\u4e86\u8f6f\u4ef6\u5f00\u53d1\u7684\u6548\u7387\u548c\u8d28\u91cf\uff0c\u51cf\u5c11\u4e86\u4eba\u5de5\u7f16\u5199\u4ee3\u7801\u7684\u5de5\u4f5c\u91cf\u548c\u51fa\u9519\u7684\u53ef\u80fd\u6027\u3002<\/p>\n\n\n\n<p><strong>\u6570\u636e\u5206\u6790<\/strong><\/p>\n\n\n\n<p>\u5728\u6570\u636e\u5206\u6790\u9886\u57df\uff0cAutoGen \u6846\u67b6\u540c\u6837\u80fd\u53d1\u6325\u91cd\u8981\u4f5c\u7528\u3002\u4ee5\u4e00\u4e2a\u5e02\u573a\u8c03\u7814\u6570\u636e\u5206\u6790\u9879\u76ee\u4e3a\u4f8b\uff0c\u6570\u636e\u6536\u96c6\u4ee3\u7406\u53ef\u4ee5\u4ece\u5404\u79cd\u6570\u636e\u6e90\uff0c\u5982\u6570\u636e\u5e93\u3001\u7f51\u9875\u3001\u6587\u4ef6\u7b49\uff0c\u6536\u96c6\u76f8\u5173\u7684\u6570\u636e\u3002\u5b83\u80fd\u591f\u4e0e\u6570\u636e\u6e90\u8fdb\u884c\u4ea4\u4e92\uff0c\u6839\u636e\u8bbe\u5b9a\u7684\u89c4\u5219\u548c\u6761\u4ef6\uff0c\u7b5b\u9009\u5e76\u63d0\u53d6\u51fa\u7b26\u5408\u9879\u76ee\u9700\u6c42\u7684\u6570\u636e\u3002\u4f8b\u5982\uff0c\u4ece\u516c\u53f8\u7684\u9500\u552e\u6570\u636e\u5e93\u4e2d\u63d0\u53d6\u8fc7\u53bb\u4e00\u5e74\u7684\u9500\u552e\u6570\u636e\uff0c\u5305\u62ec\u4ea7\u54c1\u540d\u79f0\u3001\u9500\u552e\u6570\u91cf\u3001\u9500\u552e\u91d1\u989d\u3001\u9500\u552e\u5730\u533a\u7b49\u5b57\u6bb5\u3002\u6570\u636e\u6e05\u6d17\u4ee3\u7406\u8d1f\u8d23\u5bf9\u6536\u96c6\u5230\u7684\u6570\u636e\u8fdb\u884c\u6e05\u6d17\u548c\u9884\u5904\u7406\uff0c\u53bb\u9664\u91cd\u590d\u6570\u636e\u3001\u5904\u7406\u7f3a\u5931\u503c\u548c\u5f02\u5e38\u503c\u3002\u6bd4\u5982\uff0c\u5f53\u53d1\u73b0\u9500\u552e\u91d1\u989d\u5b57\u6bb5\u4e2d\u5b58\u5728\u4e00\u4e9b\u660e\u663e\u4e0d\u5408\u7406\u7684\u8d1f\u6570\u65f6\uff0c\u6570\u636e\u6e05\u6d17\u4ee3\u7406\u53ef\u4ee5\u901a\u8fc7\u4e0e\u5176\u4ed6\u4ee3\u7406\u6216\u5f00\u53d1\u8005\u7684\u5bf9\u8bdd\uff0c\u786e\u5b9a\u8fd9\u4e9b\u6570\u636e\u662f\u9519\u8bef\u5f55\u5165\u8fd8\u662f\u6709\u7279\u6b8a\u539f\u56e0\uff0c\u7136\u540e\u91c7\u53d6\u76f8\u5e94\u7684\u5904\u7406\u63aa\u65bd\uff0c\u5982\u5220\u9664\u9519\u8bef\u6570\u636e\u6216\u8fdb\u884c\u5408\u7406\u4fee\u6b63\u3002\u6570\u636e\u5206\u6790\u4ee3\u7406\u5219\u5229\u7528\u5404\u79cd\u6570\u636e\u5206\u6790\u5de5\u5177\u548c\u7b97\u6cd5\uff0c\u5bf9\u6e05\u6d17\u540e\u7684\u6570\u636e\u8fdb\u884c\u6df1\u5165\u5206\u6790\u3002\u5b83\u53ef\u4ee5\u6839\u636e\u6570\u636e\u7279\u70b9\u548c\u5206\u6790\u76ee\u6807\uff0c\u9009\u62e9\u5408\u9002\u7684\u5206\u6790\u65b9\u6cd5\uff0c\u5982\u7edf\u8ba1\u5206\u6790\u3001\u76f8\u5173\u6027\u5206\u6790\u3001\u805a\u7c7b\u5206\u6790\u7b49\u3002\u4f8b\u5982\uff0c\u901a\u8fc7\u76f8\u5173\u6027\u5206\u6790\uff0c\u627e\u51fa\u9500\u552e\u6570\u91cf\u4e0e\u9500\u552e\u5730\u533a\u4e4b\u95f4\u662f\u5426\u5b58\u5728\u67d0\u79cd\u5173\u8054\uff0c\u4e3a\u5e02\u573a\u7b56\u7565\u7684\u5236\u5b9a\u63d0\u4f9b\u4f9d\u636e\u3002\u6700\u540e\uff0c\u62a5\u544a\u751f\u6210\u4ee3\u7406\u6839\u636e\u6570\u636e\u5206\u6790\u4ee3\u7406\u7684\u5206\u6790\u7ed3\u679c\uff0c\u751f\u6210\u8be6\u7ec6\u7684\u6570\u636e\u5206\u6790\u62a5\u544a\uff0c\u4ee5\u6e05\u6670\u6613\u61c2\u7684\u65b9\u5f0f\u5448\u73b0\u6570\u636e\u6d1e\u5bdf\u548c\u7ed3\u8bba\u3002<\/p>\n\n\n\n<p><strong>\u667a\u80fd\u5ba2\u670d<\/strong><\/p>\n\n\n\n<p>AutoGen \u6846\u67b6\u5728\u6784\u5efa\u667a\u80fd\u5ba2\u670d\u7cfb\u7edf\u65b9\u9762\u5177\u6709\u663e\u8457\u4f18\u52bf\u3002\u5728\u4e00\u4e2a\u7535\u5546\u667a\u80fd\u5ba2\u670d\u573a\u666f\u4e2d\uff0c\u5f53\u7528\u6237\u5411\u5ba2\u670d\u54a8\u8be2\u95ee\u9898\u65f6\uff0c\u5982 \u201c\u6211\u8d2d\u4e70\u7684\u5546\u54c1\u4ec0\u4e48\u65f6\u5019\u80fd\u53d1\u8d27\uff1f\u201d\uff0c\u667a\u80fd\u5ba2\u670d\u7cfb\u7edf\u4e2d\u7684\u95ee\u9898\u5206\u7c7b\u4ee3\u7406\u9996\u5148\u5bf9\u7528\u6237\u7684\u95ee\u9898\u8fdb\u884c\u5206\u7c7b\uff0c\u5224\u65ad\u8be5\u95ee\u9898\u5c5e\u4e8e\u8ba2\u5355\u5904\u7406\u7c7b\u95ee\u9898\u3002\u7136\u540e\uff0c\u77e5\u8bc6\u68c0\u7d22\u4ee3\u7406\u6839\u636e\u95ee\u9898\u5206\u7c7b\u7ed3\u679c\uff0c\u4ece\u77e5\u8bc6\u5e93\u4e2d\u68c0\u7d22\u76f8\u5173\u7684\u7b54\u6848\u4fe1\u606f\u3002\u77e5\u8bc6\u5e93\u4e2d\u5b58\u50a8\u4e86\u5404\u79cd\u5e38\u89c1\u95ee\u9898\u7684\u89e3\u7b54\u3001\u5546\u54c1\u4fe1\u606f\u3001\u7269\u6d41\u4fe1\u606f\u7b49\u3002\u5982\u679c\u77e5\u8bc6\u5e93\u4e2d\u5b58\u5728\u76f4\u63a5\u5339\u914d\u7684\u7b54\u6848\uff0c\u5982 \u201c\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u5546\u54c1\u4f1a\u5728\u4e0b\u5355\u540e\u7684 24 \u5c0f\u65f6\u5185\u53d1\u8d27\u201d\uff0c\u5219\u7531\u56de\u590d\u751f\u6210\u4ee3\u7406\u5c06\u8be5\u7b54\u6848\u4ee5\u53cb\u597d\u3001\u6070\u5f53\u7684\u8bed\u8a00\u5f62\u5f0f\u56de\u590d\u7ed9\u7528\u6237\u3002\u82e5\u77e5\u8bc6\u5e93\u4e2d\u6ca1\u6709\u76f4\u63a5\u5339\u914d\u7684\u7b54\u6848\uff0c\u667a\u80fd\u5ba2\u670d\u7cfb\u7edf\u53ef\u4ee5\u901a\u8fc7\u4e0e\u7528\u6237\u8fdb\u4e00\u6b65\u5bf9\u8bdd\uff0c\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\uff0c\u5982\u8ba2\u5355\u7f16\u53f7\u7b49\uff0c\u7136\u540e\u7531\u67e5\u8be2\u4ee3\u7406\u5411\u8ba2\u5355\u7ba1\u7406\u7cfb\u7edf\u6216\u7269\u6d41\u7cfb\u7edf\u53d1\u8d77\u67e5\u8be2\uff0c\u83b7\u53d6\u51c6\u786e\u7684\u53d1\u8d27\u65f6\u95f4\u4fe1\u606f\uff0c\u518d\u7531\u56de\u590d\u751f\u6210\u4ee3\u7406\u5c06\u7ed3\u679c\u53cd\u9988\u7ed9\u7528\u6237\u3002\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0cAutoGen \u6846\u67b6\u4f7f\u5f97\u5404\u4e2a\u4ee3\u7406\u80fd\u591f\u534f\u540c\u5de5\u4f5c\uff0c\u5feb\u901f\u3001\u51c6\u786e\u5730\u54cd\u5e94\u7528\u6237\u7684\u54a8\u8be2\uff0c\u63d0\u9ad8\u5ba2\u6237\u670d\u52a1\u7684\u6548\u7387\u548c\u8d28\u91cf\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u66f4\u597d\u7684\u8d2d\u7269\u4f53\u9a8c \u3002<\/p>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<p><strong>AutoGen\u7684\u57fa\u672c\u539f\u7406<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u8ddfLangchain\u7b49\u6846\u67b6\u6bd4\u8d77\u6765,AutoGen\u8fd8\u662f\u76f8\u5bf9\u6bd4\u8f83\u7b80\u5355\u7684\u6846\u67b6\u3002\u524d\u9762\u5df2\u7ecf\u63d0\u8fc7\uff0cAutoGen\u6240\u505a\u7684\u5c31\u662f\u5982\u4e0b\u51e0\u4ef6\u4e8b\u60c5\uff1a<\/p>\n\n\n\n<ol>\n<li>\u80fd\u591f\u521b\u5efa\u4e00\u4e2aAgent\uff0cAutoGen\u5b9a\u4e49\u4e86\u4e00\u4e9bAgent\u7684\u7c7b\uff0c\u7528\u4e8e\u5b9a\u4e49\u548c\u5b9e\u4f8b\u5316\u7279\u5b9a\u7684Agent\u3002\u8fd9\u4e9bAgent\u5177\u6709\u57fa\u672c\u7684\u5bf9\u8bdd\u80fd\u529b\uff0c\u80fd\u591f\u6839\u636e\u63a5\u6536\u5230\u7684\u6d88\u606f\uff0c\u751f\u6210\u56de\u590d\u3002\u6700\u7b80\u5355\u7684\uff0c\u521b\u5efa\u4e24\u4e2aAgent\uff0c\u5c31\u80fd\u591f\u8ba9\u4ed6\u4eec\u4e00\u5bf9\u4e00\u7684\u95f2\u804a\u8d77\u6765\u3002<\/li>\n\n\n\n<li>\u63d0\u4f9b\u591a\u4e2aAgent\u5bf9\u8bdd\u7684\u73af\u5883\uff0c\u901a\u8fc7GroupChat\u7c7b\u6765\u7ba1\u7406\u4e00\u4e2a\u5177\u6709\u591a\u4e2aAgent\u53c2\u4e0e\u7684\u7fa4\u804a\u73af\u5883\uff0c\u5728\u8fd9\u4e2aGroupChat\u4e2d\u6765\u7ef4\u62a4\u7ba1\u7406\u804a\u5929\u8bb0\u5f55\u3001\u53d1\u8a00\u8005\u9009\u62e9\/\u8f6c\u6362\u89c4\u5219\u3001\u8c01\u662f\u4e0b\u4e00\u4e2a\u53d1\u8a00\u8005\u3001\u4ec0\u4e48\u65f6\u5019\u7fa4\u804a\u7ec8\u6b62\u7b49\uff1b<\/li>\n\n\n\n<li>\u5bf9\u7fa4\u804a\u8fdb\u884c\u7ba1\u7406\uff0c\u7fa4\u804a\u7684\u5b9e\u9645\u7ba1\u7406\u662f\u7531\u4e00\u4e2aGroupChatManager\u6765\u5b9e\u73b0\u7684\uff0cGroupChatManager\u4e5f\u662f\u4e00\u4e2aAgent\uff0cGroupChat\u63d0\u4f9b\u4e86\u4e00\u4e2a\u73af\u5883\uff0c\u4ea4\u7ed9GroupChatManager\u6765\u5b9e\u9645\u7ba1\u7406\u8fd9\u4e2a\u73af\u5883\u3002<\/li>\n<\/ol>\n\n\n\n<p><strong>\u5355\u4e2aAgent<\/strong><\/p>\n\n\n\n<p>\u4e00\u4e2a\u6700\u7b80\u5355\u7684AutoGen helloworld \u5e94\u7528\u5c31\u662f\u4e0b\u9762\u7684\u6837\u5b50:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from autogen import UserProxyAgent, ConversableAgent, config_list_from_json\n\ndef main():\n    # Load LLM inference endpoints from an env variable or a file\n    # \u4ece\u6587\u4ef6\u6216\u8005\u73af\u5883\u53d8\u91cf\u4e2d\u52a0\u8f7dLLM\u7684\u63a8\u7406\u7aef\u70b9\n    # \u5177\u4f53\u53c2\u770bhttps:\/\/microsoft.github.io\/autogen\/docs\/FAQ#set-your-api-endpoints\n    # \u4ee5\u53ca OAI_CONFIG_LIST_sample.\n    # \u4f8b\u5982\uff0c\u5982\u679c\u4f60\u5728\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4e0b\u521b\u5efa\u4e86\u4e00\u4e2a OAI_CONFIG_LIST \u7684\u6587\u4ef6\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6587\u4ef6\u5c31\u4f1a\u88ab\u7528\u6765\u4f5c\u4e3a\u914d\u7f6e\u6587\u4ef6\n    config_list = config_list_from_json(env_or_file=\"OAI_CONFIG_LIST\")\n\n    #\u5229\u7528LLM\u6765\u521b\u5efa\u4e00\u4e2aAssistant Agent,\u8fd9\u4e2aLLM\u662f\u5728\u4e0a\u9762\u7684\u914d\u7f6e\u6587\u4ef6\u91cc\u6307\u5b9a\u7684\u3002\n    assistant = ConversableAgent(\"agent\", llm_config={\"config_list\": config_list})\n\n    #\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u4ee3\u7406\uff0c\u8fd9\u4e2a\u7528\u6237\u4ee3\u7406\u5c31\u4ee3\u8868\u4f60\uff0c\u4f60\u53ef\u4ee5\u968f\u65f6\u52a0\u5165\u5bf9\u8bdd\u4e2d\n    user_proxy = UserProxyAgent(\"user\", code_execution_config=False)\n\n    #\u8ba9assistant\u6765\u5f00\u59cb\u8fd9\u4e2a\u5bf9\u8bdd\uff0c\u5982\u679c\u7528\u6237\u8f93\u5165 exit\uff0c\u90a3\u4e48\u5bf9\u8bdd\u5c31\u4f1a\u88ab\u7ec8\u6b62\u3002\n    assistant.initiate_chat(user_proxy, message=\"How can I help you today?\")\n\nif __name__ == \"__main__\":\n    main()<\/pre>\n\n\n\n<p>\u5728\u4e0a\u9762\u7684\u7b80\u5355\u7684\u7a0b\u5e8f\u91cc\uff0c\u5b9a\u4e49\u4e86\u4e24\u4e2aAgent\uff0c\u4e00\u4e2a\u53ebassistant\uff0c\u4e00\u4e2a\u662fuser_proxy\uff0c\u7136\u540e\u8ba9assistant\u521d\u59cb\u5316\u4e86\u4e00\u4e2a\u5bf9\u8bdd\uff0c\u8fd9\u4e2a\u5bf9\u8bdd\u7684\u5bf9\u8c61\u662fuser_proxy\uff0c\u521d\u59cb\u7684\u6d88\u606f\u662f&#8221;How can I help you today?&#8221;\u3002\u8fd0\u884c\u4ee3\u7801\u540e\uff0c\u4f60\u4f1a\u63a5\u6536\u5230\u8fd9\u6761\u6d88\u606f\uff0c\u7136\u540e\u53ef\u4ee5\u4efb\u610f\u8f93\u5165\u56de\u590d\uff0c\u76f4\u5230\u4f60\u8f93\u5165exit\uff0c\u5bf9\u8bdd\u7ed3\u675f\u3002<br><strong>\u6240\u4ee5\u5355\u4e2aAgent\u7684\u884c\u4e3a\u6a21\u5f0f\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u6536\u53d1\u6d88\u606f\u800c\u5df2\uff0c\u8f93\u5165\u8f93\u51fa\u90fd\u662f\u6587\u672c<\/strong>\u3002\u548c\u4eba\u4e00\u6837\uff0c\u6709\u4eba\u8ddf\u4f60\u8bf4\u8bdd\uff0c\u4f60\u53ef\u4ee5\u56de\u590d\uff0c\u6216\u8005\u9009\u62e9\u4e0d\u56de\u590d\u3002<br>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u793a\u4f8b\u4e2d\uff0cassistant\u8fd9\u4e2aAgent\u5b9e\u4f8b\u662f\u4e00\u4e2aConversableAgent\uff0c\u800cuser_proxy\u662f\u4e00\u4e2aUserProxyAgent\u7684\u5b9e\u4f8b\u3002\u5b9e\u9645\u4e0a\u5728AutoGen\u4e2d\uff0cAgent\u662f\u5982\u4e0b\u56fe\u6784\u9020\u7684\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"711\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-53-1024x711.png\" alt=\"\" class=\"wp-image-19114\" style=\"width:466px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-53-1024x711.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-53-300x208.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-53-768x533.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-53-830x576.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-53-230x160.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-53-350x243.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-53-480x333.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-53.png 1322w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>AutoGen\u5148\u58f0\u660e\u4e86\u4e00\u4e2aAgent\u7684protocol\uff0c\u89c4\u5b9a\u4e86\u4f5c\u4e3a\u4e00\u4e2aAgent\u57fa\u672c\u5c5e\u6027\u548c\u884c\u4e3a:<\/p>\n\n\n\n<ul>\n<li><code>name<\/code>\u5c5e\u6027\uff1a\u6bcf\u4e2aAgent\u5fc5\u987b\u6709\u4e00\u4e2a\u5c5e\u6027\u3002<\/li>\n\n\n\n<li><code>description<\/code>\u5c5e\u6027\uff1a\u6bcf\u4e2aAgent\u5fc5\u987b\u6709\u4e2a\u81ea\u6211\u4ecb\u7ecd\uff0c\u63cf\u8ff0\u81ea\u5df1\u7684\u80fd\u5e72\u5565\u548c\u4e00\u4e9b\u884c\u4e3a\u6a21\u5f0f\u3002<\/li>\n\n\n\n<li><code>send<\/code>\u65b9\u6cd5\uff1a\u53d1\u9001\u6d88\u606f\u7ed9\u53e6\u4e00\u4e2aAgent\u3002<\/li>\n\n\n\n<li><code>receive<\/code>\u65b9\u6cd5\uff1a\u63a5\u6536\u6765\u81ea\u53e6\u4e00\u4e2a\u4ee3\u7406\u7684\u6d88\u606fAgent\u3002<\/li>\n\n\n\n<li><code>generate_reply<\/code>\u65b9\u6cd5\uff1a\u57fa\u4e8e\u63a5\u6536\u5230\u7684\u6d88\u606f\u751f\u6210\u56de\u590d\uff0c\u4e5f\u53ef\u4ee5\u540c\u6b65\u6216\u5f02\u6b65\u6267\u884c\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u53ea\u8981\u5177\u6709\u8fd9\u4e9b\u80fd\u529b\uff0c\u90a3\u4e48\u5728AutoGen\u4e2d\u5c31\u4f1a\u88ab\u8ba4\u4e3a\u662f\u4e00\u4e2aAgent\u3002<br>\u5982\u679c\u4f60\u5b9a\u4e49\u4e86\u4e00\u4e2aAgent\uff0c\u65e0\u8bba\u5176\u4ed6\u4eba\u8bf4\u4ec0\u4e48\u5b83\u90fd\u56fa\u5b9a\u56de\u590d&#8221;\u597d\u7684&#8221;\uff0c\u4e5f\u53ef\u4ee5\u8ba4\u4e3a\u662f\u4e00\u4e2aAgent\uff0c\u5e76\u4e0d\u9700\u8981\u6709LLM\u3002\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48\u5728Agent\u4e4b\u540e\u53c8\u5b9a\u4e49\u4e86\u4e00\u4e2aLLMAgent\u7684\u5c01\u88c5\uff0c\u5b83\u5728Agent\u7684\u57fa\u7840\u4e0a\u589e\u52a0\u7ed9LLM\u7528\u7684system message\u3002<br>\u7136\u540e\u5728ConversableAgent\u4e2d\u5177\u4f53\u5b9e\u73b0\u4e86Agent\u89c4\u5b9a\u7684\u5404\u79cd\u65b9\u6cd5\u3002\u6838\u5fc3\u662freceive\uff0c\u5f53ConversableAgent\u6536\u5230\u4e00\u4e2a\u6d88\u606f\u4e4b\u540e\uff0c\u5b83\u4f1a\u8c03\u7528generate_reply\u53bb\u751f\u6210\u56de\u590d\uff0c\u7136\u540e\u8c03\u7528send\u628a\u6d88\u606f\u56de\u590d\u7ed9\u6307\u5b9a\u7684\u63a5\u6536\u65b9\u3002\u540c\u65f6ConversableAgent\u8fd8\u8d1f\u8d23\u5b9e\u73b0\u5bf9\u8bdd\u6d88\u606f\u7684\u8bb0\u5f55\uff0c\u4e00\u822c\u90fd\u8bb0\u5f55\u5728ChatResult\u91cc\uff0c\u8fd8\u53ef\u4ee5\u751f\u6210\u6458\u8981\u7b49\u3002<br>\u6700\u540e\uff0cAutoGen\u5728ConversableAgent\u7684\u57fa\u7840\u4e0a\u5b9e\u73b0\u4e86AssistantAgent\uff0cUserProxyAgent\u548cGroupChatAgent\u4e09\u4e2a\u6bd4\u8f83\u5e38\u7528\u7684Agent\u7c7b\uff0c\u8fd9\u4e09\u4e2a\u7c7b\u5728ConversableAgent\u7684\u57fa\u7840\u4e0a\u6dfb\u52a0\u4e86\u7279\u5b9a\u7684system_message\u548cdescription\u3002\u5176\u5b9e\u5c31\u662f\u6dfb\u52a0\u4e86\u4e00\u4e9b\u57fa\u672c\u7684prompt\u800c\u5df2\u3002<br>\u4f60\u53ef\u80fd\u4e5f\u7559\u610f\u5230\u4e86\uff0c\u597d\u50cf\u8fd9\u4e9bAgent\u6ca1\u6709\u5de5\u5177\uff0c\u90a3\u4e48\u5b83\u662f\u5982\u4f55\u4f7f\u7528\u5de5\u5177\u5462\uff1f\u5176\u5b9e\u5177\u4f53\u7684\u5b9e\u73b0\u662f\u5728ConversableAgent\u4e2d\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u7c7b\u4f3c\u5982\u4e0b\u7684\u65b9\u6cd5\u6765\u7ed9Agent\u63d0\u4f9b\u5de5\u5177\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">def my_tool_function(param1, param2):\n    # \u5b9e\u73b0\u5de5\u5177\u7684\u529f\u80fd\n    return result\n\nagent = ConversableAgent(...)\nagent.register_function({\"my_tool_function\": my_tool_function})<\/pre>\n\n\n\n<p>\u90a3\u4e48\u51b3\u5b9aAgent\u7684\u884c\u4e3a\u6a21\u5f0f\u5c31\u6709\u51e0\u70b9\u5173\u952e\uff1a<\/p>\n\n\n\n<ol>\n<li>\u63d0\u793a\u8bcd\uff0csystem_message\uff0c\u5c31\u662f\u8fd9\u4e2aAgent\u7684\u57fa\u672c\u63d0\u793a\u8bcd<\/li>\n\n\n\n<li>\u80fd\u8c03\u7528\u7684\u5de5\u5177\uff0c\u53d6\u51b3\u4e8e\u7ed9Agent\u63d0\u4f9b\u4e86\u54ea\u4e9b\u5de5\u5177\uff0c\u5728AssistantAgent\u9ed8\u8ba4\u6ca1\u6709\u914d\u7f6e\u4efb\u4f55\u5de5\u5177\uff0c\u4f46\u662f\u63d0\u793a\u5b83\u53ef\u4ee5\u751f\u6210python\u4ee3\u7801\uff0c\u4ea4\u7ed9UserProxyAgent\u6765\u6267\u884c\u83b7\u5f97\u8fd4\u56de\uff0c\u76f8\u5f53\u4e8e\u53d8\u76f8\u7684\u62e5\u6709\u4e86\u5de5\u5177<\/li>\n\n\n\n<li>\u56de\u590d\u903b\u8f91\uff0c\u5982\u679c\u4f60\u5e0c\u671b\u5728\u8fc7\u7a0b\u4e2d\u63ba\u5165\u4e00\u70b9\u79c1\u8d27\u800c\u4e0d\u662f\u5b8c\u5168\u4ea4\u7ed9LLM\u6765\u51b3\u5b9a\uff0c\u90a3\u4e48\u53ef\u4ee5\u5728<code>generate_reply<\/code>\u7684\u65b9\u6cd5\u4e2d\u52a0\u5165\u4e00\u70b9\u5176\u4ed6\u903b\u8f91\u6765\u63a7\u5236Agent\u8fd4\u56de\u56de\u590d\u7684\u903b\u8f91\uff0c\u4f8b\u5982\u5728\u751f\u6210\u56de\u590d\u524d\u53bb\u67e5\u8be2\u77e5\u8bc6\u5e93\uff0c\u53c2\u8003\u77e5\u8bc6\u5e93\u7684\u5185\u5bb9\u6765\u751f\u6210\u56de\u590d\u3002<\/li>\n<\/ol>\n\n\n\n<p><strong>\u4e24\u4e2aAgent\u4e4b\u95f4\u5bf9\u8bdd<\/strong><\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u521b\u5efa\u4e24\u4e2aAgent\uff0c\u7136\u540e\u8ba9\u5b83\u4eec\u8fdb\u884c\u5bf9\u8bdd\u3002\u8fd9\u662f\u6bd4\u8f83\u7b80\u5355\u7684\u4e00\u79cd\u65b9\u5f0f\u3002<br>\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"629\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-55-1024x629.png\" alt=\"\" class=\"wp-image-19116\" style=\"width:472px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-55-1024x629.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-55-300x184.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-55-768x472.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-55-830x510.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-55-230x141.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-55-350x215.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-55-480x295.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-55.png 1296w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u5b9e\u9645\u7684\u4ee3\u7801\u662f\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import os\nfrom autogen import ConversableAgent\n\n#\u6784\u9020student_agent\u5b9e\u4f8b\nstudent_agent = ConversableAgent(\n    name=\"Student_Agent\",\n    system_message=\"You are a student willing to learn.\",\n    llm_config={\"config_list\": [{\"model\": \"gpt-4\", \"api_key\": os.environ[\"OPENAI_API_KEY\"]}]},\n)\n\n#\u6784\u9020teacher_agent\u5b9e\u4f8b\nteacher_agent = ConversableAgent(\n    name=\"Teacher_Agent\",\n    system_message=\"You are a math teacher.\",\n    llm_config={\"config_list\": [{\"model\": \"gpt-4\", \"api_key\": os.environ[\"OPENAI_API_KEY\"]}]},\n)\n\n#\u521d\u59cb\u5316\u4e00\u4e2a\u804a\u5929\uff0c\u7531student_agent\u53d1\u51fa\uff0c\u63a5\u6536\u65b9\u5f0fteacher_agent\nchat_result = student_agent.initiate_chat(\n    teacher_agent,\n    message=\"What is triangle inequality?\",\n    summary_method=\"reflection_with_llm\",\n    max_turns=2,\n)<\/pre>\n\n\n\n<p>\u7531student_agent\u901a\u8fc7\u8c03\u7528initiate_chat()\u7684\u65b9\u6cd5\uff0c\u95eeteacher_agent()\u4ec0\u4e48\u662f\u4e09\u89d2\u4e0d\u7b49\u5f0f\uff0c\u5e76\u4e14\u89c4\u5b9a\u4e86\u6700\u5927\u5bf9\u8bdd\u8f6e\u6b21\u4e3a\u4e24\u8f6e\uff0c\u6700\u540e\u7684\u5bf9\u8bdd\u6458\u8981\u662f\u901a\u8fc7reflection_with_llm\u7684\u65b9\u6cd5\u751f\u6210\u3002\u6574\u4e2a\u5bf9\u8bdd\u7ed3\u679c\u4fdd\u5b58\u5728chat_result\u4e2d\u3002<br>\u5982\u679c\u4e00\u4e2a\u5bf9\u8bdd\u9700\u8981\u8ddf\u591a\u4e2aAgent\u4e00\u5bf9\u4e00\u987a\u5e8f\u4ea4\u6d41\u5b8c\u6210\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u65b9\u6cd5\u5c06\u5bf9\u8bdd\u4e32\u5728\u4e00\u8d77\u3002\u4e0a\u4e00\u6b21\u5bf9\u8bdd\u7684\u6458\u8981\u4f1a\u88ab\u4f5c\u4e3a\u53c2\u6570\u4e00\u8d77\u4f20\u9012\u5230\u4e0b\u4e00\u4e2a\u5bf9\u8bdd\u73af\u8282\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"574\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-56-1024x574.png\" alt=\"\" class=\"wp-image-19117\" style=\"width:470px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-56-1024x574.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-56-300x168.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-56-768x431.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-56-830x466.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-56-230x129.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-56-350x196.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-56-480x269.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-56.png 1344w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u4ee3\u7801\u662f:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Start a sequence of two-agent chats.\n# Each element in the list is a dictionary that specifies the arguments\n# for the initiate_chat method.\nchat_results = AgentA.initiate_chats(\n    [\n        {\n            \"recipient\": AgentB,\n            \"message\": \"\u521d\u59cb\u7684message\",\n            \"max_turns\": 2,\n            \"summary_method\": \"last_msg\",\n        },\n        {\n            \"recipient\": AgentC,\n            \"message\": \"\u9700\u8981\u7ed9AgentC\u7684message\",\n            \"max_turns\": 2,\n            \"summary_method\": \"last_msg\",\n        },\n        {\n            \"recipient\": AgentD,\n            \"message\": \"\u9700\u8981\u7ed9AgentD\u7684message\",\n            \"max_turns\": 2,\n            \"summary_method\": \"last_msg\",\n        },\n        {\n            \"recipient\": AgentE,\n            \"message\": \"\u9700\u8981\u7ed9AgentE\u7684message\",\n            \"max_turns\": 2,\n            \"summary_method\": \"last_msg\",\n        },\n    ]\n)<\/pre>\n\n\n\n<p><strong>\u591a\u4e2aAgent\u7684\u7fa4\u804a<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u6709\u8d85\u8fc7\u4e24\u4e2aAgent\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u628a\u5b83\u4eec\u52a0\u5165\u4e00\u4e2a\u804a\u5929\u5ba4\uff08GroupChat\uff09\u3002\u7136\u540e\u8003\u8651\u8fd9\u4e2a\u804a\u5929\u5ba4\u600e\u4e48\u7ba1\u7406\u548c\u63a7\u5236\u3002\u4f8b\u5982\u8c01\u5e94\u8be5\u5728\u4ec0\u4e48\u65f6\u5019\u53d1\u8a00\uff0c\u54ea\u4e9bAgent\u4e4b\u95f4\u624d\u53ef\u4ee5\u76f8\u4e92\u5bf9\u8bdd\u3002<br>\u804a\u5929\u5ba4\u7684\u7ba1\u7406\u662f\u7531GroupChatManager\u6765\u8fdb\u884c\u7684\uff0cGroupChatManager\u4e5f\u662f\u4e00\u4e2aConversableAgent\u7684\u5b50\u7c7b\u3002\u5b83\u9996\u9009\u9009\u62e9\u4e00\u4e2a\u53d1\u8a00\u7684Agent\uff0c\u7136\u540e\u53d1\u8a00Agent\u4f1a\u8fd4\u56de\u5b83\u7684\u54cd\u5e94\uff0c\u7136\u540eGroupChatManager\u4f1a\u628a\u6536\u5230\u7684\u54cd\u5e94\u5e7f\u64ad\u7ed9\u804a\u5929\u5ba4\u5185\u7684\u5176\u4ed6Agent\uff0c\u7136\u540e\u518d\u9009\u62e9\u4e0b\u4e00\u4e2a\u53d1\u8a00\u8005\u3002\u76f4\u5230\u5bf9\u8bdd\u7ec8\u6b62\u7684\u6761\u4ef6\u88ab\u6ee1\u8db3\u3002GroupChatManager\u9009\u62e9\u4e0b\u4e00\u4e2a\u53d1\u8a00\u8005\u7684\u65b9\u6cd5\u6709:<\/p>\n\n\n\n<ul>\n<li>\u81ea\u52a8\u9009\u62e9: &#8220;auto&#8221;\u4e0b\u4e00\u4e2a\u53d1\u8a00\u8005\u7531LLM\u6765\u81ea\u52a8\u9009\u62e9\uff1b<\/li>\n\n\n\n<li>\u624b\u52a8\u9009\u62e9\uff1a&#8221;manual&#8221;\u7531\u7528\u6237\u8f93\u5165\u6765\u51b3\u5b9a\u4e0b\u4e00\u4e2a\u53d1\u8a00\u8005\uff1b<\/li>\n\n\n\n<li>\u968f\u673a\u9009\u62e9\uff1a&#8221;random&#8221;\u968f\u673a\u9009\u62e9\u4e0b\u4e00\u4e2a\u53d1\u8a00\u8005\uff1b<\/li>\n\n\n\n<li>\u987a\u5e8f\u53d1\u8a00\uff1a&#8221;round_robin&#8221; \uff1a\u6839\u636eAgent\u987a\u5e8f\u8f6e\u6d41\u53d1\u8a00<\/li>\n\n\n\n<li>\u81ea\u5b9a\u4e49\u7684\u51fd\u6570\uff1a\u901a\u8fc7\u8c03\u7528\u51fd\u6570\u6765\u51b3\u5b9a\u4e0b\u4e00\u4e2a\u53d1\u8a00\u8005\uff1b<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"1024\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-57-1008x1024.png\" alt=\"\" class=\"wp-image-19118\" style=\"width:454px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-57-1008x1024.png 1008w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-57-295x300.png 295w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-57-768x780.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-57-830x843.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-57-230x234.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-57-350x355.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-57-480x487.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-57.png 1298w\" sizes=\"(max-width: 1008px) 100vw, 1008px\" \/><\/figure><\/div>\n\n\n<p>\u5982\u679c\u804a\u5929\u5ba4\u91ccAgent\u6bd4\u8f83\u591a\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>GroupChat<\/code>\u7c7b\u4e2d\u8bbe\u7f6e<code>allowed_or_disallowed_speaker_transitions<\/code>\u53c2\u6570\u6765\u89c4\u5b9a\u5f53\u7279\u5b9a\u7684Agent\u53d1\u8a00\u65f6\uff0c\u4e0b\u4e00\u4e2a\u5019\u9009\u7684Agent\u90fd\u6709\u54ea\u4e9b\u3002\u4f8b\u5982\u53ef\u4ee5\u89c4\u5b9aAgentB\u53d1\u8a00\u65f6\uff0c\u53ea\u6709AgentC\u624d\u53ef\u4ee5\u54cd\u5e94\u3002<br>\u901a\u8fc7\u8fd9\u4e9b\u53d1\u8a00\u63a7\u5236\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06Agent\u7ec4\u6210\u5404\u79cd\u4e0d\u540c\u7684\u62d3\u6251\u3002\u4f8b\u5982\u5c42\u7ea7\u5316\u3001\u6241\u5e73\u5316\u3002\u751a\u81f3\u53ef\u4ee5\u901a\u8fc7\u4f20\u5165\u4e00\u4e2a\u56fe\u5f62\u72b6\u6765\u63a7\u5236\u53d1\u8a00\u7684\u987a\u5e8f\u3002<\/p>\n\n\n\n<p><strong>\u7fa4\u804a\u5d4c\u5957<\/strong><\/p>\n\n\n\n<p>AutoGen\u5141\u8bb8\u5728\u4e00\u4e2a\u7fa4\u804a\u4e2d\uff0c\u8c03\u7528\u53e6\u5916\u4e00\u4e2aAgent\u7fa4\u804a\u6765\u6267\u884c\u5bf9\u8bdd(\u5d4c\u5957\u5bf9\u8bddNested Chats)\u3002\u8fd9\u6837\u505a\u53ef\u4ee5\u628a\u4e00\u4e2a\u7fa4\u804a\u5c01\u88c5\u6210\u5355\u4e00\u7684Agent\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u7684\u5de5\u4f5c\u6d41\u3002<br>\u5177\u4f53\u5b9e\u73b0\u65b9\u6cd5\u662f\u5148\u5229\u7528\u4e0a\u9762\u7684\u65b9\u6cd5\u5b9a\u4e49\u4e00\u4e2a\u7fa4\u804a\uff0c\u7136\u540e\u5c06\u8fd9\u4e2a\u7fa4\u804a\u5728\u53e6\u5916\u4e00\u4e2a\u7fa4\u804a\u4e2d\uff0c\u6ce8\u518c\u6210\u4e3anested chat\uff0c\u5e76\u4e14\u8bbe\u5b9a\u4e00\u4e2atrigger\u7684\u8868\u8fbe\u5f0f\uff0c\u5f53trigger\u8868\u8fbe\u5f0f\u4e3a&#8221;\u771f&#8221;\u65f6\uff0c\u5c31\u4f1a\u8c03\u7528nested chat\u5305\u88c5\u597d\u7684\u7fa4\u804a\u6765\u89e3\u51b3\u95ee\u9898\uff0c\u5c06\u7ed3\u679c\u8fd4\u56de\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"723\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-58-1024x723.png\" alt=\"\" class=\"wp-image-19119\" style=\"width:414px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-58-1024x723.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-58-300x212.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-58-768x542.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-58-830x586.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-58-230x162.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-58-350x247.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-58-480x339.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-58.png 1312w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u3000\u3000<\/p>\n\n\n\n<p><strong>\u5165\u95e8\u7684\u4f8b\u5b50<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u521b\u5efa\u4e00\u4e2aAI\u56e2\u961f\uff0c\u4e00\u4e2a\u5f53\u4efb\u52a1\u6267\u884c\u8005\uff0c\u4e00\u4e2a\u5f53\u8bc4\u5224\u8005\uff0c\u5f53\u8bc4\u5224\u8005\u89c9\u5f97\u53ef\u4ee5\u4e86\uff0c\u5c31\u505c\u6b62\u5bf9\u8bdd\uff0c\u5b8c\u6210\u4efb\u52a1\u3002<\/p>\n\n\n\n<p>Python\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import asyncio\n \nfrom autogen_agentchat.agents import AssistantAgent\nfrom autogen_agentchat.base import TaskResult\nfrom autogen_agentchat.conditions import ExternalTermination, TextMentionTermination\nfrom autogen_agentchat.teams import RoundRobinGroupChat\nfrom autogen_agentchat.ui import Console\nfrom autogen_core import CancellationToken\nfrom autogen_ext.models.openai import OpenAIChatCompletionClient\n \nasync def main():\n \n    # Create an OpenAI model client.\n    model_client = OpenAIChatCompletionClient(\n        model=\"gpt-4o-2024-08-06\",\n        api_key=\"\", # Optional if you have an OPENAI_API_KEY env variable set.\n        )\n \n    # Create the primary agent.\n    primary_agent = AssistantAgent(\n        \"primary\",\n        model_client=model_client,\n        system_message=\"You are a helpful AI assistant.\",\n    )\n \n    # Create the critic agent.\n    critic_agent = AssistantAgent(\n        \"critic\",\n        model_client=model_client,\n        system_message=\"Provide constructive feedback. Respond with 'APPROVE' to when your feedbacks are addressed.\",\n    )\n \n    # Define a termination condition that stops the task if the critic approves.\n    text_termination = TextMentionTermination(\"APPROVE\")\n \n \n    team = RoundRobinGroupChat(\n        [primary_agent, critic_agent],\n        termination_condition=text_termination,  # Use the bitwise OR operator to combine conditions.\n    )\n \n    await Console(team.run_stream(task=\"\u5199\u4e00\u9996\u5173\u4e8e\u79cb\u5929\u7684\u77ed\u8bd7\"))\n \n    \nif __name__ == \"__main__\":\n    asyncio.run(main())\n <\/pre>\n\n\n\n<p>\u8fd0\u884c\u6548\u679c\uff1a<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"604\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-60-1024x604.png\" alt=\"\" class=\"wp-image-19125\" style=\"width:524px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-60-1024x604.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-60-300x177.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-60-768x453.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-60-830x489.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-60-230x136.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-60-350x206.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-60-480x283.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-60.png 1394w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u3000\u3000<\/p>\n\n\n\n<p><strong>\u4ee3\u7801\u6848\u4f8b\u4e00\uff1a\u7b80\u5355\u7684\u591a\u4ee3\u7406\u5bf9\u8bdd<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u529f\u80fd\u63cf\u8ff0<\/p>\n\n\n\n<p>\u672c\u6848\u4f8b\u521b\u5efa\u4e24\u4e2a\u4ee3\u7406\uff0c\u4e00\u4e2a\u662f\u7528\u6237\u4ee3\u7406\uff0c\u53e6\u4e00\u4e2a\u662f\u52a9\u624b\u4ee3\u7406\uff0c\u6a21\u62df\u7528\u6237\u4e0e\u52a9\u624b\u4e4b\u95f4\u7684\u7b80\u5355\u5bf9\u8bdd\u4ea4\u4e92\uff0c\u7528\u6237\u63d0\u51fa\u95ee\u9898\uff0c\u52a9\u624b\u7ed9\u51fa\u56de\u7b54\u3002<\/p>\n\n\n\n<p>\u4ee3\u7801\u5b9e\u73b0<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import autogen\n\n# \u521b\u5efa\u7528\u6237\u4ee3\u7406\nuser_proxy = autogen.UserProxyAgent(\n    name=\"User_proxy\",\n    system_message=\"A human admin. Interact with the planner to discuss the plan. Plan execution needs to be approved by this admin.\"\n)\n# \u521b\u5efa\u52a9\u624b\u4ee3\u7406\nassistant = autogen.AssistantAgent(\n    name=\"Assistant\",\n    llm_config={\n        \"model\": \"gpt-3.5-turbo\",\n        \"api_key\": \"your_openai_api_key\"\n    }\n)\n# \u7528\u6237\u63d0\u51fa\u95ee\u9898\nuser_proxy.initiate_chat(assistant, message=\"\u5e2e\u6211\u603b\u7ed3\u4e00\u4e0bPython\u8bed\u8a00\u7684\u7279\u70b9\")<\/pre>\n\n\n\n<p>\u4ee3\u7801\u89e3\u91ca<\/p>\n\n\n\n<ol>\n<li>\u5bfc\u5165 autogen \u5e93\uff1a\u4e3a\u4f7f\u7528 AutoGen \u6846\u67b6\u7684\u529f\u80fd\u505a\u51c6\u5907\u3002<\/li>\n\n\n\n<li>\u521b\u5efa\u7528\u6237\u4ee3\u7406\uff1a<code>UserProxyAgent<\/code>\u7c7b\u7528\u4e8e\u521b\u5efa\u7528\u6237\u4ee3\u7406\uff0c\u901a\u8fc7<code>system_message<\/code>\u63cf\u8ff0\u7528\u6237\u4ee3\u7406\u7684\u89d2\u8272\u548c\u804c\u8d23\u3002<\/li>\n\n\n\n<li>\u521b\u5efa\u52a9\u624b\u4ee3\u7406\uff1a<code>AssistantAgent<\/code>\u7c7b\u521b\u5efa\u52a9\u624b\u4ee3\u7406\uff0c<code>llm_config<\/code>\u914d\u7f6e\u4f7f\u7528\u7684\u8bed\u8a00\u6a21\u578b\uff08\u8fd9\u91cc\u662f<code>gpt-3.5-turbo<\/code>\uff09\u4ee5\u53ca\u5bf9\u5e94\u7684 API \u5bc6\u94a5\u3002<\/li>\n\n\n\n<li>\u53d1\u8d77\u5bf9\u8bdd\uff1a\u7528\u6237\u4ee3\u7406\u901a\u8fc7<code>initiate_chat<\/code>\u65b9\u6cd5\u5411\u52a9\u624b\u4ee3\u7406\u53d1\u9001\u6d88\u606f\uff0c\u6d88\u606f\u5185\u5bb9\u4e3a \u201c\u5e2e\u6211\u603b\u7ed3\u4e00\u4e0b Python \u8bed\u8a00\u7684\u7279\u70b9\u201d\uff0c\u52a9\u624b\u4ee3\u7406\u4f1a\u6839\u636e\u914d\u7f6e\u7684\u8bed\u8a00\u6a21\u578b\u751f\u6210\u56de\u7b54\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<p><strong>\u4ee3\u7801\u6848\u4f8b\u4e8c\uff1a\u4efb\u52a1\u534f\u4f5c<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u529f\u80fd\u63cf\u8ff0<\/p>\n\n\n\n<p>\u8be5\u6848\u4f8b\u5305\u542b\u4e09\u4e2a\u4ee3\u7406\uff1a\u7528\u6237\u4ee3\u7406\u3001\u89c4\u5212\u4ee3\u7406\u548c\u6267\u884c\u4ee3\u7406\u3002\u7528\u6237\u63d0\u51fa\u4e00\u4e2a\u590d\u6742\u4efb\u52a1\uff0c\u89c4\u5212\u4ee3\u7406\u8d1f\u8d23\u5236\u5b9a\u4efb\u52a1\u6267\u884c\u8ba1\u5212\uff0c\u6267\u884c\u4ee3\u7406\u6839\u636e\u8ba1\u5212\u6267\u884c\u4efb\u52a1\uff0c\u6700\u540e\u5c06\u7ed3\u679c\u53cd\u9988\u7ed9\u7528\u6237\u3002<\/p>\n\n\n\n<p>\u4ee3\u7801\u5b9e\u73b0<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import autogen\n\n# \u521b\u5efa\u7528\u6237\u4ee3\u7406\nuser = autogen.UserProxyAgent(\n    name=\"User\",\n    system_message=\"\u63d0\u51fa\u4efb\u52a1\u9700\u6c42\u7684\u7528\u6237\"\n)\n# \u521b\u5efa\u89c4\u5212\u4ee3\u7406\nplanner = autogen.AssistantAgent(\n    name=\"Planner\",\n    llm_config={\n        \"model\": \"gpt-3.5-turbo\",\n        \"api_key\": \"your_openai_api_key\"\n    }\n)\n# \u521b\u5efa\u6267\u884c\u4ee3\u7406\nexecutor = autogen.AssistantAgent(\n    name=\"Executor\",\n    llm_config={\n        \"model\": \"gpt-3.5-turbo\",\n        \"api_key\": \"your_openai_api_key\"\n    }\n)\ngroupchat = autogen.GroupChat(agents=[user, planner, executor], messages=[], max_round=12)\nmanager = autogen.GroupChatManager(groupchat=groupchat)\n\nuser.initiate_chat(\n    manager,\n    message=\"\u6211\u9700\u8981\u5206\u6790\u4e00\u4efd\u9500\u552e\u6570\u636e\uff0c\u6570\u636e\u6587\u4ef6\u540d\u4e3asales_data.csv\uff0c\u544a\u8bc9\u6211\u5206\u6790\u6b65\u9aa4\u5e76\u6267\u884c\u5206\u6790\"\n)<\/pre>\n\n\n\n<p>\u4ee3\u7801\u89e3\u91ca<\/p>\n\n\n\n<ol>\n<li>\u521b\u5efa\u4ee3\u7406\uff1a\u5206\u522b\u521b\u5efa\u4e86\u7528\u6237\u4ee3\u7406\u3001\u89c4\u5212\u4ee3\u7406\u548c\u6267\u884c\u4ee3\u7406\uff0c\u6bcf\u4e2a\u4ee3\u7406\u90fd\u6709\u5176\u7279\u5b9a\u7684\u89d2\u8272\u548c\u804c\u8d23\u3002<\/li>\n\n\n\n<li>\u521b\u5efa\u7fa4\u804a\u548c\u7ba1\u7406\u5668\uff1a\u4f7f\u7528<code>GroupChat<\/code>\u7c7b\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4e09\u4e2a\u4ee3\u7406\u7684\u7fa4\u804a\u73af\u5883\uff0c<code>GroupChatManager<\/code>\u7528\u4e8e\u7ba1\u7406\u7fa4\u804a\u4e2d\u7684\u5bf9\u8bdd\u6d41\u7a0b\u3002<\/li>\n\n\n\n<li>\u53d1\u8d77\u5bf9\u8bdd\uff1a\u7528\u6237\u4ee3\u7406\u5411\u7ba1\u7406\u5668\u53d1\u8d77\u804a\u5929\uff0c\u63d0\u51fa\u5206\u6790\u9500\u552e\u6570\u636e\u7684\u4efb\u52a1\u9700\u6c42\u3002\u89c4\u5212\u4ee3\u7406\u63a5\u6536\u5230\u6d88\u606f\u540e\uff0c\u4f1a\u5236\u5b9a\u5206\u6790\u6b65\u9aa4\u7684\u8ba1\u5212\uff0c\u6267\u884c\u4ee3\u7406\u6839\u636e\u8ba1\u5212\u5bf9<code>sales_data.csv<\/code>\u6587\u4ef6\u8fdb\u884c\u6570\u636e\u5206\u6790\uff0c\u5e76\u5c06\u7ed3\u679c\u901a\u8fc7\u7fa4\u804a\u53cd\u9988\u7ed9\u7528\u6237\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<p><strong>\u4ee3\u7801\u6848\u4f8b\u4e09\uff1a\u4ee3\u7801\u751f\u6210\u4e0e\u6267\u884c<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u529f\u80fd\u63cf\u8ff0<\/p>\n\n\n\n<p>\u7528\u6237\u63d0\u51fa\u4e00\u4e2a\u9700\u8981\u7f16\u5199\u4ee3\u7801\u5b9e\u73b0\u7684\u529f\u80fd\uff0c\u7531\u4ee3\u7801\u751f\u6210\u4ee3\u7406\u751f\u6210 Python \u4ee3\u7801\uff0c\u7136\u540e\u901a\u8fc7\u4ee3\u7801\u6267\u884c\u4ee3\u7406\u8fd0\u884c\u751f\u6210\u7684\u4ee3\u7801\uff0c\u5e76\u5c06\u7ed3\u679c\u8fd4\u56de\u7ed9\u7528\u6237\u3002<\/p>\n\n\n\n<p>\u4ee3\u7801\u5b9e\u73b0<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import autogen\nimport subprocess\n\n# \u521b\u5efa\u7528\u6237\u4ee3\u7406\nuser_agent = autogen.UserProxyAgent(\n    name=\"User\",\n    system_message=\"\u9700\u6c42\u63d0\u51fa\u8005\"\n)\n# \u521b\u5efa\u4ee3\u7801\u751f\u6210\u4ee3\u7406\ncode_generator = autogen.AssistantAgent(\n    name=\"CodeGenerator\",\n    llm_config={\n        \"model\": \"gpt-3.5-turbo\",\n        \"api_key\": \"your_openai_api_key\"\n    }\n)\n# \u521b\u5efa\u4ee3\u7801\u6267\u884c\u4ee3\u7406\ncode_executor = autogen.UserProxyAgent(\n    name=\"CodeExecutor\",\n    system_message=\"\u6267\u884c\u751f\u6210\u7684\u4ee3\u7801\u5e76\u8fd4\u56de\u7ed3\u679c\"\n)\n\n\ndef execute_code(code):\n    try:\n        result = subprocess.run(['python', '-c', code], capture_output=True, text=True)\n        return result.stdout\n    except subprocess.CalledProcessError as e:\n        return f\"\u6267\u884c\u9519\u8bef: {e.stderr}\"\n\n\nuser_agent.initiate_chat(\n    code_generator,\n    message=\"\u5199\u4e00\u4e2a\u8ba1\u7b971\u5230100\u7d2f\u52a0\u548c\u7684Python\u4ee3\u7801\"\n)\ngenerated_code = code_generator.last_message()['content']\ncode_executor.initiate_chat(\n    user_agent,\n    message=f\"\u6267\u884c\u8fd9\u6bb5\u4ee3\u7801:\\n{generated_code}\"\n)\nresult = execute_code(generated_code)\nprint(f\"\u4ee3\u7801\u6267\u884c\u7ed3\u679c: {result}\")<\/pre>\n\n\n\n<p>\u4ee3\u7801\u89e3\u91ca<\/p>\n\n\n\n<ol>\n<li>\u521b\u5efa\u4ee3\u7406\uff1a\u521b\u5efa\u4e86\u7528\u6237\u4ee3\u7406\u3001\u4ee3\u7801\u751f\u6210\u4ee3\u7406\u548c\u4ee3\u7801\u6267\u884c\u4ee3\u7406\u3002<\/li>\n\n\n\n<li>\u751f\u6210\u4ee3\u7801\uff1a\u7528\u6237\u4ee3\u7406\u5411\u4ee3\u7801\u751f\u6210\u4ee3\u7406\u63d0\u51fa\u7f16\u5199\u8ba1\u7b97 1 \u5230 100 \u7d2f\u52a0\u548c\u7684 Python \u4ee3\u7801\u9700\u6c42\uff0c\u4ee3\u7801\u751f\u6210\u4ee3\u7406\u6839\u636e\u8bed\u8a00\u6a21\u578b\u751f\u6210\u76f8\u5e94\u4ee3\u7801\u3002<\/li>\n\n\n\n<li>\u6267\u884c\u4ee3\u7801\uff1a\u4ee3\u7801\u6267\u884c\u4ee3\u7406\u83b7\u53d6\u751f\u6210\u7684\u4ee3\u7801\uff0c\u5e76\u8c03\u7528<code>execute_code<\/code>\u51fd\u6570\u6267\u884c\u4ee3\u7801\u3002<code>execute_code<\/code>\u51fd\u6570\u4f7f\u7528<code>subprocess.run<\/code>\u65b9\u6cd5\u8fd0\u884c Python \u4ee3\u7801\uff0c\u5e76\u6355\u83b7\u8f93\u51fa\u7ed3\u679c\u3002\u5982\u679c\u4ee3\u7801\u6267\u884c\u51fa\u9519\uff0c\u4f1a\u8fd4\u56de\u9519\u8bef\u4fe1\u606f\u3002\u6700\u540e\u5c06\u4ee3\u7801\u6267\u884c\u7ed3\u679c\u6253\u5370\u8f93\u51fa\u3002<\/li>\n<\/ol>\n\n\n\n<p>AutoGen \u6846\u67b6\u4ee5\u5176\u72ec\u7279\u7684\u591a\u4ee3\u7406\u5bf9\u8bdd\u673a\u5236\u3001\u7b80\u5316\u5de5\u4f5c\u6d41\u7684\u7279\u6027\u4ee5\u53ca\u6a21\u5757\u5316\u8bbe\u8ba1\uff0c\u4e3a\u591a\u667a\u80fd\u4f53\u7cfb\u7edf\u7684\u5f00\u53d1\u5e26\u6765\u4e86\u6781\u5927\u7684\u4fbf\u5229 \u3002\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u6df1\u5165\u4e86\u89e3\u4e86 AutoGen \u6846\u67b6\u7684\u6838\u5fc3\u6982\u5ff5\u3001\u663e\u8457\u7279\u6027\u4ee5\u53ca\u4e0e\u5176\u4ed6\u6846\u67b6\u76f8\u6bd4\u6240\u5177\u5907\u7684\u4f18\u52bf\u3002\u5728\u57fa\u7840\u73af\u5883\u5b89\u88c5\u65b9\u9762\uff0c\u6211\u4eec\u8be6\u7ec6\u9610\u8ff0\u4e86\u4ece\u51c6\u5907\u5de5\u4f5c\u5230 Python \u73af\u5883\u642d\u5efa\uff0c\u518d\u5230 AutoGen \u53ca\u5176\u76f8\u5173\u4f9d\u8d56\u5b89\u88c5\u7684\u6bcf\u4e00\u4e2a\u6b65\u9aa4\uff0c\u786e\u4fdd\u5f00\u53d1\u8005\u80fd\u591f\u987a\u5229\u642d\u5efa\u8d77\u8fd0\u884c AutoGen \u6846\u67b6\u7684\u57fa\u7840\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u5c55\u671b\u672a\u6765\uff0c\u968f\u7740\u4eba\u5de5\u667a\u80fd\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0cAutoGen \u6846\u67b6\u6709\u671b\u5728\u66f4\u591a\u9886\u57df\u5f97\u5230\u5e7f\u6cdb\u5e94\u7528\uff0c\u5e76\u6301\u7eed\u63a8\u52a8\u5404\u884c\u4e1a\u7684\u667a\u80fd\u5316\u53d8\u9769\u3002\u76f8\u4fe1\u5e7f\u5927\u5f00\u53d1\u8005\u5728\u6df1\u5165\u5b66\u4e60\u548c\u5e94\u7528 AutoGen \u6846\u67b6\u7684\u8fc7\u7a0b\u4e2d\uff0c\u80fd\u591f\u5145\u5206\u53d1\u6325\u5176\u6f5c\u529b\uff0c\u521b\u9020\u51fa\u66f4\u591a\u5177\u6709\u521b\u65b0\u6027\u548c\u5b9e\u7528\u4ef7\u503c\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e3a\u4eba\u5de5\u667a\u80fd\u9886\u57df\u7684\u53d1\u5c55\u8d21\u732e\u81ea\u5df1\u7684\u529b\u91cf\u3002<\/p>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<p><strong>\u4ee3\u7801\u6848\u4f8b\u4e09\uff1a\u548c ollama \u6a21\u578b \u7ed3\u5408\u4f7f\u7528<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u9700\u89812\u4e2a\u6a21\u578b\uff0c\u6a21\u578b\u6211\u4eec\u4f7f\u7528ollama \u5728\u672c\u5730\u73af\u5883\u4e2d\u90e8\u7f72\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ollama run qwen2:1.5b<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"56\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-62.png\" alt=\"\" class=\"wp-image-19128\" style=\"width:580px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-62.png 776w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-62-300x22.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-62-768x55.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-62-230x17.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-62-350x25.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-62-480x35.png 480w\" sizes=\"(max-width: 776px) 100vw, 776px\" \/><\/figure><\/div>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"> ollama run llama3-Chinese:8B<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"111\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-63-1024x111.png\" alt=\"\" class=\"wp-image-19129\" style=\"width:458px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-63-1024x111.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-63-300x33.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-63-768x84.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-63-830x90.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-63-230x25.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-63-350x38.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-63-480x52.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-63.png 1194w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u5173\u4e8eollama \u5b89\u88c5\u548c\u90e8\u7f72\u5728\u8fd9\u91cc\u6211\u4eec\u5c31\u4e0d\u505a\u8be6\u7ec6\u5c55\u5f00\u3002\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u7684\u662f\u9ed8\u8ba4\u60c5\u51b5\u4e0bollama \u542f\u52a8\u6a21\u578b\u662f\u5355\u4e2a\u6a21\u578b\uff0c\u6211\u4eec\u9700\u8981\u542f\u52a8\u589e\u52a0OLLAMA_MAX_LOADED_MODELS\u6765\u5b9e\u73b0\u540c\u65f6\u52a0\u8f7d\u591a\u4e2a\u6a21\u578b\uff0c\u8fd9\u4e2a\u5728v0.1.33 \u589e\u52a0\u6b64\u529f\u80fd\u3002<\/p>\n\n\n\n<p>2\u4e2a\u6a21\u578b\u540c\u65f6\u542f\u52a8\u540e\uff0c\u663e\u5b58\u5360\u7528\u60c5\u51b5<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"586\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-65-1024x586.png\" alt=\"\" class=\"wp-image-19131\" style=\"width:480px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-65-1024x586.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-65-300x172.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-65-768x439.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-65-830x475.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-65-230x132.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-65-350x200.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-65-480x275.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-65.png 1182w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u4e0b\u9762\u6211\u4eec\u4e4b\u95f4\u7ed9\u51fa\u4ee3\u7801<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">llama3 = {\n  \"config_list\": [\n   {\n      \"model\": \"llama3-Chinese:8B\",\n      \"base_url\": \"http:\/\/localhost:11434\/v1\",\n      \"api_key\": \"lm-studio\",\n   },\n ],\n  \"cache_seed\": None, # Disable caching.\n}\n\nqwen = {\n  \"config_list\": [\n   {\n      \"model\": \"qwen2:1.5b\",\n      \"base_url\": \"http:\/\/localhost:11434\/v1\",\n      \"api_key\": \"lm-studio\",\n   },\n ],\n  \"cache_seed\": None, # Disable caching.\n}\n\n# \u4ee5\u4e0a\u4ee3\u7801\u5b9a\u4e492\u4e2a\u6a21\u578b\u8bf7\u6c42\u5730\u5740\uff0c\u6211\u8fd9\u91cc\u4f7f\u7528ollama\u8fd0\u884c\u7684\u3002\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528gpt4 \u6216\u8005\u5176\u4ed6\u4ed8\u8d39\u6a21\u578bAPI KEY .\n\n\nfrom autogen import ConversableAgent\n\nqwen1 = ConversableAgent(\n  \"qwen\",\n  llm_config=qwen,\n  #system_message=\"Your name is Jack and you are a comedian in a two-person comedy show.\",\n  system_message=\"\u4f60\u7684\u540d\u5b57\u53ebqwen\uff0c\u4f60\u662f\u4e00\u4e2a\u53c2\u8003\u9ad8\u8003\u5b66\u751f\u3002\u4f60\u7684\u89d2\u8272\u662f\u6839\u636e\u6307\u5b9a\u4e3b\u9898\u521b\u4f5c\u5f15\u4eba\u5165\u80dc\u4e14\u4fe1\u606f\u4e30\u5bcc\u7684\u6587\u7ae0\uff0c\u5e76\u4e14\u6839\u636e\u4f60\u7684\u540c\u4e8bllama3\u7684\u5efa\u8bae\u6765\u4fee\u6539\u548c\u5b8c\u5584\u4f60\u521b\u4f5c\u7684\u6587\u7ae0\uff0c\u6bcf\u5f53\u4f60\u6536\u5230llama3\u7684\u5efa\u8bae\u65f6\uff0c\u90fd\u8981\u6839\u636ellama3\u7684\u5efa\u8bae\u7ed9\u51fa\u4fee\u6539\u548c\u5b8c\u5584\u540e\u7684\u5b8c\u6574\u6587\u7ae0\u3002\",\n)\n\nllama31 = ConversableAgent(\n  \"llama3\",\n  llm_config=llama3,\n  #system_message=\"Your name is Emma and you are a comedian in two-person comedy show.\",\n  system_message=\"\u4f60\u7684\u540d\u5b57\u53ebllama3\uff0c\u4f60\u7684\u89d2\u8272\u662f\u4e00\u4e2a\u9ad8\u8003\u4f5c\u6587\u9605\u5377\u8001\u5e08\u3002\u4f60\u7684\u4efb\u52a1\u662f\u9488\u5bf9\u4f60\u7684\u540c\u4e8bqwen\u6240\u5199\u7684\u6587\u7ae0\u8bc4\u4f30\u5e76\u63d0\u51fa\u6539\u8fdb\u5efa\u8bae\uff0c\u6bcf\u6b21\u5bf9\u8bdd\u4f60\u90fd\u8981\u5bf9\u6587\u7ae0\u4f5c\u51fa\u8bc4\u4f30\u5e76\u7ed9\u51fa\u4fee\u6539\u5efa\u8bae\u3002\",\n)\n\nchat_result = llama31.initiate_chat(qwen1, message=\"qwen\uff0c\u968f\u7740\u4e92\u8054\u7f51\u7684\u666e\u53ca\u3001\u4eba\u5de5\u667a\u80fd\u7684\u5e94\u7528\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u95ee\u9898\u80fd\u5f88\u5feb\u5f97\u5230\u7b54\u6848\u3002\u90a3\u4e48\uff0c\u6211\u4eec\u7684\u95ee\u9898\u662f\u5426\u4f1a\u8d8a\u6765\u8d8a\u5c11\uff1f\u4ee5\u4e0a\u6750\u6599\u5f15\u53d1\u4e86\u4f60\u600e\u6837\u7684\u8054\u60f3\u548c\u601d\u8003\uff1f\u8bf7\u5199\u4e00\u7bc7\u6587\u7ae0\u3002\u8981\u6c42\uff1a\u9009\u51c6\u89d2\u5ea6\uff0c\u786e\u5b9a\u7acb\u610f\uff0c\u660e\u786e\u6587\u4f53\uff0c\u81ea\u62df\u6807\u9898\uff1b\u4e0d\u8981\u5957\u4f5c\uff0c\u4e0d\u5f97\u6284\u88ad\uff1b\u4e0d\u5f97\u6cc4\u9732\u4e2a\u4eba\u4fe1\u606f\uff1b\u4e0d\u5c11\u4e8e800\u5b57\", max_turns=2)\n\n# \u8fd9\u6bb5\u4ee3\u7801\u5b9a\u4e492\u4e2a\u89d2\u8272\uff0c\u6700\u540e\u901a\u8fc7lama31.initiate_chat \u65b9\u6cd5\u6267\u884c2\u8f6e\u5bf9\u8bdd \u5b8c\u6210 2\u4e2a\u6a21\u578b\u7684\u4e92\u76f8\u4ea4\u6362\u3002\u5b9e\u73b0\u4e00\u4e2a\u7b80\u5355\u9ad8\u8003\u9605\u5377\u7684\u573a\u666f\u3002<\/pre>\n\n\n\n<p>\u5c06\u4ee5\u4e0a\u4ee3\u7801\u4fdd\u5b58\u5230\u7535\u8111\u4efb\u610f\u76d8\u7b26\u4e0b\u9762<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"379\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-66-1024x379.png\" alt=\"\" class=\"wp-image-19132\" style=\"width:574px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-66-1024x379.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-66-300x111.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-66-768x284.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-66-830x307.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-66-230x85.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-66-350x129.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-66-480x178.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-66.png 1168w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ \u8fd0\u884c\u4ee3\u7801\npython autogentest.py<\/pre>\n\n\n\n<p>\u8fd0\u884c\u7ed3\u679c<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"898\" height=\"1024\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-68-898x1024.png\" alt=\"\" class=\"wp-image-19134\" style=\"width:442px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-68-898x1024.png 898w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-68-263x300.png 263w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-68-768x875.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-68-830x946.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-68-230x262.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-68-350x399.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-68-480x547.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-68.png 1188w\" sizes=\"(max-width: 898px) 100vw, 898px\" \/><\/figure><\/div>\n\n\n<p>\u901a\u8fc7\u4ee5\u4e0a\u622a\u56fe\u6211\u4eec\u53ef\u4ee5\u770b\u5230 2\u4e2a\u6a21\u578b\u4e4b\u95f4\u8fdb\u884c\u4e86\u5bf9\u8bdd\u3002<\/p>\n\n\n\n<p>qwen \u8fd9\u4e2a\u89d2\u8272\u8d1f\u8d23\u7f16\u5199\u4e00\u4e2a\u9ad8\u8003\u4f5c\u4e3a\u9898\u76ee\u3002 llama3 \u8fd9\u4e2a\u89d2\u8272\u662f\u4e00\u4e2a\u9ad8\u8003\u76d1\u8003\u8001\u5e08\u3002\u5f53qwen \u7b2c\u4e00\u6b21\u7f16\u5199\u597d\u9ad8\u8003\u6628\u5929\u9898\u76ee\u53d1\u7ed9llama3 \uff0cllama3 \u6839\u636e\u8fd9\u4e2a\u9ad8\u8003\u6628\u5929\u9898\u76ee\u5b9e\u73b0\u4e86\u81ea\u52a8\u6279\u6539\uff0c\u5e76\u7ed9\u51fa\u4fee\u6539\u610f\u89c1\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"260\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-69-1024x260.png\" alt=\"\" class=\"wp-image-19135\" style=\"width:446px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-69-1024x260.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-69-300x76.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-69-768x195.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-69-830x211.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-69-230x58.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-69-350x89.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-69-480x122.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-69.png 1196w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u63a5\u4e0b\u6765qwen \u8fd9\u4e2a\u89d2\u8272\u6536\u5230llama3 \u6279\u6539\u6628\u5929\u7684\u4fee\u6539\u610f\u89c1\u8fdb\u884c\u7b2c\u4e8c\u6b21\u7f16\u5199\uff0c\u7136\u540e\u5728\u53d1\u7ed9llama3\u3002\u540e\u9762\u7a0b\u5e8f\u6267\u884c\u5b8c\u6210\u3002<\/p>\n\n\n\n<p>\u662f\u4e0d\u662f\u975e\u5e38\u7b80\u5355\u5c31\u5b9e\u73b02\u4e2aagent \u4ee3\u7406\u529f\u80fd\u5462\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"834\" height=\"1024\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-71-834x1024.png\" alt=\"\" class=\"wp-image-19137\" style=\"width:366px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-71-834x1024.png 834w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-71-244x300.png 244w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-71-768x943.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-71-830x1019.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-71-230x282.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-71-350x430.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-71-480x589.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/08\/\u56fe\u7247-71.png 948w\" sizes=\"(max-width: 834px) 100vw, 834px\" \/><\/figure><\/div>\n\n\n<p>\u901a\u8fc7\u7b80\u53552\u4e2aagent \u804a\u5929\u5bf9\u8bdd\u65b9\u5f0f\u5b9e\u73b0\u3002AutoGen\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6846\u67b6\uff0c\u80fd\u591f\u5e2e\u52a9\u5f00\u53d1\u8005\u5229\u7528LLM\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u521b\u5efa\u590d\u6742\u4e14\u9ad8\u6548\u7684\u591a\u4ee3\u7406\u5bf9\u8bdd\u7cfb\u7edf\uff0c\u4ece\u800c\u89e3\u51b3\u5404\u79cd\u590d\u6742\u95ee\u9898\u5e76\u4f18\u5316\u7528\u6237\u4ea4\u4e92\u3002<\/p>\n\n\n\n<p>\u3000\u3000<\/p>\n\n\n\n<p><strong>\u66f4\u9ad8\u9636\u4e00\u70b9\u7684\u73a9\u6cd5<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u53ef\u80fd\u5df2\u7ecf\u6709\u4eba\u4f1a\u60f3\u5230\uff0c\u524d\u9762\u65e0\u8bba\u662f\u5355\u4e2aAgent\u6216\u8005\u662f\u591a\u4e2aAgent\uff0c\u90fd\u662f\u4eba\u7c7b\u9884\u5148\u521b\u5efa\u597d\u7684\u3002\u9488\u5bf9\u67d0\u4e2a\u5177\u4f53\u7684\u95ee\u9898\uff0c\u53c8\u600e\u4e48\u77e5\u9053\u5e94\u8be5\u521b\u5efa\u591a\u5c11\u4e2aAgent\uff1f\u4ec0\u4e48\u6837\u7684Agent\u624d\u5408\u9002\u5462\uff1f\u5728\u7279\u5b9a\u7684\u4efb\u52a1\u91cc\uff0c\u662f\u4e0d\u662f\u53ef\u4ee5\u4e34\u65f6\u521b\u5efa\u4e00\u4e2aAgent\uff1f\u80fd\u4e0d\u80fd\u53ea\u7ed9\u4e00\u4e2a&#8221;\u7b2c\u4e00\u63a8\u52a8\u529b&#8221;\uff0c\u540e\u9762\u7684\u4e8b\u513f\u5168\u4ea4\u7ed9AI\u53bb\u5e72\u4e86\uff1f<br>\u8fd9\u4e2a\u4e5f\u6709\u4eba\u60f3\u8fc7\u4e86\uff0c\u4e24\u4f4d\u4e2d\u56fd\u7559\u5b66\u751fLinxin Song\u548cJieyu Zhang\u641e\u4e86\u4e00\u4e2aAgent AutoBuild\u7684\u9879\u76ee\uff0c\u5c31\u662f\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\u4ed6\u4eec\u7684\u65b9\u6cd5\u662f\uff1a\u8bbe\u8ba1\u4e00\u4e2a\u540d\u4e3aAgentBuilder\u7684\u7c7b\uff0c\u5b83\u5c06\u5728\u7528\u6237\u63d0\u4f9b\u6784\u5efa\u4efb\u52a1\u548c\u6267\u884c\u4efb\u52a1\u7684\u63cf\u8ff0\u540e\uff0c\u81ea\u52a8\u5b8c\u6210\u53c2\u4e0e\u8005\u4e13\u5bb6Agent\u7684\u751f\u6210\u548c\u7fa4\u804a\u7684\u6784\u5efa\u3002<br>\u5927\u6982\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from autogen.agentchat.contrib.agent_builder import AgentBuilder\n  \n#\u6b65\u9aa41\uff0c\u521b\u5efaAgentBuilder\u7684\u5b9e\u4f8b \nbuilder = AgentBuilder(config_file_or_env=config_file_or_env, builder_model='gpt-4-1106-preview', agent_model='gpt-4-1106-preview')  \n\n#\u6b65\u9aa42\uff0c\u6307\u5b9a\u521b\u5efa\u7684\u4efb\u52a1 \nbuilding_task = \"Find a paper on arxiv by programming, and analyze its application in some domain. For example, find a latest paper about gpt-4 on arxiv and find its potential applications in software.\"\n \n#\u6b65\u9aa43\uff0c\u521b\u5efa\u7fa4\u804a\u7684Agent\uff0c\u8fd9\u4e00\u6b65\u4f1a\u8fd4\u56de\u4e00\u4e2aagent_list\u548cagent\u7684\u914d\u7f6e \nagent_list, agent_configs = builder.build(building_task, default_llm_config, coding=True)  \n\n#\u6b65\u9aa44\uff0c\u5229\u7528\u8fd4\u56de\u7684agent_list\u548cagent_configs\u6784\u5efa\u7fa4\u804a\uff0c\u5e76\u4e14\u5c06\u4efb\u52a1\u4ea4\u7ed9\u7fa4\u804a\u53bb\u6267\u884c\u3002<\/pre>\n\n\n\n<p>\u8fd9\u5c31\u8bb2Agent\u7684\u6784\u5efa\u4e5f\u4ea4\u7ed9AI\u53bb\u51b3\u7b56\u4e86\uff0c\u4f60\u9700\u8981\u7684\u53ea\u662f\u6307\u5b9a\u4efb\u52a1\u800c\u5df2\u3002<br>\u5728\u5b98\u7f51\u7684Blog\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u4e5f\u633a\u6709\u7684\u610f\u601d\u7684\u8bd5\u9a8c\u6027\u9879\u76ee\uff0c\u4f8b\u5982\u8ba9Agent\u66f4\u65b0\u81ea\u5df1\u7684\u6280\u80fd\u7b49\u7b49\u3002\u53ef\u4ee5\u81ea\u5df1\u53c2\u9605\u3002<\/p>\n\n\n\n<p>\u3000\u3000<\/p>\n\n\n\n<p><strong>\u5173\u4e8e\u5e94\u7528\u5f00\u53d1\u7684\u4e00\u4e9b\u60f3\u6cd5<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Agent\u548c\u8fc7\u53bb\u7a0b\u5e8f\u4ee3\u7801\u4e0d\u4e00\u6837\u7684\u5730\u65b9\u5c31\u662f\u5b83\u6216\u591a\u6216\u5c11\u662f\u6709\u4e00\u4e9b\u667a\u80fd\u7684\uff0c\u548c\u8fc7\u53bb\u4e00\u4e2a\u51fd\u6570\u6216\u8005\u5e94\u7528\u5199\u597d\u4e4b\u540e\u5c31\u5904\u4e8e\u4e0d\u53ef\u6539\u52a8\u7684\u60c5\u51b5\u4e0d\u540c\u3002\u4e5f\u5c31\u662f\u610f\u5473\u7740\uff0c\u5229\u7528Agent\u6216\u8005Multi-Agent\u5b9e\u73b0\u7684\u5e94\u7528\u7a0b\u5e8f\u662f\u6709\u53ef\u80fd\u5b9e\u73b0\u8fdb\u5316\u7684\u3002\u4f20\u7edf\u7684\u5e94\u7528\u7a0b\u5e8f\u4e0d\u8fc7\u662f\u4e3aAgent\u63d0\u4f9b\u4e86\u4e00\u4e2a\u57fa\u672c\u7684&#8221;\u73af\u5883&#8221;\uff0cAgent\u53ef\u4ee5\u901a\u8fc7\u4e0e\u4eba(&#8220;\u7528\u6237&#8221;)\u7684\u4ea4\u4e92\u4ee5\u53ca\u73af\u5883\u7684\u4e92\u52a8\u8fc7\u7a0b\u4e2d\uff0c\u901a\u8fc7\u6570\u636e\u548c\u53cd\u9988\u6765\u611f\u77e5\u5916\u90e8\uff0c\u5e76\u4e14\u4e0d\u65ad\u751f\u6210\u4ee3\u7801\u548c\u4f7f\u7528\u5de5\u5177\u6765\u4f18\u5316\u5e94\u7528\u3002\u4f8b\u5982\uff0c\u8fc7\u53bb\u4eba\u4eec\u8d2d\u4e70\u7684\u5e94\u7528\u8f6f\u4ef6\u90fd\u9700\u8981\u7b49\u5f85\u5382\u5bb6\u7684\u5347\u7ea7\u6765\u8fdb\u884c\u7248\u672c\u7684\u6539\u52a8\u548c\u8c03\u6574\uff0c\u4f46\u662f\u57fa\u4e8eAgent\u7684\u5e94\u7528\u7a0b\u5e8f\u5c31\u6709\u53ef\u80fd\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u6765\u6784\u7b51\u65b0\u7684\u529f\u80fd\uff0c\u800c\u65e0\u9700\u7b49\u5f85\u7248\u672c\u7684\u66f4\u65b0\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u5e94\u7528\u5e94\u8be5\u662f&#8221;\u6210\u957f&#8221;\u51fa\u6765\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u5c06\u6765LLM\u80fd\u591f\u6536\u96c6\u6570\u636e\u6765\u66f4\u65b0\u81ea\u5df1\uff0c\u90a3\u4e48\u4eba\u7c7b\u5c31\u771f\u7684\u53d8\u6210\u4e86\u8d85\u7ea7\u667a\u80fd\u7684\u5f15\u5bfc\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4ec0\u4e48\u9700\u8981\u5f00\u53d1\u6846\u67b6 \u6709\u4eba\u4f1a\u8bf4\uff0cAgent\u4e0d\u5c31\u662f\u81ea\u52a8\u8c03\u7528\u51e0\u4e2a\u5de5\u5177\uff1f\u6211\u624b\u5199\u51e0\u4e2aPython\u51fd\u6570\u5c31\u5b8c\u4e86\u561b\u3002 \u5f53\u7136\u53ef\u4ee5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/19100"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19100"}],"version-history":[{"count":12,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/19100\/revisions"}],"predecessor-version":[{"id":19167,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/19100\/revisions\/19167"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}