{"id":52889,"date":"2025-08-11T21:04:30","date_gmt":"2025-08-11T13:04:30","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/52889.html"},"modified":"2025-08-11T21:04:30","modified_gmt":"2025-08-11T13:04:30","slug":"%e6%9e%84%e5%bb%ba%e8%87%aa%e5%b7%b1%e7%9a%84agent%e5%8d%8f%e4%bd%9c%e5%b1%82%ef%bc%9a%e4%ba%8b%e4%bb%b6%e9%a9%b1%e5%8a%a8%e4%b8%8e%e7%8a%b6%e6%80%81%e7%ae%a1%e7%90%86%e6%a8%a1%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/52889.html","title":{"rendered":"\u6784\u5efa\u81ea\u5df1\u7684Agent\u534f\u4f5c\u5c42\uff1a\u4e8b\u4ef6\u9a71\u52a8\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811130425-6899ea59a8916.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5927\u5bb6\u597d\u5440&#xff0c;\u6211\u662f\u6280\u672f\u8001\u91d1&#xff0c;\u6240\u6709\u6587\u7ae0\u9996\u53d1\u4e8e\u6211\u7684\u516c\u4f17\u53f7\u3002<\/p>\n<p>\u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0&#xff08;\u6211\u4eec\u4e3a\u4f55\u653e\u5f03\u4e86CrewAI&#xff1a;\u4e00\u4e2a\u5173\u4e8eAI\u6846\u67b6\u9009\u578b\u7684\u6df1\u5ea6\u590d\u76d8&#xff09;\u91cc&#xff0c;\u6211\u4eec\u505a\u51fa\u4e86\u4e00\u4e2a\u8270\u96be\u4f46\u575a\u5b9a\u7684\u51b3\u7b56&#xff1a;\u653e\u5f03CrewAI&#xff0c;\u56de\u5f52\u6211\u4eec\u81ea\u5df1\u7684\u5185\u6838&#xff0c;\u4eb2\u624b\u6784\u5efa\u6211\u4eec\u7684\u591a\u667a\u80fd\u4f53&#xff08;Multi-Agent&#xff09;\u534f\u4f5c\u80fd\u529b\u3002<\/p>\n<p>\u8fd9\u4e2a\u51b3\u5b9a&#xff0c;\u610f\u5473\u7740\u6211\u4eec\u5fc5\u987b\u76f4\u9762\u4e00\u4e2a\u6700\u6838\u5fc3\u7684\u6280\u672f\u95ee\u9898&#xff1a;\u5f53\u6ca1\u6709\u4e86\u73b0\u6210\u7684\u6846\u67b6&#xff0c;\u6211\u4eec\u8be5\u5982\u4f55\u8ba9\u591a\u4e2a\u72ec\u7acb\u7684Agent&#xff0c;\u50cf\u4e00\u4e2a\u771f\u6b63\u7684\u56e2\u961f\u4e00\u6837&#xff0c;\u9ad8\u6548\u3001\u53ef\u9760\u5730\u534f\u540c\u5de5\u4f5c&#xff1f;<\/p>\n<p>\u4eca\u5929&#xff0c;\u6211\u5c06\u5e26\u4f60\u4e00\u8d77&#xff0c;\u7528\u6700\u57fa\u7840\u7684\u7f16\u7a0b\u601d\u60f3&#xff0c;\u63a2\u8ba8\u5e76\u5b9e\u73b0\u4e00\u5957\u7b80\u5316\u7684Agent\u534f\u4f5c\u5c42\u3002\u6211\u4eec\u5c06\u805a\u7126\u4e8e\u4e24\u4e2a\u6700\u6838\u5fc3\u7684\u8bbe\u8ba1\u6a21\u5f0f&#xff1a;\u72b6\u6001\u7ba1\u7406&#xff08;State Management&#xff09;\u548c\u4e8b\u4ef6\u9a71\u52a8&#xff08;Event-Driven&#xff09;\u7684\u8c03\u5ea6\u3002<\/p>\n<hr \/>\n<h4>\u95ee\u9898\u7684\u672c\u8d28&#xff1a;Agent\u4e4b\u95f4\u5982\u4f55\u201c\u5bf9\u8bdd\u201d&#xff1f;<\/h4>\n<p>\u591a\u667a\u80fd\u4f53\u534f\u4f5c\u7684\u672c\u8d28&#xff0c;\u662f\u4fe1\u606f\u5728\u591a\u4e2a\u5904\u7406\u5355\u5143\u4e4b\u95f4\u7684\u3001\u53ef\u9760\u7684\u3001\u6709\u5e8f\u7684\u6d41\u52a8\u3002<\/p>\n<p>\u5982\u679c\u53ea\u662f\u7b80\u5355\u5730\u5c06Agent A\u8fd4\u56de\u7684\u5927\u6bb5\u81ea\u7136\u8bed\u8a00&#xff0c;\u76f4\u63a5\u4f5c\u4e3aAgent B\u7684\u8f93\u5165&#xff0c;\u90a3\u4e48\u6574\u4e2a\u7cfb\u7edf\u5c06\u662f\u6781\u5176\u8106\u5f31\u548c\u4e0d\u53ef\u9884\u6d4b\u7684\u3002\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u66f4\u5065\u58ee\u7684\u673a\u5236\u3002<\/p>\n<p>\u8fd9\u4e2a\u673a\u5236&#xff0c;\u7531\u4e24\u4e2a\u6838\u5fc3\u7ec4\u4ef6\u6784\u6210&#xff1a;<\/p>\n<li>\u5171\u4eab\u72b6\u6001\u673a (Shared State Machine): \u5b83\u50cf\u4e00\u5757\u56e2\u961f\u5171\u4eab\u7684\u201c\u4e2d\u592e\u767d\u677f\u201d&#xff0c;\u6240\u6709\u7684Agent\u90fd\u56f4\u7ed5\u5b83\u8fdb\u884c\u5de5\u4f5c\u3002\u5b83\u8d1f\u8d23\u8bb0\u5f55\u4efb\u52a1\u7684\u6240\u6709\u4e0a\u4e0b\u6587\u3001\u4e2d\u95f4\u4ea7\u7269\u548c\u6700\u7ec8\u7ed3\u679c\u3002<\/li>\n<li>\u8c03\u5ea6\u5668 (Dispatcher): \u5b83\u50cf\u4e00\u4e2a\u201c\u9879\u76ee\u7ecf\u7406\u201d\u6216\u201c\u6d41\u7a0b\u5f15\u64ce\u201d&#xff0c;\u8d1f\u8d23\u5b9a\u4e49\u5de5\u4f5c\u6d41&#xff0c;\u51b3\u5b9a\u5728\u4ec0\u4e48\u65f6\u5019&#xff0c;\u7531\u54ea\u4e2aAgent&#xff0c;\u53bb\u5904\u7406\u201c\u767d\u677f\u201d\u4e0a\u7684\u4ec0\u4e48\u4fe1\u606f\u3002<\/li>\n<h4>\u7b2c\u4e00\u90e8\u5206&#xff1a;\u4f5c\u4e3a\u201c\u4e2d\u592e\u767d\u677f\u201d\u7684\u5171\u4eab\u72b6\u6001\u673a<\/h4>\n<p>\u5728\u6211\u4eec\u7684vkflow-agent\u9879\u76ee\u4e2d&#xff0c;\u6211\u4eec\u7528\u4e00\u4e2a\u6781\u5176\u7b80\u5355\u7684Python\u7c7b&#xff0c;\u6765\u5b9e\u73b0\u8fd9\u4e2a\u201c\u767d\u677f\u201d&#xff1a;<\/p>\n<p><span class=\"token comment\"># vkflow_agent\/core\/shared_state.py<\/span><\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">SharedState<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">__init__<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        self<span class=\"token punctuation\">.<\/span>_state <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> key<span class=\"token punctuation\">:<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">,<\/span> default<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> self<span class=\"token punctuation\">.<\/span>_state<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span>key<span class=\"token punctuation\">,<\/span> default<span class=\"token punctuation\">)<\/span><\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">set<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> key<span class=\"token punctuation\">:<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">,<\/span> value<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token comment\"># &#8230; (\u7701\u7565\u4e86\u65e5\u5fd7\u6253\u5370\u4ee3\u7801)<\/span><br \/>\n        self<span class=\"token punctuation\">.<\/span>_state<span class=\"token punctuation\">[<\/span>key<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> value<\/p>\n<p>\u8fd9\u4e2aSharedState\u7c7b\u7684\u6838\u5fc3&#xff0c;\u5c31\u662f\u4e00\u4e2aPython\u5b57\u5178\u3002\u5b83\u7684\u4ef7\u503c\u5728\u4e8e&#xff0c;\u5b83\u4e3a\u6240\u6709Agent\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7edf\u4e00\u7684\u3001\u89c4\u8303\u5316\u7684\u4fe1\u606f\u8bfb\u5199\u63a5\u53e3\u3002\u4f8b\u5982&#xff0c;\u7814\u7a76\u5458Agent\u5b8c\u6210\u4efb\u52a1\u540e&#xff0c;\u53ef\u4ee5\u5c06\u5b83\u7684\u53d1\u73b0&#xff0c;\u7528state.set(&#034;research_findings&#034;, &#8230;)\u8fd9\u4e2a\u6807\u51c6\u52a8\u4f5c&#xff0c;\u5199\u56de\u201c\u767d\u677f\u201d&#xff0c;\u800c\u4e0d\u7528\u5173\u5fc3\u4e0b\u4e00\u4e2a\u73af\u8282\u662f\u8c01\u3001\u4ee5\u53ca\u5b83\u4f1a\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u4fe1\u606f\u3002\u8fd9\u5b9e\u73b0\u4e86Agent\u4e4b\u95f4\u7684\u201c\u89e3\u8026\u201d\u3002<\/p>\n<h4>\u7b2c\u4e8c\u90e8\u5206&#xff1a;\u4e24\u79cd\u6838\u5fc3\u7684\u201c\u8c03\u5ea6\u6a21\u5f0f\u201d<\/h4>\n<p>\u6709\u4e86\u201c\u767d\u677f\u201d&#xff0c;\u6211\u4eec\u8fd8\u9700\u8981\u4e00\u4e2a\u201c\u9879\u76ee\u7ecf\u7406\u201d\u6765\u6307\u6325\u5927\u5bb6\u5982\u4f55\u4f7f\u7528\u5b83\u3002\u8fd9\u5c31\u662f\u8c03\u5ea6\u5668\u7684\u89d2\u8272\u3002\u5728\u5b9e\u8df5\u4e2d&#xff0c;\u4e3b\u8981\u6709\u4e24\u79cd\u8c03\u5ea6\u6a21\u5f0f\u3002<\/p>\n<h5>1. \u987a\u5e8f\u8c03\u5ea6\u6a21\u5f0f (Sequential Dispatching)<\/h5>\n<p>\u8fd9\u662f\u6700\u7b80\u5355\u3001\u6700\u76f4\u63a5\u7684\u6a21\u5f0f&#xff0c;\u9002\u7528\u4e8e\u90a3\u4e9b\u6d41\u7a0b\u56fa\u5b9a\u7684\u3001\u7ebf\u6027\u7684\u4efb\u52a1\u3002\u6bd4\u5982\u6211\u4eec\u7684\u201c\u65e5\u62a5\u751f\u6210\u201d\u4efb\u52a1&#xff0c;\u5c31\u662f\u5178\u578b\u7684\u201c\u5148\u7814\u7a76&#xff0c;\u540e\u5199\u4f5c\u201d\u3002<\/p>\n<p>\u6211\u4eec\u7684SequentialDispatcher\u5b9e\u73b0\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token comment\"># vkflow_agent\/core\/dispatcher.py<\/span><\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">SequentialDispatcher<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">__init__<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> agents<span class=\"token punctuation\">:<\/span> List<span class=\"token punctuation\">[<\/span>BaseAgent<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        self<span class=\"token punctuation\">.<\/span>agents <span class=\"token operator\">&#061;<\/span> agents<\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">run<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> initial_user_request<span class=\"token punctuation\">:<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> SharedState<span class=\"token punctuation\">:<\/span><br \/>\n        state <span class=\"token operator\">&#061;<\/span> SharedState<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        state<span class=\"token punctuation\">.<\/span><span class=\"token builtin\">set<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;initial_request&#034;<\/span><span class=\"token punctuation\">,<\/span> initial_user_request<span class=\"token punctuation\">)<\/span><\/p>\n<p>        <span class=\"token keyword\">for<\/span> agent <span class=\"token keyword\">in<\/span> self<span class=\"token punctuation\">.<\/span>agents<span class=\"token punctuation\">:<\/span><br \/>\n            state <span class=\"token operator\">&#061;<\/span> agent<span class=\"token punctuation\">.<\/span>run<span class=\"token punctuation\">(<\/span>state<span class=\"token punctuation\">)<\/span> <span class=\"token comment\"># \u5c06\u4e0a\u4e00\u4e2aAgent\u7684\u8f93\u51fa\u72b6\u6001&#xff0c;\u4f5c\u4e3a\u4e0b\u4e00\u4e2a\u7684\u8f93\u5165<\/span><\/p>\n<p>        <span class=\"token keyword\">return<\/span> state<\/p>\n<p>\u5b83\u7684\u6838\u5fc3&#xff0c;\u5c31\u662f\u4e00\u4e2afor\u5faa\u73af\u3002\u5b83\u5c06SharedState\u8fd9\u4e2a\u201c\u63a5\u529b\u68d2\u201d&#xff0c;\u4f9d\u6b21\u5730\u3001\u987a\u5e8f\u5730&#xff0c;\u5728agents\u8fd9\u4e2a\u5217\u8868\u4e2d\u8fdb\u884c\u4f20\u9012\u3002\u7b80\u5355&#xff0c;\u4f46\u6709\u6548\u3002<\/p>\n<h5>2. \u4e8b\u4ef6\u9a71\u52a8\u8c03\u5ea6\u6a21\u5f0f (Event-Driven Dispatching) &#8211; \u66f4\u771f\u5b9e\u7684\u672a\u6765<\/h5>\n<p>\u7136\u800c&#xff0c;\u5728\u66f4\u590d\u6742\u7684\u771f\u5b9e\u4e16\u754c\u91cc&#xff0c;\u4efb\u52a1\u6d41\u5f80\u5f80\u4e0d\u662f\u7ebf\u6027\u7684\u3002\u4e00\u4e2aAgent\u7684\u4ea7\u51fa&#xff0c;\u53ef\u80fd\u4f1a\u89e6\u53d1\u591a\u4e2a\u4e0d\u540c\u7684\u4e0b\u6e38\u4efb\u52a1&#xff1b;\u6216\u8005&#xff0c;\u4e00\u4e2a\u4efb\u52a1\u9700\u8981\u7b49\u5f85\u591a\u4e2a\u4e0a\u6e38\u4efb\u52a1\u90fd\u5b8c\u6210&#xff0c;\u624d\u80fd\u5f00\u59cb\u6267\u884c\u3002<\/p>\n<p>\u8fd9\u65f6&#xff0c;\u6211\u4eec\u5c31\u9700\u8981\u4e00\u79cd\u66f4\u5f3a\u5927\u3001\u66f4\u7075\u6d3b\u7684\u8c03\u5ea6\u6a21\u5f0f&#xff1a;\u4e8b\u4ef6\u9a71\u52a8\u3002<\/p>\n<p>\u867d\u7136\u6211\u4eec\u8fd9\u6b21\u6ca1\u6709\u5b8c\u6574\u5b9e\u73b0\u5b83&#xff0c;\u4f46\u5b83\u7684\u6838\u5fc3\u8bbe\u8ba1\u601d\u60f3&#xff0c;\u503c\u5f97\u6211\u4eec\u6df1\u5165\u63a2\u8ba8&#xff1a;<\/p>\n<li>\u4e8b\u4ef6&#xff08;Event&#xff09;&#xff1a; \u7cfb\u7edf\u4e2d\u7684\u6bcf\u4e00\u6b21\u72b6\u6001\u53d8\u66f4&#xff08;\u5982state.set(&#8230;)&#xff09;&#xff0c;\u90fd\u53ef\u4ee5\u88ab\u89c6\u4e3a\u4e00\u4e2a\u201c\u4e8b\u4ef6\u201d\u3002\u4f8b\u5982&#xff0c;\u201cresearch_findings_updated\u201d\u4e8b\u4ef6\u3002<\/li>\n<li>\u4e8b\u4ef6\u603b\u7ebf&#xff08;Event Bus&#xff09;&#xff1a; \u6211\u4eec\u9700\u8981\u4e00\u4e2a\u5168\u5c40\u7684\u201c\u4e8b\u4ef6\u603b\u7ebf\u201d&#xff0c;\u6765\u63a5\u6536\u548c\u5e7f\u64ad\u8fd9\u4e9b\u4e8b\u4ef6\u3002<\/li>\n<li>\u76d1\u542c\u5668&#xff08;Listener&#xff09;&#xff1a; \u6bcf\u4e00\u4e2aAgent&#xff0c;\u90fd\u53ef\u4ee5\u5411\u201c\u4e8b\u4ef6\u603b\u7ebf\u201d\u6ce8\u518c\u81ea\u5df1\u611f\u5174\u8da3\u7684\u201c\u76d1\u542c\u5668\u201d\u3002\u4f8b\u5982&#xff0c;WriterAgent\u4f1a\u76d1\u542c\u201cresearch_findings_updated\u201d\u8fd9\u4e2a\u4e8b\u4ef6\u3002<\/li>\n<li>\u89e6\u53d1&#xff08;Trigger&#xff09;&#xff1a; \u5f53ResearchAgent\u5b8c\u6210\u4e86\u5b83\u7684\u5de5\u4f5c&#xff0c;\u5e76\u89e6\u53d1\u4e86\u201cresearch_findings_updated\u201d\u4e8b\u4ef6\u540e&#xff0c;\u201c\u4e8b\u4ef6\u603b\u7ebf\u201d\u4f1a\u7acb\u523b\u901a\u77e5\u6240\u6709\u76d1\u542c\u4e86\u8fd9\u4e2a\u4e8b\u4ef6\u7684Agent&#xff08;\u4e5f\u5c31\u662fWriterAgent&#xff09;&#xff0c;\u53bb\u5f00\u59cb\u5b83\u4eec\u7684\u5de5\u4f5c\u3002<\/li>\n<p>\u8fd9\u79cd\u6a21\u5f0f&#xff0c;\u5c06Agent\u4e4b\u95f4\u7684\u201c\u786c\u7f16\u7801\u201d\u7684\u987a\u5e8f\u4f9d\u8d56&#xff0c;\u5f7b\u5e95\u89e3\u8026\u6210\u4e86\u4e00\u79cd\u201c\u53d1\u5e03-\u8ba2\u9605\u201d\u5f0f\u7684\u3001\u66f4\u7075\u6d3b\u7684\u7f51\u72b6\u5173\u7cfb\u3002\u5b83\u4e3a\u6211\u4eec\u672a\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u3001\u652f\u6301\u6761\u4ef6\u5206\u652f\u3001\u5e76\u884c\u5904\u7406\u3001\u751a\u81f3\u5faa\u73af\u53cd\u9988\u7684Agent\u5de5\u4f5c\u6d41&#xff0c;\u6253\u4e0b\u4e86\u6700\u575a\u5b9e\u7684\u67b6\u6784\u57fa\u7840\u3002<\/p>\n<hr \/>\n<h4>\u7ed3\u8bed&#xff1a;\u4ece\u201c\u5de5\u4f5c\u6d41\u201d\u5230\u201c\u601d\u7ef4\u94fe\u201d<\/h4>\n<p>\u6211\u4eec\u653e\u5f03\u4e86CrewAI&#xff0c;\u4f46\u6211\u4eec\u901a\u8fc7\u4eb2\u624b\u6784\u5efa\u81ea\u5df1\u7684\u534f\u4f5c\u5c42&#xff0c;\u53cd\u800c\u66f4\u6df1\u523b\u5730\u7406\u89e3\u4e86\u6240\u6709\u591a\u667a\u80fd\u4f53\u6846\u67b6\u7684\u201c\u7b2c\u4e00\u6027\u539f\u7406\u201d\u2014\u2014\u5176\u672c\u8d28&#xff0c;\u90fd\u662f\u5728\u7528\u4ee3\u7801&#xff0c;\u53bb\u6a21\u62df\u548c\u7ba1\u7406\u4e00\u4e2a\u201c\u56e2\u961f\u201d\u7684\u4fe1\u606f\u6d41\u8f6c\u548c\u5de5\u4f5c\u6d41\u7a0b\u3002<\/p>\n<p>\u65e0\u8bba\u662f\u7b80\u5355\u7684\u201c\u987a\u5e8f\u8c03\u5ea6\u201d&#xff0c;\u8fd8\u662f\u590d\u6742\u7684\u201c\u4e8b\u4ef6\u9a71\u52a8\u201d&#xff0c;\u6211\u4eec\u90fd\u662f\u5728\u4e3a\u6211\u4eec\u90a3\u4e9b\u62e5\u6709\u5f3a\u5927\u201c\u5927\u8111\u201d&#xff08;LLM&#xff09;\u7684Agent&#xff0c;\u6784\u5efa\u4e00\u4e2a\u80fd\u8ba9\u5b83\u4eec\u9ad8\u6548\u534f\u4f5c\u7684\u201c\u795e\u7ecf\u7cfb\u7edf\u201d\u3002<\/p>\n<p>\u8fd9\u4e2a\u201c\u795e\u7ecf\u7cfb\u7edf\u201d&#xff0c;\u5c31\u662f\u6211\u4eec\u4f5c\u4e3a\u201cAI\u65f6\u4ee3\u67b6\u6784\u5e08\u201d&#xff0c;\u6700\u6838\u5fc3\u7684\u4ef7\u503c\u6240\u5728\u3002\u6211\u4eec\u4e0d\u518d\u4ec5\u4ec5\u662fPrompt\u7684\u201c\u70bc\u91d1\u672f\u58eb\u201d&#xff0c;\u6211\u4eec\u66f4\u662f\u590d\u6742\u201c\u601d\u7ef4\u94fe\u6761\u201d\u7684\u8bbe\u8ba1\u8005\u548c\u6784\u5efa\u8005\u3002<\/p>\n<p>\u8fd9&#xff0c;\u624d\u662f\u771f\u6b63\u610f\u4e49\u4e0a\u7684\u3001\u5c5e\u4e8e\u672a\u6765\u7684\u201cAI\u5de5\u7a0b\u201d\u3002<\/p>\n<hr \/>\n<p>[\u7248\u6743\u58f0\u660e] \u672c\u6587\u7531\u201c\u6280\u672f\u8001\u91d1\u201d\u539f\u521b\u9996\u53d1\u4e8e\u4e2a\u4eba\u535a\u5ba2\u53ca\u5fae\u4fe1\u516c\u4f17\u53f7\u300e\u6280\u672f\u8001\u91d1\u300f&#xff0c;\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb138\u6b21\uff0c\u70b9\u8d5e2\u6b21\uff0c\u6536\u85cf2\u6b21\u3002\u5f97CrewAI\u548cLangGraph\u592a\u201c\u9ed1\u76d2\u201d\uff1f\u6280\u672f\u8001\u91d1\u5e26\u4f60\u624b\u5199\u4e00\u4e2a\u81ea\u5df1\u7684\u591a\u667a\u80fd\u4f53\uff08Multi-Agent\uff09\u534f\u4f5c\u6846\u67b6\u3002\u672c\u6587\u6df1\u5165\u63a2\u8ba8\u4e8b\u4ef6\u9a71\u52a8\u67b6\u6784\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f\uff0c\u5e2e\u4f60\u6784\u5efa\u4e00\u4e2a\u66f4\u900f\u660e\u3001\u66f4\u53ef\u63a7\u3001\u66f4\u7075\u6d3b\u7684Agent\u534f\u4f5c\u5c42\uff0c\u544a\u522b\u4f9d\u8d56\u5730\u72f1\uff0c\u771f\u6b63\u638c\u63a7\u4f60\u7684AI\u7cfb\u7edf.<\/p>\n","protected":false},"author":2,"featured_media":52888,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,5328,53,997,81,50],"topic":[],"class_list":{"0":"post-52889","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-ai","11":"tag-langchain","12":"tag-python","13":"tag-50"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6784\u5efa\u81ea\u5df1\u7684Agent\u534f\u4f5c\u5c42\uff1a\u4e8b\u4ef6\u9a71\u52a8\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/52889.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6784\u5efa\u81ea\u5df1\u7684Agent\u534f\u4f5c\u5c42\uff1a\u4e8b\u4ef6\u9a71\u52a8\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb138\u6b21\uff0c\u70b9\u8d5e2\u6b21\uff0c\u6536\u85cf2\u6b21\u3002\u5f97CrewAI\u548cLangGraph\u592a\u201c\u9ed1\u76d2\u201d\uff1f\u6280\u672f\u8001\u91d1\u5e26\u4f60\u624b\u5199\u4e00\u4e2a\u81ea\u5df1\u7684\u591a\u667a\u80fd\u4f53\uff08Multi-Agent\uff09\u534f\u4f5c\u6846\u67b6\u3002\u672c\u6587\u6df1\u5165\u63a2\u8ba8\u4e8b\u4ef6\u9a71\u52a8\u67b6\u6784\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f\uff0c\u5e2e\u4f60\u6784\u5efa\u4e00\u4e2a\u66f4\u900f\u660e\u3001\u66f4\u53ef\u63a7\u3001\u66f4\u7075\u6d3b\u7684Agent\u534f\u4f5c\u5c42\uff0c\u544a\u522b\u4f9d\u8d56\u5730\u72f1\uff0c\u771f\u6b63\u638c\u63a7\u4f60\u7684AI\u7cfb\u7edf.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/52889.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T13:04:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811130425-6899ea59a8916.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52889.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/52889.html\",\"name\":\"\u6784\u5efa\u81ea\u5df1\u7684Agent\u534f\u4f5c\u5c42\uff1a\u4e8b\u4ef6\u9a71\u52a8\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-11T13:04:30+00:00\",\"dateModified\":\"2025-08-11T13:04:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/52889.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/52889.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52889.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6784\u5efa\u81ea\u5df1\u7684Agent\u534f\u4f5c\u5c42\uff1a\u4e8b\u4ef6\u9a71\u52a8\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6784\u5efa\u81ea\u5df1\u7684Agent\u534f\u4f5c\u5c42\uff1a\u4e8b\u4ef6\u9a71\u52a8\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/52889.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6784\u5efa\u81ea\u5df1\u7684Agent\u534f\u4f5c\u5c42\uff1a\u4e8b\u4ef6\u9a71\u52a8\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb138\u6b21\uff0c\u70b9\u8d5e2\u6b21\uff0c\u6536\u85cf2\u6b21\u3002\u5f97CrewAI\u548cLangGraph\u592a\u201c\u9ed1\u76d2\u201d\uff1f\u6280\u672f\u8001\u91d1\u5e26\u4f60\u624b\u5199\u4e00\u4e2a\u81ea\u5df1\u7684\u591a\u667a\u80fd\u4f53\uff08Multi-Agent\uff09\u534f\u4f5c\u6846\u67b6\u3002\u672c\u6587\u6df1\u5165\u63a2\u8ba8\u4e8b\u4ef6\u9a71\u52a8\u67b6\u6784\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f\uff0c\u5e2e\u4f60\u6784\u5efa\u4e00\u4e2a\u66f4\u900f\u660e\u3001\u66f4\u53ef\u63a7\u3001\u66f4\u7075\u6d3b\u7684Agent\u534f\u4f5c\u5c42\uff0c\u544a\u522b\u4f9d\u8d56\u5730\u72f1\uff0c\u771f\u6b63\u638c\u63a7\u4f60\u7684AI\u7cfb\u7edf.","og_url":"https:\/\/www.wsisp.com\/helps\/52889.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-11T13:04:30+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811130425-6899ea59a8916.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/52889.html","url":"https:\/\/www.wsisp.com\/helps\/52889.html","name":"\u6784\u5efa\u81ea\u5df1\u7684Agent\u534f\u4f5c\u5c42\uff1a\u4e8b\u4ef6\u9a71\u52a8\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-11T13:04:30+00:00","dateModified":"2025-08-11T13:04:30+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/52889.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/52889.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/52889.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6784\u5efa\u81ea\u5df1\u7684Agent\u534f\u4f5c\u5c42\uff1a\u4e8b\u4ef6\u9a71\u52a8\u4e0e\u72b6\u6001\u7ba1\u7406\u6a21\u5f0f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=52889"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52889\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/52888"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=52889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=52889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=52889"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=52889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}