{"id":86299,"date":"2026-07-28T12:25:32","date_gmt":"2026-07-28T04:25:32","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/86299.html"},"modified":"2026-07-28T12:25:32","modified_gmt":"2026-07-28T04:25:32","slug":"%e7%bb%99%e6%89%80%e6%9c%89%e6%83%b3%e8%bd%acagent%e5%bc%80%e5%8f%91%e6%88%96%e8%80%85agent%e8%bf%9b%e9%98%b6%e5%90%8c%e5%ad%a6%e7%9a%84%e4%b8%80%e4%ba%9b%e5%bb%ba%e8%ae%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/86299.html","title":{"rendered":"\u7ed9\u6240\u6709\u60f3\u8f6cAgent\u5f00\u53d1\u6216\u8005Agent\u8fdb\u9636\u540c\u5b66\u7684\u4e00\u4e9b\u5efa\u8bae"},"content":{"rendered":"<p>\u6700\u8fd1\u4e00\u76f4\u6709\u5c0f\u4f19\u4f34\u79c1\u4fe1\u6211\u5173\u4e8eAgent\u5f00\u53d1\u7684\u95ee\u9898&#xff1a;<\/p>\n<p>\u6709\u7684\u540c\u5b66\u662fJava\u3001Python\u540e\u7aef&#xff0c;\u89c9\u5f97\u4f20\u7edf\u5f00\u53d1\u8d8a\u6765\u8d8a\u5377&#xff0c;\u60f3\u8f6cAgent\u65b9\u5411&#xff1b;<\/p>\n<p>\u6709\u7684\u540c\u5b66\u5df2\u7ecf\u4f1a\u8c03\u7528API\u3001\u80fd\u8dd1\u901ademo&#xff0c;\u4f46\u611f\u89c9\u81ea\u5df1\u53ea\u662f\u5728&#034;\u62fc\u79ef\u6728&#034;&#xff0c;\u4e0d\u77e5\u9053\u600e\u4e48\u8fdb\u9636&#xff1b;<\/p>\n<p>\u6709\u7684\u540c\u5b66\u662f\u4ea7\u54c1\u3001\u8fd0\u8425\u80cc\u666f&#xff0c;\u60f3\u8de8\u754c\u505aAgent\u5f00\u53d1&#xff0c;\u4e0d\u77e5\u9053\u4ece\u54ea\u91cc\u5207\u5165\u3002<\/p>\n<p>\u804a\u7684\u591a\u4e86&#xff0c;\u53d1\u73b0\u8fd9\u662f\u4e00\u4e2a\u5171\u6027\u95ee\u9898&#xff0c;\u5e72\u8106\u6574\u7406\u6210\u6587\u7ae0&#xff0c;\u5e0c\u671b\u5bf9\u66f4\u591a\u4eba\u6709\u5e2e\u52a9\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u4f1a\u7ed3\u5408\u6211\u7684\u7ecf\u5386&#xff0c;\u8bb2\u6e05\u695a\u4e09\u4ef6\u4e8b&#xff1a;<\/p>\n<p>1. \u4f20\u7edf\u5f00\u53d1\u8f6cAgent\u5f00\u53d1&#xff0c;\u6700\u5927\u7684\u6311\u6218\u5230\u5e95\u662f\u4ec0\u4e48&#xff1f;<\/p>\n<p>2. \u5982\u4f55\u9ad8\u6548\u5b8c\u6210\u8f6c\u578b\u2014\u2014\u4ece&#034;\u4f1a\u7528&#034;\u5230&#034;\u4f1a\u505a&#034;&#xff1f;\u5177\u4f53\u5b66\u4ec0\u4e48\u3001\u600e\u4e48\u5b66&#xff1f;<\/p>\n<p>3. \u5728\u638c\u63e1\u57fa\u7840\u4e4b\u540e&#xff0c;\u5982\u4f55\u771f\u6b63\u8fdb\u9636&#xff1f;\u8fdb\u9636\u8981\u7a81\u7834\u54ea\u4e9b\u5173\u952e\u70b9&#xff1f;<\/p>\n<h2>\u5148\u8bf4\u7ed3\u8bba<\/h2>\n<li>\u4f20\u7edf\u5f00\u53d1\u8f6cAgent\u5f00\u53d1&#xff0c;\u6700\u5927\u7684\u6311\u6218\u4e0d\u662f\u5b66\u65b0\u6280\u672f&#xff0c;\u800c\u662f\u601d\u7ef4\u65b9\u5f0f\u7684\u8f6c\u53d8\u2014\u2014\u4ece&#034;\u786e\u5b9a\u6027\u7f16\u7a0b&#034;\u5207\u6362\u5230&#034;\u6982\u7387\u6027\u7f16\u7a0b&#034;&#xff1b;<\/li>\n<li>&#034;\u4e09\u5237&#034;\u5b98\u65b9\u6587\u6863\u662f\u9ad8\u6548\u638c\u63e1\u65b0\u6280\u672f\u7684\u5236\u80dc\u6cd5\u5b9d&#xff0c;\u4e0b\u9762\u4f1a\u7528\u4e00\u4e2a\u5177\u4f53\u4f8b\u5b50\u6f14\u793a\u5982\u4f55\u4e09\u5237LangChain\u6587\u6863&#xff1a;<\/li>\n<ul>\n<li>1\u5237&#xff08;1-2\u5929&#xff09;&#xff1a;\u4ece\u5934\u770b\u5230\u5c3e&#xff0c;\u5efa\u7acb\u6574\u4f53\u8ba4\u77e5\u5730\u56fe&#xff0c;\u626b\u6e05\u6982\u5ff5\u76f2\u70b9&#xff1b;<\/li>\n<li>2\u5237&#xff08;3-5\u5929&#xff09;&#xff1a;\u52a8\u624b\u8dd1\u6bcf\u4e00\u4e2a\u4ee3\u7801\u793a\u4f8b&#xff0c;\u5199\u6ce8\u91ca\u548c\u603b\u7ed3&#xff0c;\u505a\u5230&#034;\u770b\u5f97\u61c2\u3001\u8dd1\u5f97\u901a&#034;&#xff1b;<\/li>\n<li>3\u5237&#xff08;2-3\u5929&#xff09;&#xff1a;\u5148\u53ea\u5199\u6ce8\u91ca&#xff0c;\u4e0d\u770b\u6587\u6863\u81ea\u5df1\u5b9e\u73b0&#xff0c;\u9047\u5230\u5361\u70b9\u518d\u5bf9\u7167\u539f\u6587&#xff0c;\u5b9e\u73b0&#034;\u808c\u8089\u8bb0\u5fc6&#034;\u3002<\/li>\n<\/ul>\n<li>\u63a8\u8350\u5b66\u4e60\u8def\u7ebf\u548c\u514d\u8d39\u8d44\u6e90&#xff08;\u4e0b\u6587\u6709\u8be6\u7ec6\u8bf4\u660e&#xff09;&#xff1a;<\/li>\n<ul>\n<li>\u5165\u95e8&#xff1a;langchaingo\u5b98\u65b9\u793a\u4f8b \u2192 \u5434\u6069\u8fbe\u300aBuilding Systems with the ChatGPT API\u300b\u514d\u8d39\u8bfe\u7a0b \u2192 \u52a8\u624b\u505a\u4e00\u4e2aRAG\u95ee\u7b54\u673a\u5668\u4eba<\/li>\n<li>\u8fdb\u9636&#xff1a;\u5411\u91cf\u6570\u636e\u5e93&#xff08;ChromaDB\/Milvus&#xff09;&#043; Prompt Engineering\u6307\u5357 &#043; Eino\/langchaingo\u5de5\u4f5c\u6d41\u7f16\u6392<\/li>\n<li>\u9ad8\u9636&#xff1a;Multi-Agent\u67b6\u6784\u8bbe\u8ba1 &#043; Agent\u5de5\u7a0b\u5316\u5b9e\u8df5 &#043; Go&#043;Python\u6df7\u5408\u67b6\u6784<\/li>\n<\/ul>\n<li>\u8981\u8fdb\u9636&#xff0c;\u5c31\u8981\u6df1\u5165\u7406\u89e3Multi-Agent\u67b6\u6784\u548cAgent\u5de5\u7a0b\u5316\u3002\u4e0b\u6587\u4f1a\u7528Mermaid\u67b6\u6784\u56fe\u5e2e\u4f60\u76f4\u89c2\u7406\u89e3\u8fd9\u4e9b\u6982\u5ff5&#xff0c;\u8ba9\u5927\u5bb6\u5148\u6709\u4e2a\u76ee\u6807&#xff0c;\u5fc3\u4e2d\u6709\u706b&#xff0c;\u773c\u91cc\u6709\u5149\u3002<\/li>\n<p>\u4e0b\u9762\u8fdb\u5165\u6b63\u6587&#xff0c;\u770b\u770b\u5bf9\u5927\u5bb6\u6709\u6ca1\u6709\u542f\u53d1\u3002<\/p>\n<h2>\u4f20\u7edf\u5f00\u53d1\u601d\u7ef4 vs Agent\u5f00\u53d1\u601d\u7ef4<\/h2>\n<p>\u65e0\u8bba\u662f\u540e\u7aef\u8f6cAgent&#xff0c;\u8fd8\u662f\u524d\u7aef\u8f6cAgent&#xff0c;\u5728\u6709\u7f16\u7a0b\u57fa\u7840\u7684\u60c5\u51b5\u4e0b&#xff0c;\u5b66\u4e60\u65b0\u7684\u6280\u672f\u6808\u672c\u8eab\u5e76\u4e0d\u96be\u3002<\/p>\n<p>\u5bf9\u6709\u57fa\u7840\u7684\u540c\u5b66\u6765\u8bf4&#xff0c;\u5b66Agent\u5f00\u53d1&#xff0c;\u65e0\u5916\u4e4e\u5c31\u662f&#xff1a;\u5b66\u4f1a\u8c03\u7528LLM API\u3001\u7406\u89e3\u5de5\u5177\u8c03\u7528\u673a\u5236\u3001\u638c\u63e1\u4e00\u4e2a\u6846\u67b6\u7684\u57fa\u672c\u7528\u6cd5\u3002\u8ba4\u771f\u5b66&#xff0c;\u4e24\u5468\u5185\u5c31\u80fd\u8dd1\u901a\u7b2c\u4e00\u4e2a\u9879\u76ee\u3002<\/p>\n<p>\u4f46\u662f&#xff0c;\u771f\u6b63\u7684\u6311\u6218\u5728\u54ea\u91cc&#xff1f;<\/p>\n<p>\u6211\u8ba4\u4e3a\u96be\u70b9\u5728\u601d\u7ef4\u65b9\u5f0f\u7684\u8f6c\u53d8&#xff1a;\u4ece&#034;\u786e\u5b9a\u6027\u7f16\u7a0b&#034;\u5230&#034;\u6982\u7387\u6027\u7f16\u7a0b&#034;\u7684\u8f6c\u53d8\u3002<\/p>\n<h3>\u4f20\u7edf\u5f00\u53d1\u601d\u7ef4<\/h3>\n<p>\u4f20\u7edf\u5f00\u53d1\u662f\u786e\u5b9a\u6027\u7684\u3002\u6211\u4eec\u6765\u770b\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u2014\u2014\u5b9e\u73b0&#034;\u67e5\u8be2\u5929\u6c14\u5e76\u5224\u65ad\u662f\u5426\u9002\u5408\u6237\u5916\u8fd0\u52a8&#034;&#xff1a;<\/p>\n<p>\/\/ \u4f20\u7edf\u5f00\u53d1&#xff1a;\u786e\u5b9a\u6027\u903b\u8f91func CheckOutdoorActivity(city string) string {    weather :&#061; GetWeatherAPI(city)  \/\/ \u4e00\u5b9a\u8fd4\u56de {Temp, Weather, Wind}    switch weather.Weather {    case&#034;\u6674&#034;:        if weather.Temp &gt;&#061; 15 &amp;&amp; weather.Temp &lt;&#061; 35 {            return&#034;\u9002\u5408\u6237\u5916\u8fd0\u52a8&#034;        }        return&#034;\u6e29\u5ea6\u4e0d\u9002\u5b9c&#034;    case&#034;\u9634&#034;:        return&#034;\u53ef\u4ee5\u505a\u6237\u5916\u8fd0\u52a8&#xff0c;\u4f46\u8981\u6ce8\u610f\u5929\u6c14\u53d8\u5316&#034;    default:        return&#034;\u4e0d\u9002\u5408\u6237\u5916\u8fd0\u52a8&#034;    }}\/\/ \u8f93\u5165&#034;\u5317\u4eac&#034;&#xff0c;\u6bcf\u6b21\u8fd0\u884c\u7ed3\u679c\u5b8c\u5168\u4e00\u81f4\/\/ \u51fa\u4e86\u95ee\u9898&#xff0c;\u65ad\u70b9\u8c03\u8bd5\u4e00\u8def\u8ddf\u4e0b\u53bb\u5c31\u884c<\/p>\n<p>\u8fd9\u5c31\u662f\u6211\u4eec\u719f\u6089\u7684\u7f16\u7a0b\u65b9\u5f0f&#xff1a;\u8f93\u5165A&#xff0c;\u8f93\u51faB&#xff0c;\u903b\u8f91\u53ef\u9884\u6d4b&#xff0c;bug\u53ef\u8ffd\u8e2a\u3002<\/p>\n<h3>Agent\u5f00\u53d1\u601d\u7ef4<\/h3>\n<p>\u540c\u6837\u7684\u9700\u6c42&#xff0c;\u7528Agent\u6765\u505a&#xff1a;<\/p>\n<p>\/\/ Agent\u5f00\u53d1&#xff1a;\u6982\u7387\u6027\u903b\u8f91\/\/ \u4f7f\u7528 Go \u7248 LangChain: github.com\/tmc\/langchaingoimport (    &#034;github.com\/tmc\/langchaingo\/agents&#034;    &#034;github.com\/tmc\/langchaingo\/tools&#034;    &#034;github.com\/tmc\/langchaingo\/llms\/openai&#034;)\/\/ \u5b9a\u4e49\u5de5\u5177&#xff1a;\u67e5\u8be2\u5929\u6c14func getWeatherTool() tools.Tool {    return tools.GenericTool{        Name:        &#034;get_weather&#034;,        Description: &#034;\u67e5\u8be2\u6307\u5b9a\u57ce\u5e02\u7684\u5929\u6c14&#xff0c;\u8fd4\u56de\u6e29\u5ea6\u3001\u5929\u6c14\u72b6\u51b5\u3001\u98ce\u529b&#034;,        Run: func(ctx context.Context, input string) (string, error) {            return weatherAPI(input), nil        },    }}llm, _ :&#061; openai.New(openai.WithModel(&#034;gpt-4o&#034;))toolList :&#061; []tools.Tool{getWeatherTool()}systemPrompt :&#061; &#096;\u4f60\u662f\u4e00\u4e2a\u6237\u5916\u8fd0\u52a8\u987e\u95ee\u3002\u6839\u636e\u7528\u6237\u63d0\u4f9b\u7684\u57ce\u5e02\u5929\u6c14&#xff0c;\u5224\u65ad\u662f\u5426\u9002\u5408\u6237\u5916\u8fd0\u52a8\u3002\u5224\u65ad\u89c4\u5219&#xff1a;- \u6674\u5929\u3001\u6e29\u5ea615-35\u5ea6&#xff1a;\u9002\u5408- \u9634\u5929&#xff1a;\u53ef\u4ee5&#xff0c;\u4f46\u9700\u6ce8\u610f- \u96e8\u5929\/\u5927\u98ce\/\u9ad8\u6e29\/\u4f4e\u6e29&#xff1a;\u4e0d\u9002\u5408\u8bf7\u7ed9\u51fa\u5224\u65ad\u5e76\u89e3\u91ca\u539f\u56e0\u3002&#096;agent :&#061; agents.NewOpenAIFunctionsAgent(llm, toolList)executor :&#061; agents.NewExecutor(agent)result, _ :&#061; executor.Call(ctx, map[string]any{    &#034;input&#034;: &#034;\u5317\u4eac\u5929\u6c14\u600e\u4e48\u6837&#xff1f;&#034;,})\/\/ \u540c\u6837\u8f93\u5165&#034;\u5317\u4eac&#034;&#xff0c;\u53ef\u80fd\u51fa\u73b0&#xff1a;\/\/ \u7b2c1\u6b21&#xff1a;&#034;\u5317\u4eac\u4eca\u5929\u6674\u5929&#xff0c;25\u5ea6&#xff0c;\u975e\u5e38\u9002\u5408\u6237\u5916\u8fd0\u52a8&#xff01;&#034; \u2705\/\/ \u7b2c2\u6b21&#xff1a;&#034;\u5317\u4eac\u4eca\u5929\u6674\u5929&#xff0c;25\u5ea6&#xff0c;\u975e\u5e38\u9002\u5408\u6237\u5916\u8fd0\u52a8\u3002\u63a8\u8350\u53bb\u516c\u56ed\u8dd1\u6b65\u3002&#034; \u2705 \u8fd8\u7ed9\u4e86\u5efa\u8bae\/\/ \u7b2c3\u6b21&#xff1a;&#034;\u5317\u4eac\u4eca\u5929\u5929\u6c14\u4e0d\u9519&#xff0c;\u5e94\u8be5\u53ef\u4ee5\u6237\u5916\u8fd0\u52a8\u5427&#xff1f;&#034; \u26a0\ufe0f \u4e0d\u786e\u5b9a\u7684\u8bed\u6c14\/\/ \u7b2c4\u6b21&#xff1a;&#096;{&#034;suitable&#034;: true}&#096; \u274c \u8f93\u51fa\u683c\u5f0f\u4e0d\u7b26\u5408\u9884\u671f&#xff01;<\/p>\n<p>\u53d1\u73b0\u95ee\u9898\u4e86\u5417&#xff1f; \u540c\u6837\u7684\u4ee3\u7801\u3001\u540c\u6837\u7684\u8f93\u5165&#xff0c;\u8f93\u51fa\u5374\u5929\u5dee\u5730\u522b&#xff1a;<\/p>\n<ul>\n<li>\u6709\u65f6\u5019LLM\u4f1a\u81ea\u5df1&#034;\u52a0\u620f&#034;&#xff08;\u63a8\u8350\u8dd1\u6b65\u5730\u70b9&#xff09;&#xff0c;\u8fd9\u53ef\u80fd\u662f\u60ca\u559c\u4e5f\u53ef\u80fd\u662f\u60ca\u5413<\/li>\n<li>\u6709\u65f6\u5019\u8bed\u6c14\u4e0d\u786e\u5b9a&#xff0c;\u5f71\u54cd\u7528\u6237\u4f53\u9a8c<\/li>\n<li>\u6709\u65f6\u5019\u8f93\u51fa\u683c\u5f0f\u5b8c\u5168\u8dd1\u504f&#xff0c;\u4e0b\u6e38\u89e3\u6790\u76f4\u63a5\u62a5\u9519<\/li>\n<\/ul>\n<p>\u66f4\u5173\u952e\u7684\u662f&#xff1a;\u8fd9\u4e0d\u662f&#034;\u4ee3\u7801bug&#034;&#xff0c;\u4f60\u6ca1\u6cd5\u901a\u8fc7\u65ad\u70b9\u8c03\u8bd5\u6765\u627e\u5230\u95ee\u9898\u3002 \u8fd9\u662fPrompt\u8bbe\u8ba1\u95ee\u9898\u3001\u6a21\u578b\u6e29\u5ea6\u53c2\u6570\u95ee\u9898\u3001\u751a\u81f3\u662f\u6a21\u578b\u672c\u8eab\u7684\u884c\u4e3a\u7279\u6027\u3002<\/p>\n<h3>\u5982\u4f55\u5e94\u5bf9\u8fd9\u79cd\u4e0d\u786e\u5b9a\u6027&#xff1f;<\/h3>\n<p>\u6709\u7ecf\u9a8c\u7684Agent\u5f00\u53d1\u8005\u4f1a\u505a\u4e09\u4ef6\u4e8b&#xff1a;<\/p>\n<p>1. \u7ed3\u6784\u5316\u8f93\u51fa&#xff08;Structured Output&#xff09;<\/p>\n<p>\/\/ \u5b9a\u4e49\u671f\u671b\u7684\u8f93\u51fa\u7ed3\u6784\u4f53type ActivityAdvice struct {    Suitable   bool   &#096;json:&#034;suitable&#034;&#096;    Reason     string&#096;json:&#034;reason&#034;&#096;    Suggestion string&#096;json:&#034;suggestion&#034;&#096;}\/\/ \u5728Prompt\u4e2d\u8981\u6c42LLM\u8f93\u51faJSON\u683c\u5f0f&#xff0c;\u7136\u540e\u7528 json.Unmarshal \u89e3\u6790systemPrompt :&#061; &#096;\u4f60\u662f\u4e00\u4e2a\u6237\u5916\u8fd0\u52a8\u987e\u95ee\u3002\u8bf7\u4e25\u683c\u6309\u7167\u4ee5\u4e0bJSON\u683c\u5f0f\u8f93\u51fa&#xff1a;{&#034;suitable&#034;: true\/false, &#034;reason&#034;: &#034;\u5224\u65ad\u7406\u7531&#034;, &#034;suggestion&#034;: &#034;\u5177\u4f53\u5efa\u8bae&#034;}\u4e0d\u8981\u8f93\u51fa\u4efb\u4f55\u5176\u4ed6\u5185\u5bb9\u3002&#096;\/\/ \u8c03\u7528\u540e\u89e3\u6790var advice ActivityAdviceif err :&#061; json.Unmarshal([]byte(llmOutput), &amp;advice); err !&#061; nil {    \/\/ \u8f93\u51fa\u683c\u5f0f\u4e0d\u5bf9&#xff0c;\u89e6\u53d1\u91cd\u8bd5\u6216\u964d\u7ea7    log.Warn(&#034;\u8f93\u51fa\u683c\u5f0f\u89e3\u6790\u5931\u8d25&#034;, &#034;output&#034;, llmOutput, &#034;error&#034;, err)}<\/p>\n<p>2. \u8bc4\u4f30\u800c\u975e\u8c03\u8bd5<\/p>\n<p>\/\/ \u8dd1100\u6b21&#xff0c;\u7edf\u8ba1\u6210\u529f\u7387successCount :&#061; 0for i :&#061; 0; i &lt; 100; i&#043;&#043; {    output, err :&#061; executor.Call(ctx, map[string]any{        &#034;input&#034;: &#034;\u5317\u4eac\u5929\u6c14\u600e\u4e48\u6837&#xff1f;&#034;,    })    if err !&#061; nil {        continue    }    var advice ActivityAdvice    if json.Unmarshal([]byte(output), &amp;advice) &#061;&#061; nil {        successCount&#043;&#043;    }}fmt.Printf(&#034;\u6210\u529f\u7387: %.2f%%\\\\n&#034;, float64(successCount)\/100*100)<\/p>\n<p>3. \u9632\u5fa1\u6027\u7f16\u7a0b<\/p>\n<p>var advice ActivityAdviceif err :&#061; json.Unmarshal([]byte(agentOutput), &amp;advice); err !&#061; nil {    \/\/ \u964d\u7ea7\u65b9\u6848&#xff1a;\u7528\u66f4\u7b80\u5355\u7684\u65b9\u5f0f\u91cd\u65b0\u8bf7\u6c42&#xff0c;\u6216\u8fd4\u56de\u515c\u5e95    advice &#061; ActivityAdvice{        Suitable:   false,        Reason:     &#034;\u89e3\u6790\u5931\u8d25&#034;,        Suggestion: &#034;\u8bf7\u91cd\u8bd5&#034;,    }}<\/p>\n<h3>\u9636\u6bb5\u6027\u603b\u7ed3<\/h3>\n<p>\u4f20\u7edf\u5f00\u53d1\u548cAgent\u5f00\u53d1\u7684\u5173\u6ce8\u70b9\u662f\u4e0d\u4e00\u6837\u7684&#xff1a;<\/p>\n<table>\n<tr>\u7ef4\u5ea6\u4f20\u7edf\u5f00\u53d1Agent\u5f00\u53d1<\/tr>\n<tbody>\n<tr>\n<td>\u6838\u5fc3\u903b\u8f91<\/td>\n<td>if-else \/ \u7b97\u6cd5<\/td>\n<td>Prompt &#043; \u6a21\u578b\u63a8\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u95ee\u9898\u5b9a\u4f4d<\/td>\n<td>\u65ad\u70b9\u8c03\u8bd5<\/td>\n<td>\u7edf\u8ba1\u8bc4\u4f30<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u51fa\u7279\u5f81<\/td>\n<td>\u786e\u5b9a\u6027<\/td>\n<td>\u6982\u7387\u6027<\/td>\n<\/tr>\n<tr>\n<td>\u8d28\u91cf\u4fdd\u8bc1<\/td>\n<td>\u5355\u5143\u6d4b\u8bd5<\/td>\n<td>\u8bc4\u4f30\u6570\u636e\u96c6 &#043; \u56de\u5f52\u6d4b\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>\u5931\u8d25\u5904\u7406<\/td>\n<td>try-catch<\/td>\n<td>\u964d\u7ea7 &#043; \u91cd\u8bd5 &#043; \u515c\u5e95<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8f6c\u578b\u7684\u540c\u5b66&#xff0c;\u8981\u6709\u610f\u8bc6\u5730\u8c03\u6574\u81ea\u5df1\u7684\u601d\u7ef4\u89d2\u5ea6\u3002\u4e0d\u8981\u7528\u5199\u4e1a\u52a1\u4ee3\u7801\u7684\u65b9\u5f0f\u53bb\u505aAgent\u5f00\u53d1&#xff0c;\u4e0d\u7136\u4f1a\u5f88\u75db\u82e6\u3002<\/p>\n<h2>&#034;\u4e09\u5237&#034;\u5b98\u65b9\u6587\u6863\u5b9e\u6218\u6f14\u793a<\/h2>\n<p>\u524d\u9762\u8bf4\u4e86\u65b9\u6cd5\u8bba&#xff0c;\u8fd9\u91cc\u6211\u7528\u4e00\u4e2a\u771f\u5b9e\u6848\u4f8b\u6f14\u793a&#xff1a;\u5982\u4f55\u7528&#034;\u4e09\u5237&#034;\u6cd5\u5403\u900f langchaingo&#xff08;Go\u7248LangChain&#xff09;\u3002<\/p>\n<p>\u6ce8&#xff1a;Go \u751f\u6001\u76ee\u524d\u6700\u6210\u719f\u7684 Agent \u6846\u67b6\u662f langchaingo&#xff08;13k&#043; Star&#xff09;\u548c\u5b57\u8282\u8df3\u52a8\u5f00\u6e90\u7684 Eino\u3002\u8fd9\u91cc\u4ee5 langchaingo \u4e3a\u4f8b&#xff0c;\u65b9\u6cd5\u540c\u6837\u9002\u7528\u4e8e\u4efb\u4f55\u6846\u67b6\u7684\u5b98\u65b9\u6587\u6863\u3002<\/p>\n<h3>1\u5237&#xff1a;\u5efa\u7acb\u8ba4\u77e5\u5730\u56fe&#xff08;1-2\u5929&#xff09;<\/h3>\n<p>\u76ee\u6807&#xff1a;\u4e0d\u5199\u4ee3\u7801&#xff0c;\u53ea\u505a\u4e09\u4ef6\u4e8b\u2014\u2014<\/p>\n<li>\u6d4f\u89c8 langchaingo \u5b98\u65b9\u793a\u4f8b \u548c\u6587\u6863&#xff0c;\u753b\u51fa\u601d\u7ef4\u5bfc\u56fe&#xff1b;<\/li>\n<li>\u7406\u89e3\u6bcf\u4e2a\u6a21\u5757\u662f\u5e72\u4ec0\u4e48\u7684&#xff0c;\u4e0d\u5fc5\u7406\u89e3\u600e\u4e48\u7528&#xff1b;<\/li>\n<li>\u6807\u8bb0\u51fa\u81ea\u5df1\u6700\u9700\u8981\u7684\u6a21\u5757&#xff0c;2\u5237\u65f6\u91cd\u70b9\u7a81\u7834\u3002<\/li>\n<p>\u5237\u5b8c\u540e\u4f60\u5e94\u8be5\u80fd\u753b\u51fa\u8fd9\u6837\u4e00\u5f20\u8ba4\u77e5\u5730\u56fe&#xff1a;<\/p>\n<p>langchaingo&#xff08;Go Agent\u6846\u67b6&#xff09;\u251c\u2500\u2500 llms&#xff08;\u6a21\u578b\u4ea4\u4e92\u5c42&#xff09;\u2502   \u251c\u2500\u2500 openai \u2014\u2014 \u8c03\u7528OpenAI\/GPT\u2502   \u251c\u2500\u2500 ollama \u2014\u2014 \u672c\u5730\u6a21\u578b\u63a8\u7406\u2502   \u2514\u2500\u2500 anthropic \u2014\u2014 \u8c03\u7528Claude\u251c\u2500\u2500 chains&#xff08;\u94fe\u5f0f\u8c03\u7528&#xff09;\u2502   \u251c\u2500\u2500 LLMChain \u2014\u2014 \u57fa\u7840\u94fe\u2502   \u251c\u2500\u2500 ConversationalRetrievalQA \u2014\u2014 \u5bf9\u8bdd\u68c0\u7d22\u94fe\u2502   \u2514\u2500\u2500 MapReduce \u2014\u2014 \u957f\u6587\u672c\u603b\u7ed3\u251c\u2500\u2500 agents&#xff08;\u667a\u80fd\u4f53&#xff09;\u2502   \u251c\u2500\u2500 tools \u2014\u2014 \u5de5\u5177\u5b9a\u4e49\u2502   \u251c\u2500\u2500 OpenAIFunctionsAgent \u2014\u2014 \u51fd\u6570\u8c03\u7528Agent\u2502   \u2514\u2500\u2500 Executor \u2014\u2014 \u6267\u884c\u5faa\u73af&#xff08;ReAct\u6a21\u5f0f&#xff09;\u251c\u2500\u2500 vectorstores&#xff08;\u5411\u91cf\u6570\u636e\u5e93&#xff09;\u2502   \u251c\u2500\u2500 chroma \u2014\u2014 ChromaDB\u2502   \u251c\u2500\u2500 milvus \u2014\u2014 Milvus\u2502   \u2514\u2500\u2500 pgvector \u2014\u2014 PostgreSQL\u5411\u91cf\u6269\u5c55\u2514\u2500\u2500 documentloaders&#xff08;\u6587\u6863\u52a0\u8f7d&#xff09;    \u251c\u2500\u2500 PDF\/Text\/Markdown\u52a0\u8f7d\u5668    \u2514\u2500\u2500 \u6587\u6863\u5207\u7247\u5668<\/p>\n<p>\u907f\u5751\u63d0\u793a&#xff1a;\u5f88\u591a\u65b0\u624b\u4e00\u4e0a\u6765\u5c31\u8ddf\u7740Quickstart\u6572\u4ee3\u7801&#xff0c;\u7ed3\u679c\u6572\u5b8c\u4e86\u4e5f\u4e0d\u77e5\u9053\u81ea\u5df1\u6572\u7684\u662f\u4ec0\u4e48\u30021\u5237\u7684\u6838\u5fc3\u662f&#034;\u8ba4\u77e5\u5148\u884c&#034;\u2014\u2014\u5148\u77e5\u9053\u6709\u4ec0\u4e48&#xff0c;\u518d\u51b3\u5b9a\u5b66\u4ec0\u4e48\u3002<\/p>\n<h3>2\u5237&#xff1a;\u52a8\u624b\u8dd1\u901a\u6bcf\u4e00\u4e2a\u793a\u4f8b&#xff08;3-5\u5929&#xff09;<\/h3>\n<p>\u76ee\u6807&#xff1a;\u6309\u6a21\u5757\u987a\u5e8f&#xff0c;\u628a\u5b98\u65b9\u6587\u6863\u4e2d\u6bcf\u4e00\u4e2a\u4ee3\u7801\u793a\u4f8b\u8dd1\u901a&#xff0c;\u5e76\u5728\u4ee3\u7801\u4e2d\u5199\u6ce8\u91ca\u3002<\/p>\n<p>\u4ee5Agent\u6a21\u5757\u4e3a\u4f8b&#xff0c;2\u5237\u65f6\u4f60\u5e94\u8be5\u505a\u5230&#xff1a;<\/p>\n<p>\/\/ &#061;&#061;&#061;&#061;&#061; \u6b65\u9aa41&#xff1a;\u5b9a\u4e49\u5de5\u5177 &#061;&#061;&#061;&#061;&#061;\/\/ \u5de5\u5177\u662fAgent\u7684\u624b&#xff0c;\u8ba9LLM\u80fd\u6267\u884c\u5b9e\u9645\u64cd\u4f5cimport&#034;github.com\/tmc\/langchaingo\/tools&#034;func searchKnowledgeBaseTool() tools.Tool {    return tools.GenericTool{        Name:        &#034;search_knowledge_base&#034;,        Description: &#034;\u641c\u7d22\u516c\u53f8\u5185\u90e8\u77e5\u8bc6\u5e93&#xff0c;\u67e5\u8be2\u4ea7\u54c1\u6587\u6863\u3001\u6280\u672f\u89c4\u8303\u7b49\u4fe1\u606f&#034;,        Run: func(ctx context.Context, query string) (string, error) {            \/\/ \u5b9e\u9645\u9879\u76ee\u4e2d\u8fd9\u91cc\u63a5\u5411\u91cf\u6570\u636e\u5e93            return fmt.Sprintf(&#034;\u5173\u4e8e&#039;%s&#039;\u7684\u641c\u7d22\u7ed3\u679c&#xff1a;&#8230;&#034;, query), nil        },    }}func createTicketTool() tools.Tool {    return tools.GenericTool{        Name:        &#034;create_ticket&#034;,        Description: &#034;\u521b\u5efa\u5de5\u5355\u3002\u8f93\u5165\u683c\u5f0f&#xff1a;{\\\\&#034;title\\\\&#034;: \\\\&#034;\u5de5\u5355\u6807\u9898\\\\&#034;, \\\\&#034;priority\\\\&#034;: \\\\&#034;\u9ad8\/\u4e2d\/\u4f4e\\\\&#034;}&#034;,        Run: func(ctx context.Context, input string) (string, error) {            var req struct {                Title    string&#096;json:&#034;title&#034;&#096;                Priority string&#096;json:&#034;priority&#034;&#096;            }            json.Unmarshal([]byte(input), &amp;req)            return fmt.Sprintf(&#034;\u5df2\u521b\u5efa\u5de5\u5355&#xff1a;%s&#xff0c;\u4f18\u5148\u7ea7&#xff1a;%s&#034;, req.Title, req.Priority), nil        },    }}\/\/ &#061;&#061;&#061;&#061;&#061; \u6b65\u9aa42&#xff1a;\u521b\u5efaAgent &#061;&#061;&#061;&#061;&#061;\/\/ Executor\u662fAgent\u7684\u5927\u8111&#xff1a;\u63a5\u6536\u4efb\u52a1 \u2192 \u601d\u8003 \u2192 \u8c03\u5de5\u5177 \u2192 \u89c2\u5bdf\u7ed3\u679c \u2192 \u7ee7\u7eed\u601d\u8003 \u2192 \u8f93\u51fa\u7b54\u6848toolList :&#061; []tools.Tool{searchKnowledgeBaseTool(), createTicketTool()}llm, _ :&#061; openai.New(    openai.WithModel(&#034;gpt-4o&#034;),    openai.WithToken(&#034;sk-xxx&#034;),)agent :&#061; agents.NewOpenAIFunctionsAgent(llm, toolList)executor :&#061; agents.NewExecutor(    agent,    agents.WithMaxIterations(5),    \/\/ \u9632\u6b62\u65e0\u9650\u5faa\u73af    agents.WithCallbacksHandler(callbacks.LogHandler{}), \/\/ \u6253\u5370\u601d\u8003\u8fc7\u7a0b&#xff0c;\u8c03\u8bd5\u5fc5\u5907)\/\/ &#061;&#061;&#061;&#061;&#061; \u6b65\u9aa43&#xff1a;\u8fd0\u884c\u5e76\u89c2\u5bdf &#061;&#061;&#061;&#061;&#061;result, _ :&#061; executor.Call(ctx, map[string]any{    &#034;input&#034;: &#034;\u5ba2\u6237\u53cd\u9988\u767b\u5f55\u9875\u9762\u6253\u4e0d\u5f00&#xff0c;\u5e2e\u6211\u67e5\u4e00\u4e0b\u6709\u6ca1\u6709\u76f8\u5173\u6587\u6863&#xff0c;\u6709\u7684\u8bdd\u521b\u5efa\u5de5\u5355&#034;,})\/\/ callbacks.LogHandler \u4f1a\u8f93\u51fa&#xff1a;\/\/ &gt; Thought: \u7528\u6237\u60f3\u67e5\u767b\u5f55\u95ee\u9898\u7684\u6587\u6863&#xff0c;\u6211\u9700\u8981\u5148\u641c\u7d22\u77e5\u8bc6\u5e93\/\/ &gt; Action: search_knowledge_base\/\/ &gt; Action Input: &#034;\u767b\u5f55\u9875\u9762\u6253\u4e0d\u5f00&#034;\/\/ &gt; Observation: \u627e\u52301\u7bc7\u76f8\u5173\u6587\u6863&#xff1a;\u300a\u767b\u5f55\u6a21\u5757\u6545\u969c\u6392\u67e5\u6307\u5357\u300b\/\/ &gt; Thought: \u6709\u76f8\u5173\u6587\u6863&#xff0c;\u73b0\u5728\u521b\u5efa\u5de5\u5355\/\/ &gt; Action: create_ticket\/\/ &gt; Action Input: {&#034;title&#034;: &#034;\u5ba2\u6237\u53cd\u9988\u767b\u5f55\u9875\u9762\u6253\u4e0d\u5f00&#034;, &#034;priority&#034;: &#034;\u9ad8&#034;}\/\/ &gt; Observation: \u5df2\u521b\u5efa\u5de5\u5355&#8230;\/\/ &gt; Final Answer: \u5df2\u4e3a\u60a8\u67e5\u5230\u76f8\u5173\u6587\u6863\u5e76\u521b\u5efa\u4e86\u9ad8\u4f18\u5148\u7ea7\u5de5\u5355\u3002<\/p>\n<p>\u5173\u952e\u4e60\u60ef&#xff1a;2\u5237\u65f6\u4e00\u5b9a\u8981\u6253\u5f00\u65e5\u5fd7\u56de\u8c03&#xff01;\u8fd9\u662f\u7406\u89e3Agent&#034;\u601d\u8003\u8fc7\u7a0b&#034;\u6700\u76f4\u89c2\u7684\u65b9\u5f0f\u3002\u5f88\u591a\u540c\u5b66\u8dd1\u4e86demo\u4f46\u4e0d\u77e5\u9053Agent\u5185\u90e8\u600e\u4e48\u8fd0\u4f5c\u7684&#xff0c;\u5c31\u662f\u56e0\u4e3a\u6ca1\u770b\u65e5\u5fd7\u3002<\/p>\n<h3>3\u5237&#xff1a;\u8131\u79bb\u6587\u6863\u72ec\u7acb\u5b9e\u73b0&#xff08;2-3\u5929&#xff09;<\/h3>\n<p>\u76ee\u6807&#xff1a;\u53ea\u4fdd\u7559\u81ea\u5df1\u5199\u7684\u6ce8\u91ca&#xff0c;\u4e0d\u770b\u6587\u6863&#xff0c;\u72ec\u7acb\u5b9e\u73b0\u3002<\/p>\n<p>\u5177\u4f53\u505a\u6cd5&#xff1a;<\/p>\n<li>\u628a2\u5237\u65f6\u5199\u7684\u6ce8\u91ca\u63d0\u53d6\u51fa\u6765&#xff0c;\u5f53\u4f5c&#034;\u9700\u6c42\u6587\u6863&#034;&#xff1b;<\/li>\n<li>\u6e05\u7a7a\u4ee3\u7801&#xff0c;\u5bf9\u7740\u6ce8\u91ca\u81ea\u5df1\u5199&#xff1b;<\/li>\n<li>\u5361\u4f4f\u4e86\u4e0d\u8981\u7acb\u523b\u770b\u6587\u6863&#xff0c;\u5148\u601d\u8003&#034;\u4e3a\u4ec0\u4e48\u8fd9\u91cc\u9700\u8981\u8fd9\u6837\u8bbe\u8ba1&#034;&#xff1b;<\/li>\n<li>\u5b9e\u5728\u5199\u4e0d\u51fa\u6765\u4e86&#xff0c;\u518d\u5bf9\u7167\u6587\u6863&#xff0c;\u7528\u7ea2\u7b14\u6807\u51fa\u81ea\u5df1\u5361\u4f4f\u7684\u5730\u65b9\u3002<\/li>\n<p>3\u5237\u540e\u4f60\u4f1a\u53d1\u73b0&#xff0c;\u90a3\u4e9b\u8ba9\u4f60\u5361\u4f4f\u7684\u5730\u65b9&#xff0c;\u6070\u6070\u662f\u4f60\u7406\u89e3\u6700\u8584\u5f31\u7684\u5730\u65b9\u3002\u8fd9\u4e2a&#034;\u5361\u70b9\u6e05\u5355&#034;\u5c31\u662f\u4f60\u540e\u7eed\u6df1\u5165\u5b66\u4e60\u7684\u8def\u7ebf\u56fe\u3002<\/p>\n<p>\u65f6\u95f4\u6295\u5165\u603b\u8ba1&#xff1a;1\u52371-2\u5929 &#043; 2\u52373-5\u5929 &#043; 3\u52372-3\u5929 \u2248 1-2\u5468&#xff0c;\u5c31\u80fd\u4ece&#034;\u770b\u8fc7\u6587\u6863&#034;\u5230&#034;\u771f\u6b63\u638c\u63e1&#034;\u3002<\/p>\n<h2>AI\u5e94\u7528\u67b6\u6784\u6f14\u8fdb\u53f2<\/h2>\n<p>\u7406\u89e3\u4e86\u601d\u7ef4\u65b9\u5f0f&#xff0c;\u638c\u63e1\u4e86\u5b66\u4e60\u65b9\u6cd5&#xff0c;\u63a5\u4e0b\u6765\u9700\u8981\u770b\u6e05\u6574\u4e2aAI\u5e94\u7528\u7684\u7248\u56fe\u3002<\/p>\n<p>\u7ed3\u5408\u6211\u81ea\u5df1\u7684\u7ecf\u5386&#xff0c;\u4ecb\u7ecd\u4e00\u4e0bAI\u5e94\u7528\u67b6\u6784\u7684\u6f14\u8fdb&#xff0c;\u5e2e\u5927\u5bb6\u7406\u89e3\u81ea\u5df1\u73b0\u5728\u5904\u4e8e\u54ea\u4e2a\u9636\u6bb5&#xff0c;\u4ee5\u53ca\u4e0b\u4e00\u6b65\u8981\u53bb\u54ea\u91cc\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042525-6a682f359a22c.png\" alt=\"\" \/><\/p>\n<p>\u7b2c\u4e00\u9636\u6bb5&#xff1a;\u5355\u6b21\u8c03\u7528&#xff08;2023\u5e74\u521d&#xff09;<\/p>\n<p>\u76f4\u63a5\u8c03\u7528LLM API&#xff0c;\u8f93\u5165\u95ee\u9898&#xff0c;\u8f93\u51fa\u7b54\u6848\u3002\u8fd9\u662f\u6700\u7b80\u5355\u7684\u5f62\u6001\u3002<\/p>\n<p>\u5178\u578b\u573a\u666f&#xff1a;\u5199\u4e00\u4e2a&#034;AI\u5ba2\u670d&#034;&#xff0c;\u628a\u7528\u6237\u95ee\u9898\u548c\u9884\u8bbe\u7684system prompt\u4e00\u8d77\u4e22\u7ed9GPT&#xff0c;\u62ff\u5230\u56de\u590d\u76f4\u63a5\u5c55\u793a\u3002<\/p>\n<p>\u8fd9\u4e2a\u9636\u6bb5\u7684\u95ee\u9898\u5f88\u660e\u663e&#xff1a;\u6a21\u578b\u4e0d\u77e5\u9053\u4f60\u7684\u79c1\u6709\u6570\u636e&#xff08;\u5ba2\u6237\u95ee\u4e86&#034;\u6211\u7684\u8ba2\u5355\u4ec0\u4e48\u65f6\u5019\u5230&#034;&#xff0c;GPT\u53ea\u80fd\u778e\u7f16&#xff09;&#xff0c;\u65e0\u6cd5\u6267\u884c\u64cd\u4f5c&#xff08;\u4e0d\u80fd\u771f\u7684\u67e5\u7269\u6d41&#xff09;&#xff0c;\u6bcf\u6b21\u5bf9\u8bdd\u72ec\u7acb&#xff08;\u8bb0\u4e0d\u4f4f\u4e0a\u4e00\u8f6e\u8bf4\u4e86\u4ec0\u4e48&#xff09;\u3002<\/p>\n<p>\u7b2c\u4e8c\u9636\u6bb5&#xff1a;RAG &#043; \u5de5\u5177\u8c03\u7528&#xff08;2023\u5e74\u4e2d-\u81f3\u4eca&#xff09;<\/p>\n<p>\u7ed9LLM\u63a5\u4e0a\u77e5\u8bc6\u5e93&#xff08;RAG&#xff09;\u548c\u5de5\u5177&#xff08;Tool Use&#xff09;&#xff0c;\u8ba9\u5b83\u80fd\u67e5\u8d44\u6599\u3001\u80fd\u6267\u884c\u64cd\u4f5c\u3002\u8fd9\u662f\u76ee\u524d\u4f01\u4e1a\u7ea7AI\u5e94\u7528\u7684\u4e3b\u6d41\u5f62\u6001\u3002<\/p>\n<p>\u5178\u578b\u573a\u666f&#xff1a;\u667a\u80fd\u5ba2\u670d\u7cfb\u7edf&#xff0c;\u7528\u6237\u95ee&#034;\u6211\u7684\u8ba2\u5355\u5230\u54ea\u4e86&#034;&#xff0c;Agent\u8c03\u7528\u7269\u6d41\u67e5\u8be2\u5de5\u5177\u83b7\u53d6\u771f\u5b9e\u6570\u636e&#xff0c;\u518d\u7ed3\u5408\u77e5\u8bc6\u5e93\u4e2d\u7684\u9000\u6362\u8d27\u653f\u7b56&#xff0c;\u7ed9\u51fa\u51c6\u786e\u56de\u590d\u3002<\/p>\n<p>\u514d\u8d39\u5b66\u4e60\u8d44\u6e90\u63a8\u8350&#xff1a;<\/p>\n<ul>\n<li>&#x1f393; \u5434\u6069\u8fbe\u300aLangChain for LLM Application Development\u300b&#xff08;\u514d\u8d39&#xff0c;\u7ea61\u5c0f\u65f6&#xff0c;\u6982\u5ff5\u901a\u7528&#xff09;<\/li>\n<li>&#x1f393; \u5434\u6069\u8fbe\u300aBuilding Systems with the ChatGPT API\u300b&#xff08;\u514d\u8d39&#xff0c;\u7ea61\u5c0f\u65f6&#xff0c;\u6982\u5ff5\u901a\u7528&#xff09;<\/li>\n<li>&#x1f4d6; langchaingo \u5b98\u65b9\u793a\u4f8b&#xff08;Go\u751f\u6001\u9996\u9009&#xff0c;\u542b\u5b8c\u6574\u53ef\u8fd0\u884c\u4ee3\u7801&#xff09;<\/li>\n<li>&#x1f4d6; Eino \u5b98\u65b9\u6587\u6863&#xff08;\u5b57\u8282\u8df3\u52a8\u5f00\u6e90&#xff0c;Go\u539f\u751fAI\u6846\u67b6&#xff09;<\/li>\n<li>&#x1f4d6; Prompt Engineering Guide&#xff08;\u514d\u8d39\u5f00\u6e90&#xff0c;\u4e2d\u6587\u7248&#xff09;<\/li>\n<\/ul>\n<p>\u7b2c\u4e09\u9636\u6bb5&#xff1a;Multi-Agent\u67b6\u6784&#xff08;2024-\u81f3\u4eca&#xff09;<\/p>\n<p>\u591a\u4e2aAgent\u534f\u4f5c&#xff0c;\u6bcf\u4e2aAgent\u8d1f\u8d23\u4e00\u4e2a\u4e13\u95e8\u7684\u5b50\u4efb\u52a1&#xff0c;\u901a\u8fc7\u7f16\u6392\u5c42\u534f\u8c03\u5de5\u4f5c\u3002<\/p>\n<p>\u5178\u578b\u573a\u666f&#xff1a;\u8f6f\u4ef6\u5f00\u53d1\u52a9\u624b\u2014\u2014\u4e00\u4e2aAgent\u8d1f\u8d23\u7406\u89e3\u9700\u6c42\u5e76\u62c6\u89e3\u4efb\u52a1&#xff0c;\u4e00\u4e2aAgent\u8d1f\u8d23\u5199\u4ee3\u7801&#xff0c;\u4e00\u4e2aAgent\u8d1f\u8d23\u5199\u6d4b\u8bd5&#xff0c;\u4e00\u4e2aAgent\u8d1f\u8d23\u4ee3\u7801\u5ba1\u67e5\u3002\u56db\u4e2aAgent\u901a\u8fc7\u7f16\u6392\u5668\u534f\u540c\u5de5\u4f5c&#xff0c;\u6700\u7ec8\u8f93\u51fa\u5b8c\u6574\u7684\u3001\u7ecf\u8fc7\u6d4b\u8bd5\u7684\u4ee3\u7801\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042525-6a682f35c9725.png\" alt=\"\" \/><\/p>\n<p>\u514d\u8d39\u5b66\u4e60\u8d44\u6e90\u63a8\u8350&#xff1a;<\/p>\n<ul>\n<li>&#x1f393; \u5434\u6069\u8fbe\u300aMulti AI Agent Systems with crewAI\u300b&#xff08;\u514d\u8d39&#xff0c;\u7ea61\u5c0f\u65f6&#xff09;<\/li>\n<li>&#x1f4d6; CrewAI\u5b98\u65b9\u6587\u6863&#xff08;\u514d\u8d39\u5f00\u6e90\u6846\u67b6&#xff09;<\/li>\n<li>&#x1f4d6; Microsoft AutoGen\u5b98\u65b9\u6587\u6863&#xff08;\u5fae\u8f6f\u5f00\u6e90&#xff0c;\u5b66\u672f\u8bba\u6587\u7ea7\u522b&#xff09;<\/li>\n<li>&#x1f4d6; LangGraph\u5b98\u65b9\u6559\u7a0b&#xff08;\u514d\u8d39&#xff0c;\u9002\u5408\u81ea\u5b9a\u4e49Agent\u7f16\u6392&#xff09;<\/li>\n<\/ul>\n<p>Multi-Agent\u662f\u4e3b\u6d41\u8d8b\u52bf&#xff0c;\u8d8a\u6765\u8d8a\u591a\u7684\u4f01\u4e1a\u7ea7AI\u5e94\u7528\u5728\u5f80\u8fd9\u4e2a\u65b9\u5411\u6f14\u8fdb\u3002<\/p>\n<p>\u90a3\u4e48&#xff0c;\u5982\u4f55\u4ece\u7b2c\u4e8c\u9636\u6bb5\u8fdb\u9636\u5230\u7b2c\u4e09\u9636\u6bb5&#xff1f;\u7b54\u6848\u5c31\u662f&#xff1a;\u6df1\u5165\u7406\u89e3Agent\u5de5\u7a0b\u5316\u3002<\/p>\n<h2>\u4ec0\u4e48\u662fAgent\u5de5\u7a0b\u5316&#xff1f;<\/h2>\n<p>\u5f88\u591a\u4eba\u4f1a\u8c03\u7528API\u3001\u4f1a\u7528\u6846\u67b6&#xff0c;\u4f46\u505a\u51fa\u6765\u7684\u4e1c\u897f\u53ea\u80fd\u5728demo\u9636\u6bb5&#xff0c;\u4e00\u5230\u751f\u4ea7\u73af\u5883\u5c31\u5404\u79cd\u95ee\u9898\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u7f3a\u4e4f&#034;\u5de5\u7a0b\u5316&#034;\u601d\u7ef4\u7684\u8868\u73b0\u3002<\/p>\n<p>Agent\u5de5\u7a0b\u5316&#xff0c;\u5c31\u662f\u8ba9Agent\u4ece&#034;\u80fd\u8dd1&#034;\u5230&#034;\u80fd\u7528&#034;\u3001\u4ece&#034;\u80fd\u7528&#034;\u5230&#034;\u597d\u7528&#034;\u7684\u8fc7\u7a0b\u3002<\/p>\n<p>\u5148\u770b\u4e00\u5f20Agent\u5de5\u7a0b\u5316\u7684\u5168\u666f\u56fe&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042526-6a682f3619768.png\" alt=\"\" \/><\/p>\n<p>\u4e0b\u9762\u9010\u4e00\u62c6\u89e3\u6bcf\u4e2a\u5c42\u9762&#xff0c;\u7ed9\u51fa\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<li>\u53ef\u9760\u6027\u8bbe\u8ba1<\/li>\n<hr \/>\n<p>Agent\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f1a\u9047\u5230\u5404\u79cd\u5f02\u5e38&#xff1a;\u6a21\u578b\u8f93\u51fa\u683c\u5f0f\u4e0d\u5bf9\u3001\u5de5\u5177\u8c03\u7528\u5931\u8d25\u3001\u4e0a\u4e0b\u6587\u8d85\u957f\u2026<\/p>\n<p>**\u5177\u4f53\u600e\u4e48\u505a&#xff1f;**\u6765\u770b\u4e00\u4e2a\u751f\u4ea7\u7ea7\u7684Agent\u8c03\u7528\u5c01\u88c5&#xff1a;<\/p>\n<p>\/\/ \u751f\u4ea7\u7ea7Agent\u5c01\u88c5\u2014\u2014\u53ef\u9760\u6027\u8bbe\u8ba1type ProductionAgent struct {    maxRetries      int    fallbackResp    string    maxInputTokens  int}func NewProductionAgent() *ProductionAgent {    return &amp;ProductionAgent{        maxRetries:     3,        fallbackResp:   &#034;\u62b1\u6b49&#xff0c;\u7cfb\u7edf\u7e41\u5fd9&#xff0c;\u8bf7\u7a0d\u540e\u91cd\u8bd5\u3002&#034;,        maxInputTokens: 100000,    }}\/\/ InvokeWithRetry \u5e26\u6307\u6570\u9000\u907f\u91cd\u8bd5\u7684\u8c03\u7528func (pa *ProductionAgent) InvokeWithRetry(ctx context.Context, executor *agents.Executor, input map[string]any) (string, error) {    var lastErr error    for attempt :&#061; 0; attempt &lt; pa.maxRetries; attempt&#043;&#043; {        \/\/ 1. \u8f93\u5165\u6821\u9a8c        inputStr, ok :&#061; input[&#034;input&#034;].(string)        if !ok || len(inputStr) &#061;&#061; 0 {            return pa.fallbackResp, fmt.Errorf(&#034;\u8f93\u5165\u4e0d\u5408\u6cd5&#034;)        }        \/\/ 2. Token\u9884\u7b97\u68c0\u67e5        if estimatedTokens :&#061; estimateTokens(inputStr); estimatedTokens &gt; pa.maxInputTokens {            input[&#034;input&#034;] &#061; truncateText(inputStr, pa.maxInputTokens)        }        \/\/ 3. \u8c03\u7528Agent        result, err :&#061; executor.Call(ctx, input)        if err !&#061; nil {            lastErr &#061; err            log.Warn(&#034;Agent\u8c03\u7528\u5931\u8d25&#xff0c;\u51c6\u5907\u91cd\u8bd5&#034;, &#034;attempt&#034;, attempt&#043;1, &#034;error&#034;, err)            \/\/ \u6307\u6570\u9000\u907f&#xff1a;1s \u2192 2s \u2192 4s            time.Sleep(time.Duration(1&lt;&lt;attempt) * time.Second)            continue        }        \/\/ 4. \u8f93\u51fa\u6821\u9a8c        if !pa.validateOutput(result) {            lastErr &#061; fmt.Errorf(&#034;\u8f93\u51fa\u683c\u5f0f\u5f02\u5e38: %s&#034;, result)            time.Sleep(time.Duration(1&lt;&lt;attempt) * time.Second)            continue        }        return result, nil    }    return&#034;&#034;, fmt.Errorf(&#034;\u91cd\u8bd5%d\u6b21\u540e\u4ecd\u5931\u8d25: %w&#034;, pa.maxRetries, lastErr)}\/\/ SafeInvoke \u6700\u7ec8\u5b89\u5168\u8c03\u7528\u2014\u2014\u5e26\u515c\u5e95func (pa *ProductionAgent) SafeInvoke(ctx context.Context, executor *agents.Executor, input map[string]any) string {    result, err :&#061; pa.InvokeWithRetry(ctx, executor, input)    if err !&#061; nil {        log.Error(&#034;Agent\u8c03\u7528\u5f7b\u5e95\u5931\u8d25&#xff0c;\u4f7f\u7528\u515c\u5e95\u56de\u590d&#034;, &#034;error&#034;, err)        return pa.fallbackResp    }    return result}<\/p>\n<p>\u5173\u952e\u70b9&#xff1a;\u91cd\u8bd5\u4e0d\u662f\u7b80\u5355\u7684for i :&#061; 0; i &lt; 3; i&#043;&#043;&#xff0c;\u800c\u662f\u6307\u6570\u9000\u907f&#xff08;1s \u2192 2s \u2192 4s&#xff09;&#xff0c;\u907f\u514d\u7ed9API\u9020\u6210\u96ea\u5d29\u538b\u529b\u3002<\/p>\n<li>\u53ef\u89c2\u6d4b\u6027<\/li>\n<hr \/>\n<p>\u4f60\u9700\u8981\u77e5\u9053Agent\u5728\u505a\u4ec0\u4e48\u3001\u4e3a\u4ec0\u4e48\u8fd9\u6837\u505a\u3001\u54ea\u4e2a\u73af\u8282\u51fa\u4e86\u95ee\u9898\u3002<\/p>\n<p>**\u5177\u4f53\u600e\u4e48\u505a&#xff1f;**\u4f7f\u7528LangSmith&#xff08;\u514d\u8d39\u989d\u5ea6&#xff09;\u6216\u81ea\u5efa\u8ffd\u8e2a&#xff1a;<\/p>\n<p>import timeimport jsonfrom functools import wrapsdef trace_agent_call(func):    &#034;&#034;&#034;Agent\u8c03\u7528\u8ffd\u8e2a\u88c5\u9970\u5668&#034;&#034;&#034;    &#064;wraps(func)    def wrapper(*args, **kwargs):        trace_id &#061; f&#034;trace_{int(time.time() * 1000)}&#034;        start &#061; time.time()                log_entry &#061; {            &#034;trace_id&#034;: trace_id,            &#034;timestamp&#034;: start,            &#034;input&#034;: str(kwargs.get(&#034;input&#034;, &#034;&#034;))[:200],  # \u622a\u65ad\u5b58\u50a8        }                try:            result &#061; func(*args, **kwargs)            log_entry.update({                &#034;duration_ms&#034;: (time.time() &#8211; start) * 1000,                &#034;status&#034;: &#034;success&#034;,                &#034;output_length&#034;: len(str(result)),            })            return result        except Exception as e:            log_entry.update({                &#034;duration_ms&#034;: (time.time() &#8211; start) * 1000,                &#034;status&#034;: &#034;error&#034;,                &#034;error&#034;: str(e),            })            raise        finally:            # \u5199\u5165\u65e5\u5fd7&#xff08;\u751f\u4ea7\u73af\u5883\u7528\u7ed3\u6784\u5316\u65e5\u5fd7\u5982JSON Lines&#xff09;            print(json.dumps(log_entry, ensure_ascii&#061;False))        return wrapper<\/p>\n<p>\u514d\u8d39\u5de5\u5177\u63a8\u8350&#xff1a;<\/p>\n<ul>\n<li>LangSmith&#xff1a;LangChain\u5b98\u65b9\u51fa\u54c1&#xff0c;\u514d\u8d39\u989d\u5ea6\u591f\u4e2a\u4eba\u9879\u76ee\u7528<\/li>\n<li>Phoenix (Arize)&#xff1a;\u5f00\u6e90&#xff0c;\u672c\u5730\u90e8\u7f72&#xff0c;\u652f\u6301LLM\u8c03\u7528\u8ffd\u8e2a\u548c\u8bc4\u4f30<\/li>\n<li>Go \u9879\u76ee\u53ef\u76f4\u63a5\u7528 slog &#043; \u7ed3\u6784\u5316\u65e5\u5fd7 &#043; Grafana\/Prometheus \u642d\u5efa\u53ef\u89c2\u6d4b\u6027\u4f53\u7cfb&#xff0c;\u8f7b\u91cf\u9ad8\u6548<\/li>\n<\/ul>\n<li>\u6210\u672c\u63a7\u5236<\/li>\n<hr \/>\n<p>Token\u662f\u94b1\u3002\u4e00\u4e2a\u4e0d\u6ce8\u610f&#xff0c;\u5355\u6b21\u5bf9\u8bdd\u82b1\u6389\u51e0\u6bdb\u94b1&#xff0c;\u65e5\u6d3b\u4e0a\u5343\u4e00\u5929\u5c31\u662f\u51e0\u767e\u5757\u3002<\/p>\n<p>\u5177\u4f53\u7b56\u7565&#xff1a;<\/p>\n<p>\/\/ \u6210\u672c\u611f\u77e5\u7684Agenttype ModelCost struct {    Input  float64\/\/ \u6bcf\u767e\u4e07token\u7f8e\u5143    Output float64}var modelCostMap &#061; map[string]ModelCost{    &#034;gpt-4o&#034;:           {Input: 2.5, Output: 10.0},    &#034;gpt-4o-mini&#034;:      {Input: 0.15, Output: 0.6},    &#034;claude-3.5-sonnet&#034;: {Input: 3.0, Output: 15.0},}\/\/ RouteByComplexity \u6309\u4efb\u52a1\u590d\u6742\u5ea6\u9009\u6a21\u578b\u2014\u2014\u7b80\u5355\u4efb\u52a1\u7528\u5c0f\u6a21\u578b&#xff0c;\u7701\u94b1func RouteByComplexity(task string) string {    simpleKeywords :&#061; []string{&#034;\u603b\u7ed3&#034;, &#034;\u5206\u7c7b&#034;, &#034;\u63d0\u53d6&#034;}    complexKeywords :&#061; []string{&#034;\u5206\u6790&#034;, &#034;\u63a8\u7406&#034;, &#034;\u4ee3\u7801&#034;}    for _, kw :&#061; range simpleKeywords {        if strings.Contains(task, kw) {            return&#034;gpt-4o-mini&#034;\/\/ \u7b80\u5355\u4efb\u52a1&#xff0c;\u4fbf\u5b9c\u7ea617\u500d        }    }    for _, kw :&#061; range complexKeywords {        if strings.Contains(task, kw) {            return&#034;gpt-4o&#034;\/\/ \u590d\u6742\u4efb\u52a1&#xff0c;\u7528\u5927\u6a21\u578b        }    }    return&#034;gpt-4o-mini&#034;\/\/ \u9ed8\u8ba4\u7528\u5c0f\u6a21\u578b}\/\/ EstimateCost \u4f30\u7b97\u5355\u6b21\u8c03\u7528\u6210\u672cfunc EstimateCost(model string, inputTokens, outputTokens int) float64 {    cost, ok :&#061; modelCostMap[model]    if !ok {        return0    }    returnfloat64(inputTokens)\/1_000_000*cost.Input &#043; float64(outputTokens)\/1_000_000*cost.Output}\/\/ \u5b9e\u9645\u6548\u679c\u793a\u4f8b&#xff1a;\/\/ \u4e00\u53e5\u8bdd\u603b\u7ed3\u4efb\u52a1&#xff1a;gpt-4o \u2248 $0.001&#xff0c;gpt-4o-mini \u2248 $0.00006\/\/ \u65e5\u5904\u740610\u4e07\u6b21\u603b\u7ed3&#xff1a;gpt-4o \u2248 $100\/\u5929&#xff0c;gpt-4o-mini \u2248 $6\/\u5929\/\/ \u5dee\u8ddd\u662f17\u500d&#xff01;<\/p>\n<p>\u7701\u94b1\u53e3\u8bc0&#xff1a;\u7b80\u5355\u4efb\u52a1\u7528mini&#xff0c;\u590d\u6742\u63a8\u7406\u7528\u5927\u6a21\u578b&#xff1b;\u80fd\u7f13\u5b58\u5c31\u7f13\u5b58&#xff0c;Prompt\u80fd\u538b\u7f29\u5c31\u538b\u7f29\u3002<\/p>\n<li>\u8bc4\u4f30\u4f53\u7cfb<\/li>\n<hr \/>\n<p>Agent\u7684\u6548\u679c\u600e\u4e48\u8861\u91cf&#xff1f;\u4e0d\u80fd\u53ea\u9760&#034;\u611f\u89c9\u597d\u50cf\u8fd8\u884c&#034;\u3002<\/p>\n<p>**\u5177\u4f53\u600e\u4e48\u505a&#xff1f;**\u5efa\u7acb\u8bc4\u4f30\u6570\u636e\u96c6&#xff0c;\u8dd1\u6279\u91cf\u5316\u81ea\u52a8\u5316\u8bc4\u4f30&#xff1a;<\/p>\n<p>\/\/ \u8bc4\u4f30\u6570\u636e\u96c6\u793a\u4f8btype EvalCase struct {    Input            string    ExpectedTools    []string\/\/ \u671f\u671b\u8c03\u7528\u7684\u5de5\u5177    ExpectedKeywords []string\/\/ \u671f\u671b\u5305\u542b\u7684\u5173\u952e\u8bcd    Difficulty       string}var evalDataset &#061; []EvalCase{    {        Input:            &#034;\u5e2e\u6211\u67e5\u4e00\u4e0b\u5317\u4eac\u7684\u5929\u6c14&#xff0c;\u9002\u5408\u8dd1\u6b65\u5417&#xff1f;&#034;,        ExpectedTools:    []string{&#034;get_weather&#034;},        ExpectedKeywords: []string{&#034;\u6e29\u5ea6&#034;, &#034;\u9002\u5408&#034;, &#034;\u4e0d\u9002\u5408&#034;},        Difficulty:       &#034;easy&#034;,    },    {        Input:            &#034;\u5ba2\u6237\u8bf4\u767b\u5f55\u4e0d\u4e86&#xff0c;\u5e2e\u6211\u67e5\u6587\u6863\u3001\u521b\u5de5\u5355\u3001\u53d1\u901a\u77e5\u7ed9\u8fd0\u7ef4&#034;,        ExpectedTools:    []string{&#034;search_kb&#034;, &#034;create_ticket&#034;, &#034;send_notification&#034;},        ExpectedKeywords: []string{&#034;\u5de5\u5355&#034;, &#034;\u901a\u77e5&#034;, &#034;\u6587\u6863&#034;},        Difficulty:       &#034;hard&#034;,    },    \/\/ &#8230; \u81f3\u5c11\u51c6\u590750-100\u6761}type EvalResult struct {    Total         int    ToolAccuracy  float64    KeywordRecall float64}func EvaluateAgent(executor *agents.Executor, dataset []EvalCase) EvalResult {    var r EvalResult    r.Total &#061; len(dataset)    for _, c :&#061; range dataset {        result, _ :&#061; executor.Call(context.Background(), map[string]any{&#034;input&#034;: c.Input})        \/\/ \u5de5\u5177\u8c03\u7528\u51c6\u786e\u7387        calledTools :&#061; extractCalledTools(result)        if stringSliceEqual(calledTools, c.ExpectedTools) {            r.ToolAccuracy&#043;&#043;        }        \/\/ \u5173\u952e\u8bcd\u53ec\u56de\u7387        outputLower :&#061; strings.ToLower(result)        matched :&#061; 0        for _, kw :&#061; range c.ExpectedKeywords {            if strings.Contains(outputLower, kw) {                matched&#043;&#043;            }        }        r.KeywordRecall &#043;&#061; float64(matched) \/ float64(len(c.ExpectedKeywords))    }    r.ToolAccuracy &#061; r.ToolAccuracy \/ float64(r.Total) * 100    r.KeywordRecall &#061; r.KeywordRecall \/ float64(r.Total) * 100    return r}<\/p>\n<p>\u5173\u952e\u7406\u5ff5&#xff1a;Agent\u5f00\u53d1\u4e0d\u662f&#034;\u5199\u5b8c\u4e86\u4e0a\u7ebf\u5c31\u884c&#034;&#xff0c;\u800c\u662f&#034;\u4e0a\u7ebf\u540e\u6301\u7eed\u7528\u6570\u636e\u9a71\u52a8\u8fed\u4ee3&#034;\u3002\u6ca1\u6709\u8bc4\u4f30\u4f53\u7cfb&#xff0c;\u8fed\u4ee3\u5c31\u662f\u76f2\u4eba\u6478\u8c61\u3002<\/p>\n<li>Multi-Agent\u7f16\u6392<\/li>\n<hr \/>\n<p>\u5f53\u4efb\u52a1\u590d\u6742\u5230\u5355\u4e2aAgent\u641e\u4e0d\u5b9a&#xff0c;\u5c31\u9700\u8981\u591a\u4e2aAgent\u534f\u4f5c\u3002<\/p>\n<p>\u4ee5Go\u4e3a\u4f8b&#xff0c;\u7528 goroutine &#043; channel \u642d\u5efa\u4e00\u4e2a&#034;\u6280\u672f\u6587\u7ae0\u5199\u4f5c\u56e2\u961f&#034;&#xff1a;<\/p>\n<p>\/\/ Multi-Agent \u7f16\u6392&#xff1a;\u6280\u672f\u6587\u7ae0\u5199\u4f5c\u56e2\u961ftype ArticleTask struct {    Topic     string    Research  string\/\/ \u7814\u7a76\u8d44\u6599    Draft     string\/\/ \u521d\u7a3f    FinalDraft string\/\/ \u7ec8\u7a3f}\/\/ Agent 1&#xff1a;\u7814\u7a76\u5458 \u2014\u2014 \u8d1f\u8d23\u641c\u96c6\u8d44\u6599func researcherAgent(ctx context.Context, topic string, resultCh chan&lt;- ArticleTask) {    \/\/ \u8c03\u7528LLM\u505a\u7814\u7a76    research :&#061; callLLM(ctx, fmt.Sprintf(&#034;\u8bf7\u641c\u96c6\u5173\u4e8e&#039;%s&#039;\u7684\u6700\u65b0\u8d44\u6599\u3001\u8bba\u6587\u548c\u6700\u4f73\u5b9e\u8df5&#034;, topic))    resultCh &lt;- ArticleTask{Topic: topic, Research: research}}\/\/ Agent 2&#xff1a;\u64b0\u7a3f\u4eba \u2014\u2014 \u6839\u636e\u7814\u7a76\u8d44\u6599\u5199\u521d\u7a3ffunc writerAgent(ctx context.Context, task ArticleTask, resultCh chan&lt;- ArticleTask) {    prompt :&#061; fmt.Sprintf(&#034;\u6839\u636e\u4ee5\u4e0b\u7814\u7a76\u8d44\u6599&#xff0c;\u64b0\u5199\u5173\u4e8e&#039;%s&#039;\u7684\u6df1\u5ea6\u6280\u672f\u6587\u7ae0&#xff1a;\\\\n%s&#034;, task.Topic, task.Research)    task.Draft &#061; callLLM(ctx, prompt)    resultCh &lt;- task}\/\/ Agent 3&#xff1a;\u5ba1\u6821 \u2014\u2014 \u8d28\u91cf\u628a\u5173func reviewerAgent(ctx context.Context, task ArticleTask, resultCh chan&lt;- ArticleTask) {    prompt :&#061; fmt.Sprintf(&#034;\u5ba1\u67e5\u4ee5\u4e0b\u6587\u7ae0\u7684\u6280\u672f\u51c6\u786e\u6027\u3001\u903b\u8f91\u6e05\u6670\u5ea6\u548c\u53ef\u8bfb\u6027&#xff0c;\u76f4\u63a5\u8f93\u51fa\u4fee\u6539\u540e\u7684\u7248\u672c&#xff1a;\\\\n%s&#034;, task.Draft)    task.FinalDraft &#061; callLLM(ctx, prompt)    resultCh &lt;- task}\/\/ \u7f16\u6392\u5668&#xff1a;\u4e32\u8054\u6267\u884cfunc orchestrateArticleWriting(ctx context.Context, topic string) *ArticleTask {    ch1 :&#061; make(chan ArticleTask, 1)    ch2 :&#061; make(chan ArticleTask, 1)    ch3 :&#061; make(chan ArticleTask, 1)    go researcherAgent(ctx, topic, ch1)    task :&#061; &lt;-ch1    go writerAgent(ctx, task, ch2)    task &#061; &lt;-ch2    go reviewerAgent(ctx, task, ch3)    task &#061; &lt;-ch3    return &amp;task}<\/p>\n<p>Go\u751f\u6001\u63d0\u793a&#xff1a;\u76ee\u524d Go \u8bed\u8a00\u7684 Agent \u6846\u67b6\u751f\u6001\u8fd8\u5728\u65e9\u671f\u9636\u6bb5&#xff0c;\u4e3b\u8981\u9009\u62e9\u6709&#xff1a;<\/p>\n<ul>\n<li>langchaingo&#xff1a;LangChain \u7684 Go \u79fb\u690d&#xff0c;GitHub 13k&#043; Star&#xff0c;\u6700\u6d3b\u8dc3<\/li>\n<li>Eino&#xff08;\u5b57\u8282\u8df3\u52a8\u5f00\u6e90&#xff09;&#xff1a;Go \u8bed\u8a00 AI \u5e94\u7528\u5f00\u53d1\u6846\u67b6&#xff0c;\u652f\u6301 Agent\/Chain\/Workflow<\/li>\n<li>\u76f4\u63a5\u8c03\u7528 OpenAI\/Claude API &#043; goroutine \u7f16\u6392&#xff0c;\u8f7b\u91cf\u7075\u6d3b&#xff0c;\u9002\u5408\u5bf9\u53ef\u63a7\u6027\u8981\u6c42\u9ad8\u7684\u573a\u666f<\/li>\n<\/ul>\n<p>\u5982\u679c\u9879\u76ee\u4e2d\u9700\u8981\u590d\u6742 Multi-Agent \u534f\u4f5c&#xff0c;\u4e5f\u53ef\u4ee5 Go \u505a\u4e1a\u52a1\u5c42&#xff0c;Python \u670d\u52a1\u5316\u63d0\u4f9b Agent \u80fd\u529b&#xff08;\u901a\u8fc7 HTTP\/gRPC \u8c03\u7528&#xff09;&#xff0c;\u8fd9\u662f\u76ee\u524d\u8f83\u52a1\u5b9e\u7684\u6df7\u5408\u67b6\u6784\u65b9\u6848\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;Multi-Agent\u4e0d\u662f\u94f6\u5f39\u3002\u6bcf\u589e\u52a0\u4e00\u4e2aAgent&#xff0c;\u5ef6\u8fdf\u548c\u6210\u672c\u90fd\u4f1a\u589e\u52a0\u3002\u5224\u65ad\u6807\u51c6&#xff1a;\u4e00\u4e2aPrompt\u80fd\u89e3\u51b3\u7684\u4e0d\u7528Chain&#xff0c;\u4e00\u4e2aChain\u80fd\u89e3\u51b3\u7684\u4e0d\u7528Agent&#xff0c;\u4e00\u4e2aAgent\u80fd\u89e3\u51b3\u7684\u4e0d\u7528Multi-Agent\u3002<\/p>\n<p>\u514d\u8d39\u5b66\u4e60\u8d44\u6e90&#xff1a;<\/p>\n<ul>\n<li>&#x1f393; \u5434\u6069\u8fbe\u300aMulti AI Agent Systems with crewAI\u300b&#xff08;\u514d\u8d39&#xff0c;Python\u4f46\u6982\u5ff5\u901a\u7528&#xff09;<\/li>\n<li>&#x1f4d6; langchaingo Agent \u793a\u4f8b&#xff08;Go\u751f\u6001Agent\u5b9e\u8df5&#xff09;<\/li>\n<li>&#x1f4d6; Eino Agent \u4f7f\u7528\u6307\u5357&#xff08;\u5b57\u8282\u8df3\u52a8\u5f00\u6e90&#xff0c;Go\u539f\u751f&#xff09;<\/li>\n<li>&#x1f4d6; Anthropic\u300aBuilding effective agents\u300b&#xff08;\u5fc5\u8bfb&#xff01;Anthropic\u5b98\u65b9Agent\u8bbe\u8ba1\u6307\u5357&#xff09;<\/li>\n<\/ul>\n<h4>\u6700\u540e\u5520\u4e24\u53e5<\/h4>\n<p>\u4e3a\u4ec0\u4e48AI\u5927\u6a21\u578b\u6210\u4e3a\u8d8a\u6765\u8d8a\u591a\u7a0b\u5e8f\u5458\u8f6c\u884c\u5c31\u4e1a\u3001\u5347\u804c\u52a0\u85aa\u7684\u9996\u9009<\/p>\n<p>\u5f88\u7b80\u5355&#xff0c;\u8fd9\u4e9b\u5c97\u4f4d\u7f3a\u4eba\u4e14\u9ad8\u85aa<\/p>\n<p>\u667a\u8054\u62db\u8058\u7684\u6700\u65b0\u6570\u636e\u7ed9\u51fa\u4e86\u6700\u76f4\u89c2\u7684\u5370\u8bc1&#xff1a;2025\u5e742\u6708&#xff0c;AI\u9886\u57df\u6c42\u804c\u4eba\u6570\u540c\u6bd4\u589e\u5e45\u7a81\u7834200% &#xff0c;\u8fdc\u8d85\u5176\u4ed6\u884c\u4e1a\u5e73\u5747\u6c34\u5e73&#xff1b;\u6574\u4e2a\u4eba\u5de5\u667a\u80fd\u884c\u4e1a\u7684\u6c42\u804c\u589e\u901f\u8fbe\u523033.4%&#xff0c;\u4f4d\u5c45\u5404\u884c\u4e1a\u699c\u9996&#xff0c;\u5176\u4e2d\u4eba\u5de5\u667a\u80fd\u5de5\u7a0b\u5e08\u5c97\u4f4d\u7684\u6c42\u804c\u70ed\u5ea6\u66f4\u662f\u98d9\u534769.6%\u3002<\/p>\n<p>AI\u4ea7\u4e1a\u7684\u5feb\u901f\u6269\u5f20&#xff0c;\u4e5f\u8ba9\u4eba\u624d\u4f9b\u9700\u77db\u76fe\u6108\u53d1\u7a81\u51fa\u3002\u9ea6\u80af\u9521\u62a5\u544a\u660e\u786e\u9884\u6d4b&#xff0c;\u52302030\u5e74\u4e2d\u56fdAI\u4e13\u4e1a\u4eba\u624d\u9700\u6c42\u5c06\u8fbe600\u4e07\u4eba&#xff0c;\u4eba\u624d\u7f3a\u53e3\u53ef\u80fd\u9ad8\u8fbe400\u4e07\u4eba&#xff0c;\u8fd9\u4e00\u7f3a\u53e3\u4e0d\u4ec5\u5b58\u5728\u4e8e\u6838\u5fc3\u6280\u672f\u9886\u57df&#xff0c;\u66f4\u8513\u5ef6\u81f3\u4ea7\u4e1a\u5e94\u7528\u7684\u5404\u4e2a\u73af\u8282\u3002<\/p>\n<h4>\u90a30\u57fa\u7840\u666e\u901a\u4eba\u5982\u4f55\u5b66\u4e60\u5927\u6a21\u578b &#xff1f;<\/h4>\n<p>\u6df1\u8015\u79d1\u6280\u4e00\u7ebf\u5341\u4e8c\u8f7d&#xff0c;\u4eb2\u5386\u6280\u672f\u6d6a\u6f6e\u53d8\u8fc1\u3002\u6211\u89c1\u8bc1\u90a3\u4e9b\u7387\u5148\u62e5\u62b1AI\u7684\u540c\u884c&#xff0c;\u5982\u4f55\u5efa\u7acb\u8d77\u6548\u7387\u4e0e\u85aa\u8d44\u7684\u4ee3\u9645\u4f18\u52bf\u3002\u5982\u4eca&#xff0c;\u6211\u5c06\u79ef\u7d2f\u7684\u5927\u6a21\u578b\u9762\u8bd5\u771f\u9898\u3001\u72ec\u5bb6\u8d44\u6599\u3001\u6280\u672f\u62a5\u544a\u4e0e\u5b9e\u6218\u8def\u7ebf\u7cfb\u7edf\u6574\u7406&#xff0c;\u5206\u4eab\u4e8e\u6b64&#xff0c;\u4e3a\u4f60\u626b\u6e05\u5b66\u4e60\u56f0\u60d1&#xff0c;\u5171\u8d74AI\u65f6\u4ee3\u65b0\u7a0b\u3002<\/p>\n<p>\u6211\u6574\u7406\u51fa\u8fd9\u5957 AI \u5927\u6a21\u578b\u7a81\u56f4\u8d44\u6599\u5305\u3010\u5141\u8bb8\u767d\u5ad6\u3011&#xff1a;<\/p>\n<ul>\n<li>\u2705\u4ece\u5165\u95e8\u5230\u7cbe\u901a\u7684\u5168\u5957\u89c6\u9891\u6559\u7a0b<\/li>\n<li>\u2705AI\u5927\u6a21\u578b\u5b66\u4e60\u8def\u7ebf\u56fe&#xff08;0\u57fa\u7840\u5230\u9879\u76ee\u5b9e\u6218\u4ec5\u970090\u5929&#xff09;<\/li>\n<li>\u2705\u5927\u6a21\u578b\u4e66\u7c4d\u4e0e\u6280\u672f\u6587\u6863PDF<\/li>\n<li>\u2705\u5404\u5927\u5382\u5927\u6a21\u578b\u9762\u8bd5\u9898\u76ee\u8be6\u89e3<\/li>\n<li>\u2705640\u5957AI\u5927\u6a21\u578b\u62a5\u544a\u5408\u96c6<\/li>\n<li>\u2705\u5927\u6a21\u578b\u5165\u95e8\u5b9e\u6218\u8bad\u7ec3<\/li>\n<\/ul>\n<p>\u8fd9\u4efd\u5b8c\u6574\u7248\u7684\u5927\u6a21\u578b AI \u5b66\u4e60\u548c\u9762\u8bd5\u8d44\u6599\u5df2\u7ecf\u4e0a\u4f20CSDN&#xff0c;\u670b\u53cb\u4eec\u5982\u679c\u9700\u8981\u53ef\u4ee5\u5fae\u4fe1\u626b\u63cf\u4e0b\u65b9CSDN\u5b98\u65b9\u8ba4\u8bc1\u4e8c\u7ef4\u7801\u514d\u8d39\u9886\u53d6\u3010\u4fdd\u8bc1100%\u514d\u8d39\u3011<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042526-6a682f36885ee.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u2460\u4ece\u5165\u95e8\u5230\u7cbe\u901a\u7684\u5168\u5957\u89c6\u9891\u6559\u7a0b<\/h4>\n<p>\u5305\u542b\u63d0\u793a\u8bcd\u5de5\u7a0b\u3001RAG\u3001Agent\u7b49\u6280\u672f\u70b9<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042528-6a682f382aef7.png\" alt=\"\" \/><\/p>\n<h4>\u2461 AI\u5927\u6a21\u578b\u5b66\u4e60\u8def\u7ebf\u56fe&#xff08;0\u57fa\u7840\u5230\u9879\u76ee\u5b9e\u6218\u4ec5\u970090\u5929&#xff09;<\/h4>\n<p>\u5168\u8fc7\u7a0bAI\u5927\u6a21\u578b\u5b66\u4e60\u8def\u7ebf<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042528-6a682f38781ae.png\" alt=\"\" \/><\/p>\n<h4>\u2462\u5b66\u4e60\u7535\u5b50\u4e66\u7c4d\u548c\u6280\u672f\u6587\u6863<\/h4>\n<p>\u5e02\u9762\u4e0a\u7684\u5927\u6a21\u578b\u4e66\u7c4d\u786e\u5b9e\u592a\u591a\u4e86&#xff0c;\u8fd9\u4e9b\u662f\u6211\u7cbe\u9009\u51fa\u6765\u7684<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042528-6a682f38b512d.png\" alt=\"\" \/><\/p>\n<h4>\u2463\u5404\u5927\u5382\u5927\u6a21\u578b\u9762\u8bd5\u9898\u76ee\u8be6\u89e3<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042529-6a682f393a425.png\" alt=\"\" \/><\/p>\n<h4>\u2464640\u5957AI\u5927\u6a21\u578b\u62a5\u544a\u5408\u96c6<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042529-6a682f3978707.png\" alt=\"\" \/><\/p>\n<h4>\u2465\u5927\u6a21\u578b\u5165\u95e8\u5b9e\u6218\u8bad\u7ec3<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042529-6a682f39eb6c9.png\" alt=\"\" \/><\/p>\n<p>\u5982\u679c\u8bf4\u4f60\u662f\u4ee5\u4e0b\u4eba\u7fa4\u4e2d\u7684\u5176\u4e2d\u4e00\u7c7b&#xff0c;\u90fd\u53ef\u4ee5\u6765\u667a\u6ccaAI\u5b66\u4e60\u4eba\u5de5\u667a\u80fd&#xff0c;\u627e\u5230\u9ad8\u85aa\u5de5\u4f5c&#xff0c;\u4e00\u6b21\u5c0f\u5c0f\u7684\u201c\u6295\u8d44\u201d\u6362\u6765\u7684\u662f\u7ec8\u8eab\u53d7\u76ca&#xff01;<\/p>\n<p>\u5e94\u5c4a\u6bd5\u4e1a\u751f\u200c&#xff1a;\u65e0\u5de5\u4f5c\u7ecf\u9a8c\u4f46\u60f3\u8981\u7cfb\u7edf\u5b66\u4e60AI\u5927\u6a21\u578b\u6280\u672f&#xff0c;\u671f\u5f85\u901a\u8fc7\u5b9e\u6218\u9879\u76ee\u638c\u63e1\u6838\u5fc3\u6280\u672f\u3002<\/p>\n<p>\u96f6\u57fa\u7840\u8f6c\u578b\u200c&#xff1a;\u975e\u6280\u672f\u80cc\u666f\u4f46\u5173\u6ce8AI\u5e94\u7528\u573a\u666f&#xff0c;\u8ba1\u5212\u901a\u8fc7\u4f4e\u4ee3\u7801\u5de5\u5177\u5b9e\u73b0\u201cAI&#043;\u884c\u4e1a\u201d\u8de8\u754c\u200c\u3002<\/p>\n<p>\u4e1a\u52a1\u8d4b\u80fd \u200c\u7a81\u7834\u74f6\u9888&#xff1a;\u4f20\u7edf\u5f00\u53d1\u8005&#xff08;Java\/\u524d\u7aef\u7b49&#xff09;\u5b66\u4e60Transformer\u67b6\u6784\u4e0eLangChain\u6846\u67b6&#xff0c;\u5411AI\u5168\u6808\u5de5\u7a0b\u5e08\u8f6c\u578b\u200c\u3002<\/p>\n<p>&#x1f449;\u83b7\u53d6\u65b9\u5f0f&#xff1a;<br \/>\n\u6709\u9700\u8981\u7684\u5c0f\u4f19\u4f34&#xff0c;\u53ef\u4ee5\u4fdd\u5b58\u56fe\u7247\u5230wx\u626b\u63cf\u4e8cv\u7801\u514d\u8d39\u9886\u53d6\u3010\u4fdd\u8bc1100%\u514d\u8d39\u3011&#x1f193;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042530-6a682f3a624af.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u4e00\u76f4\u6709\u5c0f\u4f19\u4f34\u79c1\u4fe1\u6211\u5173\u4e8eAgent\u5f00\u53d1\u7684\u95ee\u9898&#xff1a;<br \/>\n\u6709\u7684\u540c\u5b66\u662fJava\u3001Python\u540e\u7aef&#xff0c;\u89c9\u5f97\u4f20\u7edf\u5f00\u53d1\u8d8a\u6765\u8d8a\u5377&#xff0c;\u60f3\u8f6cAgent\u65b9\u5411&#xff1b;<br \/>\n\u6709\u7684\u540c\u5b66\u5df2\u7ecf\u4f1a\u8c03\u7528API\u3001\u80fd\u8dd1\u901ademo&#xff0c;\u4f46\u611f\u89c9\u81ea\u5df1\u53ea\u662f\u5728\\&#8221;\u62fc\u79ef\u6728\\&#8221;&#xff0c;\u4e0d\u77e5\u9053\u600e\u4e48\u8fdb\u9636&#xff1b;<br \/>\n\u6709\u7684\u540c\u5b66\u662f\u4ea7\u54c1\u3001\u8fd0\u8425\u80cc\u666f&#xff0c;\u60f3\u8de8\u754c\u505aAgent\u5f00\u53d1&#xff0c;\u4e0d\u77e5\u9053\u4ece\u54ea\u91cc\u5207\u5165\u3002<br \/>\n\u804a\u7684\u591a\u4e86&#xff0c;\u53d1\u73b0\u8fd9\u662f\u4e00\u4e2a\u5171\u6027\u95ee\u9898&#xff0c;\u5e72\u8106<\/p>\n","protected":false},"author":2,"featured_media":86288,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[74,75,50,371,613],"topic":[],"class_list":["post-86299","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-agent","tag-llm","tag-50","tag-371","tag-613"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7ed9\u6240\u6709\u60f3\u8f6cAgent\u5f00\u53d1\u6216\u8005Agent\u8fdb\u9636\u540c\u5b66\u7684\u4e00\u4e9b\u5efa\u8bae - \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\/86299.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7ed9\u6240\u6709\u60f3\u8f6cAgent\u5f00\u53d1\u6216\u8005Agent\u8fdb\u9636\u540c\u5b66\u7684\u4e00\u4e9b\u5efa\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6700\u8fd1\u4e00\u76f4\u6709\u5c0f\u4f19\u4f34\u79c1\u4fe1\u6211\u5173\u4e8eAgent\u5f00\u53d1\u7684\u95ee\u9898&#xff1a; \u6709\u7684\u540c\u5b66\u662fJava\u3001Python\u540e\u7aef&#xff0c;\u89c9\u5f97\u4f20\u7edf\u5f00\u53d1\u8d8a\u6765\u8d8a\u5377&#xff0c;\u60f3\u8f6cAgent\u65b9\u5411&#xff1b; \u6709\u7684\u540c\u5b66\u5df2\u7ecf\u4f1a\u8c03\u7528API\u3001\u80fd\u8dd1\u901ademo&#xff0c;\u4f46\u611f\u89c9\u81ea\u5df1\u53ea\u662f\u5728&quot;\u62fc\u79ef\u6728&quot;&#xff0c;\u4e0d\u77e5\u9053\u600e\u4e48\u8fdb\u9636&#xff1b; \u6709\u7684\u540c\u5b66\u662f\u4ea7\u54c1\u3001\u8fd0\u8425\u80cc\u666f&#xff0c;\u60f3\u8de8\u754c\u505aAgent\u5f00\u53d1&#xff0c;\u4e0d\u77e5\u9053\u4ece\u54ea\u91cc\u5207\u5165\u3002 \u804a\u7684\u591a\u4e86&#xff0c;\u53d1\u73b0\u8fd9\u662f\u4e00\u4e2a\u5171\u6027\u95ee\u9898&#xff0c;\u5e72\u8106\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/86299.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-28T04:25:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042525-6a682f359a22c.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=\"11 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86299.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/86299.html\",\"name\":\"\u7ed9\u6240\u6709\u60f3\u8f6cAgent\u5f00\u53d1\u6216\u8005Agent\u8fdb\u9636\u540c\u5b66\u7684\u4e00\u4e9b\u5efa\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-28T04:25:32+00:00\",\"dateModified\":\"2026-07-28T04:25:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/86299.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/86299.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86299.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7ed9\u6240\u6709\u60f3\u8f6cAgent\u5f00\u53d1\u6216\u8005Agent\u8fdb\u9636\u540c\u5b66\u7684\u4e00\u4e9b\u5efa\u8bae\"}]},{\"@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":"\u7ed9\u6240\u6709\u60f3\u8f6cAgent\u5f00\u53d1\u6216\u8005Agent\u8fdb\u9636\u540c\u5b66\u7684\u4e00\u4e9b\u5efa\u8bae - \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\/86299.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7ed9\u6240\u6709\u60f3\u8f6cAgent\u5f00\u53d1\u6216\u8005Agent\u8fdb\u9636\u540c\u5b66\u7684\u4e00\u4e9b\u5efa\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6700\u8fd1\u4e00\u76f4\u6709\u5c0f\u4f19\u4f34\u79c1\u4fe1\u6211\u5173\u4e8eAgent\u5f00\u53d1\u7684\u95ee\u9898&#xff1a; \u6709\u7684\u540c\u5b66\u662fJava\u3001Python\u540e\u7aef&#xff0c;\u89c9\u5f97\u4f20\u7edf\u5f00\u53d1\u8d8a\u6765\u8d8a\u5377&#xff0c;\u60f3\u8f6cAgent\u65b9\u5411&#xff1b; \u6709\u7684\u540c\u5b66\u5df2\u7ecf\u4f1a\u8c03\u7528API\u3001\u80fd\u8dd1\u901ademo&#xff0c;\u4f46\u611f\u89c9\u81ea\u5df1\u53ea\u662f\u5728\"\u62fc\u79ef\u6728\"&#xff0c;\u4e0d\u77e5\u9053\u600e\u4e48\u8fdb\u9636&#xff1b; \u6709\u7684\u540c\u5b66\u662f\u4ea7\u54c1\u3001\u8fd0\u8425\u80cc\u666f&#xff0c;\u60f3\u8de8\u754c\u505aAgent\u5f00\u53d1&#xff0c;\u4e0d\u77e5\u9053\u4ece\u54ea\u91cc\u5207\u5165\u3002 \u804a\u7684\u591a\u4e86&#xff0c;\u53d1\u73b0\u8fd9\u662f\u4e00\u4e2a\u5171\u6027\u95ee\u9898&#xff0c;\u5e72\u8106","og_url":"https:\/\/www.wsisp.com\/helps\/86299.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-28T04:25:32+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260728042525-6a682f359a22c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"11 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/86299.html","url":"https:\/\/www.wsisp.com\/helps\/86299.html","name":"\u7ed9\u6240\u6709\u60f3\u8f6cAgent\u5f00\u53d1\u6216\u8005Agent\u8fdb\u9636\u540c\u5b66\u7684\u4e00\u4e9b\u5efa\u8bae - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-28T04:25:32+00:00","dateModified":"2026-07-28T04:25:32+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/86299.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/86299.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/86299.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7ed9\u6240\u6709\u60f3\u8f6cAgent\u5f00\u53d1\u6216\u8005Agent\u8fdb\u9636\u540c\u5b66\u7684\u4e00\u4e9b\u5efa\u8bae"}]},{"@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\/86299","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=86299"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86299\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/86288"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=86299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=86299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=86299"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=86299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}