{"id":30862,"date":"2025-05-05T19:08:11","date_gmt":"2025-05-05T11:08:11","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=30862"},"modified":"2025-05-05T19:08:11","modified_gmt":"2025-05-05T11:08:11","slug":"cooragent","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/pt\/cooragent\/","title":{"rendered":"Cooragent\uff1a\u4e00\u53e5\u8bdd\u6784\u5efa\u591a\u667a\u80fd\u4f53\u4efb\u52a1\u534f\u4f5c\u5de5\u5177"},"content":{"rendered":"<p>Cooragent \u662f\u6e05\u534e\u5927\u5b66 LeapLab \u5f00\u53d1\u7684\u5f00\u6e90 AI \u4ee3\u7406\u534f\u4f5c\u6846\u67b6\uff0c\u6258\u7ba1\u4e8e GitHub\u3002\u5b83\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u4e00\u53e5\u8bdd\u63cf\u8ff0\u521b\u5efa\u667a\u80fd AI \u4ee3\u7406\uff0c\u5e76\u652f\u6301\u591a\u4e2a\u4ee3\u7406\u534f\u4f5c\u5b8c\u6210\u590d\u6742\u4efb\u52a1\u3002\u6846\u67b6\u63d0\u4f9b\u4e24\u79cd\u6a21\u5f0f\uff1aAgent Factory \u81ea\u52a8\u751f\u6210\u5b9a\u5236\u5316\u4ee3\u7406\uff0cAgent <a href=\"https:\/\/www.kdjingpai.com\/pt\/workflow\/\">Workflow<\/a> \u901a\u8fc7\u4efb\u52a1\u89c4\u5212\u5b9e\u73b0\u591a\u4ee3\u7406\u534f\u4f5c\u3002Cooragent \u6df1\u5ea6\u517c\u5bb9 Langchain \u5de5\u5177\u94fe\uff0c\u652f\u6301 <a href=\"https:\/\/www.kdjingpai.com\/pt\/model-context-protocol\/\">MCP<\/a> \u534f\u8bae\uff0c\u786e\u4fdd\u4ee3\u7406\u95f4\u9ad8\u6548\u901a\u4fe1\u3002\u5f00\u53d1\u8005\u53ef\u901a\u8fc7 CLI \u5de5\u5177\u6216 API \u5feb\u901f\u6784\u5efa\u3001\u7f16\u8f91\u548c\u7ba1\u7406\u4ee3\u7406\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-30864\" title=\"Cooragent\uff1a\u8f7b\u677e\u6784\u5efa\u591a\u667a\u80fd\u4f53\u4efb\u52a1\u81ea\u52a8\u5316\u6846\u67b6-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/05\/bc83f0e791aa627.png\" alt=\"Cooragent\uff1a\u8f7b\u677e\u6784\u5efa\u591a\u667a\u80fd\u4f53\u4efb\u52a1\u81ea\u52a8\u5316\u6846\u67b6-1\" width=\"1195\" height=\"724\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/05\/bc83f0e791aa627.png 1195w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/05\/bc83f0e791aa627-768x465.png 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/05\/bc83f0e791aa627-18x12.png 18w\" sizes=\"auto, (max-width: 1195px) 100vw, 1195px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>Agent Factory \u6a21\u5f0f<\/strong>\u00a0\uff1a\u7528\u6237\u8f93\u5165\u4efb\u52a1\u63cf\u8ff0\uff0c\u7cfb\u7edf\u81ea\u52a8\u5206\u6790\u9700\u6c42\uff0c\u751f\u6210\u5b9a\u5236\u5316 AI \u4ee3\u7406\uff0c\u65e0\u9700\u590d\u6742 Prompt \u8bbe\u8ba1\u3002<\/li>\n<li><strong>Agent Workflow \u6a21\u5f0f<\/strong>\u00a0\uff1a\u652f\u6301\u591a\u4ee3\u7406\u534f\u4f5c\uff0c\u81ea\u52a8\u5206\u89e3\u4efb\u52a1\u3001\u5206\u914d\u89d2\u8272\uff0c\u5b8c\u6210\u590d\u6742\u76ee\u6807\u3002<\/li>\n<li><strong>\u6df1\u5ea6\u517c\u5bb9 Langchain<\/strong>\u00a0\uff1a\u652f\u6301 Langchain \u7684 Prompt\u3001Chain\u3001Memory\u3001Document Loaders \u7b49\u7ec4\u4ef6\uff0c\u7b80\u5316\u5f00\u53d1\u3002<\/li>\n<li><strong>MCP \u534f\u8bae\u652f\u6301<\/strong>\u00a0\uff1a\u6807\u51c6\u5316\u4ee3\u7406\u95f4\u4fe1\u606f\u4ea4\u6362\uff0c\u652f\u6301\u591a\u8f6e\u4ea4\u4e92\u548c\u9ad8\u6548\u4e0a\u4e0b\u6587\u7ba1\u7406\u3002<\/li>\n<li><strong>CLI \u5de5\u5177<\/strong>\u00a0\uff1a\u63d0\u4f9b\u547d\u4ee4\u884c\u754c\u9762\uff0c\u5feb\u901f\u521b\u5efa\u3001\u7f16\u8f91\u3001\u5220\u9664\u548c\u5217\u51fa\u4ee3\u7406\u3002<\/li>\n<li><strong>API \u652f\u6301<\/strong>\u00a0\uff1a\u901a\u8fc7 API \u5b9e\u73b0\u4ee3\u7406\u521b\u5efa\u3001\u4efb\u52a1\u63d0\u4ea4\u548c\u72b6\u6001\u76d1\u63a7\u7684\u81ea\u52a8\u5316\u7ba1\u7406\u3002<\/li>\n<li><strong>\u5de5\u5177\u8c03\u7528<\/strong>\u00a0\uff1a\u652f\u6301\u7f51\u9875\u722c\u866b\u3001\u4ee3\u7801\u6267\u884c\u3001\u6587\u4ef6\u64cd\u4f5c\u7b49\u529f\u80fd\uff0c\u6269\u5c55\u4ee3\u7406\u80fd\u529b\u3002<\/li>\n<li><strong>\u793e\u533a\u5171\u4eab<\/strong>\u00a0\uff1a\u7528\u6237\u53ef\u53d1\u5e03\u4ee3\u7406\u5230\u793e\u533a\uff0c\u4f9b\u5176\u4ed6\u5f00\u53d1\u8005\u4f7f\u7528\u6216\u4f18\u5316\u3002<\/li>\n<li><strong>\u53ef\u89c2\u5bdf\u6027<\/strong>\u00a0\uff1a\u63d0\u4f9b\u4ee3\u7406\u8fd0\u884c\u72b6\u6001\u548c\u6027\u80fd\u65e5\u5fd7\uff0c\u4fbf\u4e8e\u76d1\u63a7\u548c\u8c03\u8bd5\u3002<\/li>\n<li><strong>\u672c\u5730\u90e8\u7f72<\/strong>\u00a0\uff1a\u652f\u6301\u672c\u5730\u8fd0\u884c\uff0c\u4fdd\u62a4\u6570\u636e\u9690\u79c1\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<p>Cooragent \u652f\u6301 Python 3.12+ \u73af\u5883\uff0c\u63d0\u4f9b conda \u548c venv \u4e24\u79cd\u5b89\u88c5\u65b9\u5f0f\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<h4>\u4f7f\u7528 conda \u5b89\u88c5<\/h4>\n<ol>\n<li><strong>\u514b\u9686\u4ed3\u5e93<\/strong><br \/>\n\u5728\u7ec8\u7aef\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4e0b\u8f7d Cooragent \u4ee3\u7801\uff1a<\/p>\n<pre><code>git clone https:\/\/github.com\/LeapLabTHU\/cooragent.git\r\ncd cooragent\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong><br \/>\n\u521b\u5efa\u5e76\u6fc0\u6d3b Python 3.12 \u73af\u5883\uff1a<\/p>\n<pre><code>conda create -n cooragent python=3.12\r\nconda activate cooragent\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u5b89\u88c5\u4f9d\u8d56<\/strong><br \/>\n\u5b89\u88c5\u9879\u76ee\u4f9d\u8d56\uff1a<\/p>\n<pre><code>pip install -e .\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u53ef\u9009\uff1a\u5b89\u88c5\u6d4f\u89c8\u5668\u5de5\u5177<\/strong><br \/>\n\u82e5\u9700\u4f7f\u7528\u7f51\u9875\u722c\u866b\u7b49\u529f\u80fd\uff0c\u5b89\u88c5 Playwright\uff1a<\/p>\n<pre><code>playwright install\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong><br \/>\n\u590d\u5236\u793a\u4f8b\u914d\u7f6e\u6587\u4ef6\u5e76\u7f16\u8f91\uff1a<\/p>\n<pre><code>cp .env.example .env\r\n<\/code><\/pre>\n<p>\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\u00a0<code>.env<\/code>\u00a0\u6587\u4ef6\uff0c\u586b\u5165 API \u5bc6\u94a5\uff08\u5982 OpenAI \u6216\u5176\u4ed6\u6a21\u578b\uff09\u3002\u82e5\u9700\u542f\u7528 MCP \u534f\u8bae\uff0c\u8bbe\u7f6e\u00a0<code>MCP_AGENT=True<\/code>\u3002\u82e5\u9700\u542f\u7528\u6d4f\u89c8\u5668\u5de5\u5177\uff0c\u8bbe\u7f6e\u00a0<code>USE_BROWSER=True<\/code>\u3002<\/li>\n<li><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><br \/>\n\u8fd0\u884c CLI \u5de5\u5177\uff0c\u68c0\u67e5\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1a<\/p>\n<pre><code>python cli.py\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<h4>\u4f7f\u7528 venv \u5b89\u88c5<\/h4>\n<ol>\n<li><strong>\u514b\u9686\u4ed3\u5e93<\/strong><br \/>\n\u540c conda \u65b9\u5f0f\uff0c\u8fd0\u884c\uff1a<\/p>\n<pre><code>git clone https:\/\/github.com\/LeapLabTHU\/cooragent.git\r\ncd cooragent\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong><br \/>\n\u4f7f\u7528 uv \u5de5\u5177\u5b89\u88c5 Python 3.12 \u5e76\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<pre><code>uv python install 3.12\r\nuv venv --python 3.12\r\nsource .venv\/bin\/activate  # Windows: .venv\\Scripts\\activate\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u5b89\u88c5\u4f9d\u8d56<\/strong><br \/>\n\u540c\u6b65\u4f9d\u8d56\uff1a<\/p>\n<pre><code>uv <a href=\"https:\/\/www.kdjingpai.com\/pt\/sync\/\">sync<\/a>\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u53ef\u9009\uff1a\u5b89\u88c5\u6d4f\u89c8\u5668\u5de5\u5177<\/strong><br \/>\n\u540c conda \u65b9\u5f0f\uff0c\u8fd0\u884c\uff1a<\/p>\n<pre><code>playwright install\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong><br \/>\n\u540c conda \u65b9\u5f0f\uff0c\u590d\u5236\u5e76\u7f16\u8f91\u00a0<code>.env<\/code>\u00a0\u6587\u4ef6\u3002<\/li>\n<li><strong>\u8fd0\u884c\u9879\u76ee<\/strong><br \/>\n\u4f7f\u7528 uv \u8fd0\u884c CLI \u5de5\u5177\uff1a<\/p>\n<pre><code>uv run cli.py\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<h4>Windows \u5b89\u88c5\u6ce8\u610f\u4e8b\u9879<\/h4>\n<p>Windows \u7528\u6237\u9700\u989d\u5916\u5b89\u88c5\u7279\u5b9a\u4f9d\u8d56\uff0c\u8be6\u89c1\u5b98\u65b9\u6587\u6863\u00a0<a href=\"https:\/\/github.com\/LeapLabTHU\/cooragent\/blob\/main\/docs\/QA.md\">Windows Platform Support<\/a>\u3002\u786e\u4fdd\u6b63\u786e\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u5e76\u5b89\u88c5\u6240\u6709\u4f9d\u8d56\u3002<\/p>\n<h3>\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<p>Cooragent \u63d0\u4f9b Agent Factory \u548c Agent Workflow \u4e24\u79cd\u6a21\u5f0f\uff0c\u7ed3\u5408 CLI \u5de5\u5177\u548c API\uff0c\u64cd\u4f5c\u7b80\u5355\u9ad8\u6548\u3002<\/p>\n<h4>Agent Factory \u6a21\u5f0f<\/h4>\n<p>\u6b64\u6a21\u5f0f\u901a\u8fc7\u4e00\u53e5\u8bdd\u63cf\u8ff0\u5feb\u901f\u751f\u6210 AI \u4ee3\u7406\u3002\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u80a1\u7968\u5206\u6790\u4ee3\u7406\uff1a<\/p>\n<pre><code>python cli.py run -t agent_factory -u test -m 'Create a stock analysis expert agent to analyze the Xiaomi stock trend, today is 22 April, 2025, look over the past month, analyze the big news about Xiaomi, then predict the stock price trend for the next trading day, and provide buy or sell recommendations.'\r\n<\/code><\/pre>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\u00a0\uff1a\n<ol>\n<li>\u8fd0\u884c\u547d\u4ee4\uff0c\u6307\u5b9a\u4efb\u52a1\u7c7b\u578b\u4e3a\u00a0<code>agent_factory<\/code>\u3002<\/li>\n<li>\u53c2\u6570\u00a0<code>-u<\/code>\u00a0\u8bbe\u7f6e\u7528\u6237 ID\uff08\u5982\u00a0<code>test<\/code>\uff09\uff0c<code>-m<\/code>\u00a0\u8f93\u5165\u4efb\u52a1\u63cf\u8ff0\u3002<\/li>\n<li>\u7cfb\u7edf\u901a\u8fc7\u8bb0\u5fc6\u548c\u6269\u5c55\u5206\u6790\u9700\u6c42\uff0c\u9009\u62e9\u5de5\u5177\uff0c\u81ea\u52a8\u4f18\u5316 Prompt\uff0c\u751f\u6210\u4ee3\u7406\u3002<\/li>\n<li>\u4ee3\u7406\u8fd0\u884c\u5e76\u8f93\u51fa\u7ed3\u679c\uff08\u5982\u80a1\u7968\u5206\u6790\u62a5\u544a\uff09\u3002<\/li>\n<li>\u53ef\u901a\u8fc7\u00a0<code>edit-agent -n &lt;agent_name&gt; -i<\/code>\u00a0\u7f16\u8f91\u4ee3\u7406\uff0c\u4f18\u5316\u884c\u4e3a\u3002<\/li>\n<\/ol>\n<\/li>\n<li><strong>\u7279\u8272\u529f\u80fd<\/strong>\u00a0\uff1a\u65e0\u9700\u590d\u6742 Prompt \u8bbe\u8ba1\uff0c\u7cfb\u7edf\u81ea\u52a8\u7406\u89e3\u9700\u6c42\uff0c\u751f\u6210\u9ad8\u6548\u4ee3\u7406\u3002<\/li>\n<\/ul>\n<h4>Agent Workflow \u6a21\u5f0f<\/h4>\n<p>\u6b64\u6a21\u5f0f\u652f\u6301\u591a\u4ee3\u7406\u534f\u4f5c\uff0c\u9002\u5408\u590d\u6742\u4efb\u52a1\u3002\u4f8b\u5982\uff0c\u89c4\u5212 2025 \u5e74\u4e94\u4e00\u4e91\u5357\u65c5\u884c\uff1a<\/p>\n<pre><code>python cli.py run -t agent_workflow -u test -m 'Use the task planning agent, web crawler agent, code execution agent, browser operation agent, report writing agent, and file operation agent to plan a trip to Yunnan for the May Day holiday in 2025. First, run the web crawler agent to fetch information about Yunnan tourist attractions, use the browser operation agent to <a href=\"https:\/\/www.kdjingpai.com\/pt\/browse-aiwudaiai\/\">browse<\/a> the attraction information and select the top 10 most worthwhile attractions. Then, plan a 5-day itinerary, use the report writing agent to generate a travel report, and finally use the file operation agent to save the report as a PDF file.'\r\n<\/code><\/pre>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\u00a0\uff1a\n<ol>\n<li>\u8fd0\u884c\u547d\u4ee4\uff0c\u6307\u5b9a\u4efb\u52a1\u7c7b\u578b\u4e3a\u00a0<code>agent_workflow<\/code>\u3002<\/li>\n<li>\u8f93\u5165\u4efb\u52a1\u63cf\u8ff0\uff0c\u5217\u51fa\u6240\u9700\u4ee3\u7406\u3002<\/li>\n<li>\u7cfb\u7edf Planner \u5206\u6790\u4efb\u52a1\uff0c\u5206\u89e3\u6b65\u9aa4\uff0c\u5206\u914d\u7ed9\u9002\u5408\u7684\u4ee3\u7406\u3002<\/li>\n<li>\u4ee3\u7406\u901a\u8fc7 MCP \u534f\u8bae\u534f\u4f5c\uff0c\u5b8c\u6210\u4efb\u52a1\uff08\u5982\u751f\u6210\u65c5\u884c\u62a5\u544a\uff09\u3002<\/li>\n<li>\u8f93\u51fa\u7ed3\u679c\uff08\u5982 PDF \u6587\u4ef6\uff09\u3002<\/li>\n<\/ol>\n<\/li>\n<li><strong>\u7279\u8272\u529f\u80fd<\/strong>\u00a0\uff1aPlanner \u81ea\u52a8\u4f18\u5316\u4efb\u52a1\u5206\u914d\uff0cMCP \u534f\u8bae\u786e\u4fdd\u9ad8\u6548\u901a\u4fe1\uff0c\u652f\u6301\u590d\u6742\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<h4>CLI \u5de5\u5177\u4f7f\u7528<\/h4>\n<p>\u5e38\u7528 CLI \u547d\u4ee4\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u521b\u5efa\u4ee3\u7406<\/strong>\u00a0\uff1a<code>python cli.py create -n &lt;agent_name&gt;<\/code><\/li>\n<li><strong>\u7f16\u8f91\u4ee3\u7406<\/strong>\u00a0\uff1a<code>python cli.py edit-agent -n &lt;agent_name&gt; -i<\/code><\/li>\n<li><strong>\u5217\u51fa\u4ee3\u7406<\/strong>\u00a0\uff1a<code>python cli.py list-agents -u &lt;user-id&gt; -m &lt;regex&gt;<\/code><\/li>\n<li><strong>\u5220\u9664\u4ee3\u7406<\/strong>\u00a0\uff1a<code>python cli.py remove-agent -n &lt;agent_name&gt; -u &lt;user-id&gt;<\/code><\/li>\n<li><strong>\u67e5\u770b\u72b6\u6001<\/strong>\u00a0\uff1a<code>python cli.py status<\/code><\/li>\n<\/ul>\n<h4>API \u4f7f\u7528<\/h4>\n<p>API \u652f\u6301\u81ea\u52a8\u5316\u7ba1\u7406\u4ee3\u7406\u3002\u4f8b\u5982\uff0c\u63d0\u4ea4\u4efb\u52a1\uff1a<\/p>\n<pre><code>import requests\r\nurl = \"http:\/\/localhost:8000\/task\"\r\npayload = {\"task\": \"Analyze stock trend\", \"user_id\": \"test\"}\r\nresponse = requests.post(url, json=payload)\r\nprint(response.json())\r\n<\/code><\/pre>\n<ul>\n<li><strong>\u529f\u80fd<\/strong>\u00a0\uff1a\u652f\u6301\u4ee3\u7406\u521b\u5efa\u3001\u4efb\u52a1\u63d0\u4ea4\u3001\u7ed3\u679c\u83b7\u53d6\u548c\u72b6\u6001\u76d1\u63a7\u3002<\/li>\n<li><strong>\u7528\u9014<\/strong>\u00a0\uff1a\u96c6\u6210\u5230\u811a\u672c\u6216\u5e94\u7528\uff0c\u6784\u5efa\u81ea\u5b9a\u4e49\u754c\u9762\u3002<\/li>\n<\/ul>\n<h4>MCP \u534f\u8bae\u4f7f\u7528<\/h4>\n<p>MCP \u534f\u8bae\u652f\u6301\u4ee3\u7406\u95f4\u9ad8\u6548\u901a\u4fe1\u3002\u4f8b\u5982\uff0c\u521b\u5efa Excel \u64cd\u4f5c\u4ee3\u7406\uff1a<\/p>\n<pre><code>server_params = StdioServerParameters(\r\ncommand=\"python\",\r\nargs=[str(get_project_root()) + \"\/src\/mcp\/excel_mcp\/server.py\"]\r\n)\r\nasync def excel_agent():\r\nasync with stdio_client(server_params) as (read, write):\r\nasync with ClientSession(read, write) as session:\r\nawait session.initialize()\r\ntools = await load_mcp_tools(session)\r\nagent = create_react_agent(model, tools)\r\nreturn agent\r\nagent = asyncio.run(excel_agent())\r\nagent_obj = Agent(user_id=\"share\", \r\nagent_name=\"mcp_excel_agent\", \r\nnick_name=\"mcp_excel_agent\", \r\ndescription=\"The agent is good at manipulating excel files, which includes creating, reading, writing, and analyzing excel files\", \r\nllm_type=LLMType.BASIC, \r\nselected_tools=[], \r\nprompt=\"\")\r\nMCPManager.register_agent(\"mcp_excel_agent\", agent, agent_obj)\r\n<\/code><\/pre>\n<ul>\n<li><strong>\u542f\u7528 MCP<\/strong>\u00a0\uff1a\u5728\u00a0<code>.env<\/code>\u00a0\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u00a0<code>MCP_AGENT=True<\/code>\u3002<\/li>\n<li><strong>\u7528\u9014<\/strong>\u00a0\uff1a\u652f\u6301\u591a\u4ee3\u7406\u534f\u4f5c\u548c\u8de8\u5e73\u53f0\u4ea4\u4e92\u3002<\/li>\n<\/ul>\n<h3>\u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\u786e\u4fdd\u00a0<code>.env<\/code>\u00a0\u6587\u4ef6\u914d\u7f6e\u6b63\u786e\uff0cAPI \u5bc6\u94a5\u6709\u6548\u3002<\/li>\n<li>\u6d4f\u89c8\u5668\u5de5\u5177\u9ed8\u8ba4\u7981\u7528\uff0c\u9700\u8bbe\u7f6e\u00a0<code>USE_BROWSER=True<\/code>\u00a0\u542f\u7528\u3002<\/li>\n<li>Windows \u7528\u6237\u9700\u53c2\u8003\u00a0<a href=\"https:\/\/github.com\/LeapLabTHU\/cooragent\/blob\/main\/docs\/QA.md\">Windows Platform Support<\/a>\u00a0\u5b89\u88c5\u989d\u5916\u4f9d\u8d56\u3002<\/li>\n<li>\u5b9a\u671f\u66f4\u65b0\u4ee3\u7801\uff1a<code>git pull origin main<\/code>\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u5e94\u7528\u573a\u666f<\/h2>\n<ol>\n<li><strong>\u4efb\u52a1\u81ea\u52a8\u5316<\/strong><br \/>\nCooragent \u53ef\u81ea\u52a8\u5316\u91cd\u590d\u6027\u4efb\u52a1\u3002\u4f8b\u5982\uff0c\u4f01\u4e1a\u5458\u5de5\u4f7f\u7528 Agent Workflow \u6536\u96c6\u5e02\u573a\u6570\u636e\u3001\u751f\u6210\u62a5\u544a\uff0c\u8282\u7701\u65f6\u95f4\u3002<\/li>\n<li><strong>\u9879\u76ee\u7ba1\u7406<\/strong><br \/>\n\u5f00\u53d1\u8005\u901a\u8fc7 Agent Factory \u521b\u5efa\u9879\u76ee\u7ba1\u7406\u4ee3\u7406\uff0c\u81ea\u52a8\u5206\u914d\u4efb\u52a1\u3001\u8ddf\u8e2a\u8fdb\u5ea6\uff0c\u9002\u5408\u56e2\u961f\u534f\u4f5c\u3002<\/li>\n<li><strong>\u6570\u636e\u5206\u6790<\/strong><br \/>\n\u7814\u7a76\u4eba\u5458\u4f7f\u7528 Cooragent \u5206\u6790\u80a1\u7968\u6216\u65b0\u95fb\u6570\u636e\uff0c\u751f\u6210\u8d8b\u52bf\u9884\u6d4b\u6216\u884c\u4e1a\u62a5\u544a\u3002<\/li>\n<li><strong>\u6559\u80b2\u4e0e\u5b66\u4e60<\/strong><br \/>\n\u5b66\u751f\u521b\u5efa\u5b66\u4e60\u52a9\u624b\u4ee3\u7406\uff0c\u6574\u7406\u8bfe\u7a0b\u8d44\u6599\u3001\u89e3\u7b54\u95ee\u9898\uff0c\u63d0\u5347\u6548\u7387\u3002<\/li>\n<li><strong>\u6587\u4ef6\u5904\u7406<\/strong><br \/>\n\u4f7f\u7528 MCP \u534f\u8bae\u521b\u5efa Excel \u4ee3\u7406\uff0c\u81ea\u52a8\u5904\u7406\u8868\u683c\u6570\u636e\uff0c\u9002\u5408\u8d22\u52a1\u6216\u6570\u636e\u5206\u6790\u573a\u666f\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>QA<\/h2>\n<ol>\n<li><strong>Cooragent \u652f\u6301\u54ea\u4e9b\u8bed\u8a00\u6a21\u578b\uff1f<\/strong><br \/>\n\u652f\u6301\u591a\u79cd\u8bed\u8a00\u6a21\u578b\uff08\u5982 OpenAI\u3001\u5176\u4ed6\u5f00\u6e90\u6a21\u578b\uff09\uff0c\u5177\u4f53\u7531 Langchain \u517c\u5bb9\u6027\u51b3\u5b9a\uff0c\u9700\u914d\u7f6e API \u5bc6\u94a5\u3002<\/li>\n<li><strong>\u5982\u4f55\u5171\u4eab\u4ee3\u7406\uff1f<\/strong><br \/>\n\u8fd0\u884c\u00a0<code>python cli.py publish -n &lt;agent_name&gt;<\/code>\uff0c\u5c06\u4ee3\u7406\u53d1\u5e03\u5230\u793e\u533a\uff0c\u4f9b\u5176\u4ed6\u5f00\u53d1\u8005\u4f7f\u7528\u3002<\/li>\n<li><strong>\u4efb\u52a1\u5931\u8d25\u600e\u4e48\u529e\uff1f<\/strong><br \/>\n\u68c0\u67e5\u00a0<code>.env<\/code>\u00a0\u6587\u4ef6\u7684 API \u5bc6\u94a5\u548c\u7f51\u7edc\u8fde\u63a5\uff0c\u67e5\u770b\u65e5\u5fd7\uff08<code>logs\/<\/code>\u00a0\u76ee\u5f55\uff09\u3002\u53ef\u5728 GitHub \u63d0\u4ea4 issue \u5bfb\u6c42\u5e2e\u52a9\u3002<\/li>\n<li><strong>\u662f\u5426\u652f\u6301\u672c\u5730\u90e8\u7f72\uff1f<\/strong><br \/>\n\u662f\u7684\uff0cCooragent \u652f\u6301\u672c\u5730\u90e8\u7f72\uff0c\u4fdd\u62a4\u6570\u636e\u9690\u79c1\uff0c\u9002\u5408\u4f01\u4e1a\u4f7f\u7528\u3002<\/li>\n<li><strong>\u5982\u4f55\u8d21\u732e\u4ee3\u7801\uff1f<\/strong><br \/>\n\u53c2\u8003\u00a0<a href=\"https:\/\/github.com\/LeapLabTHU\/cooragent\/blob\/main\/CONTRIBUTING.md\">\u8d21\u732e\u6307\u5357<\/a>\uff0c\u63d0\u4ea4\u4fee\u590d\u3001\u6587\u6863\u6539\u8fdb\u6216\u65b0\u529f\u80fd\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Cooragent \u662f\u6e05\u534e\u5927\u5b66 LeapLab \u5f00\u53d1\u7684\u5f00\u6e90 AI \u4ee3\u7406\u534f\u4f5c\u6846\u67b6\uff0c\u6258\u7ba1\u4e8e GitHub\u3002\u5b83\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u4e00\u53e5\u8bdd\u63cf\u8ff0\u521b\u5efa\u667a\u80fd AI \u4ee3\u7406\uff0c\u5e76\u652f\u6301\u591a\u4e2a\u4ee3\u7406\u534f\u4f5c\u5b8c\u6210\u590d\u6742\u4efb\u52a1\u3002\u6846\u67b6\u63d0\u4f9b\u4e24\u79cd\u6a21\u5f0f\uff1aAgent Factory \u81ea\u52a8\u751f\u6210\u5b9a\u5236\u5316&#8230;<\/p>\n","protected":false},"author":1,"featured_media":62314,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,201],"class_list":["post-30862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-aizhinengti"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/30862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/comments?post=30862"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/30862\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media\/62314"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media?parent=30862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/categories?post=30862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/tags?post=30862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}