{"id":109354,"date":"2026-09-24T00:24:46","date_gmt":"2026-09-23T16:24:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/109354.html"},"modified":"2026-09-24T00:24:46","modified_gmt":"2026-09-23T16:24:46","slug":"%e7%94%a8langchain-1-0v%e6%90%ad%e5%bb%ba%e6%99%ba%e8%83%bd%e4%bd%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/109354.html","title":{"rendered":"\u7528langchain 1.0v\u642d\u5efa\u667a\u80fd\u4f53"},"content":{"rendered":"<p>&#x1f525; \u672c\u6587\u4eae\u70b9&#xff1a;\u5168\u7f51\u6700\u65b0 LangChain 1.0 \u6b63\u5f0f\u7248\u667a\u80fd\u4f53\u5b9e\u6218\u6559\u7a0b&#xff0c;\u6452\u5f03\u65e7\u7248\u8001\u65e7API&#xff0c;\u57fa\u4e8e1.0\u5168\u65b0 create_agent \u5b98\u65b9\u63a5\u53e3\u5f00\u53d1&#xff0c;\u4ece\u96f6\u5b8c\u6210\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u5de5\u5177\u3001\u667a\u80fd\u4f53\u642d\u5efa\u3001\u8fd0\u884c\u6d4b\u8bd5&#xff0c;\u4ee3\u7801\u53ef\u76f4\u63a5\u590d\u5236\u8fd0\u884c&#xff0c;\u65b0\u624b\u96f6\u95e8\u69db\u4e0a\u624b&#xff01;<\/p>\n<p>LangChain 1.0 \u4f5c\u4e3a\u91cc\u7a0b\u7891\u5f0f\u6b63\u5f0f\u7248\u672c&#xff0c;\u5bf9\u667a\u80fd\u4f53&#xff08;Agent&#xff09;\u67b6\u6784\u8fdb\u884c\u4e86\u5168\u9762\u91cd\u6784&#xff0c;\u7b80\u5316\u4e86\u5f00\u53d1\u6d41\u7a0b\u3001\u4f18\u5316\u4e86\u5de5\u5177\u8c03\u7528\u903b\u8f91\u3001\u65b0\u589e\u4e2d\u95f4\u4ef6\u3001\u72b6\u6001\u7ba1\u7406\u7b49\u751f\u4ea7\u7ea7\u80fd\u529b&#xff0c;\u5f7b\u5e95\u89e3\u51b3\u4e86\u65e7\u7248API\u5197\u4f59\u3001\u903b\u8f91\u6df7\u4e71\u3001\u517c\u5bb9\u6027\u5dee\u7684\u95ee\u9898\u3002<\/p>\n<p>\u672c\u6587\u5c06\u5e26\u5927\u5bb6\u4ece\u96f6\u642d\u5efa\u4e00\u4e2a\u53ef\u81ea\u4e3b\u8c03\u7528\u5de5\u5177\u3001\u81ea\u4e3b\u51b3\u7b56\u6267\u884c\u4efb\u52a1\u7684AI\u667a\u80fd\u4f53&#xff0c;\u638c\u63e1LangChain1.0\u667a\u80fd\u4f53\u7684\u6838\u5fc3\u7528\u6cd5&#xff0c;\u5feb\u901f\u843d\u5730\u57fa\u7840\u667a\u80fd\u4f53\u9879\u76ee\u3002<\/p>\n<h3 style=\"background-color:transparent\">\u4e00\u3001LangChain 1.0 \u667a\u80fd\u4f53\u6838\u5fc3\u9769\u65b0<\/h3>\n<p>\u76f8\u6bd40.x\u65e7\u7248\u672c&#xff0c;1.0\u7248\u672c\u667a\u80fd\u4f53\u6838\u5fc3\u53d8\u5316&#xff0c;\u4e5f\u662f\u6211\u4eec\u5fc5\u987b\u5b66\u4e60\u65b0\u7248\u7684\u539f\u56e0&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5168\u65b0API&#xff1a;\u7edf\u4e00 create_agent \u5165\u53e3&#xff0c;\u66ff\u4ee3\u65e7\u7248 initialize_agent&#xff0c;\u63a5\u53e3\u66f4\u7b80\u6d01\u3001\u914d\u7f6e\u66f4\u7075\u6d3b<\/p>\n<\/li>\n<li>\n<p>\u67b6\u6784\u5347\u7ea7&#xff1a;\u667a\u80fd\u4f53 &#061; \u5927\u6a21\u578b &#043; Harness\u8c03\u5ea6\u6846\u67b6&#xff0c;\u5185\u7f6e\u5de5\u5177\u8c03\u5ea6\u3001\u4e0a\u4e0b\u6587\u7ba1\u7406\u3001\u4efb\u52a1\u51b3\u7b56\u80fd\u529b<\/p>\n<\/li>\n<li>\n<p>\u751f\u4ea7\u7ea7\u80fd\u529b&#xff1a;\u539f\u751f\u652f\u6301\u72b6\u6001\u6301\u4e45\u5316\u3001\u4e2d\u95f4\u4ef6\u3001\u81ea\u5b9a\u4e49\u72b6\u6001\u3001\u591a\u5de5\u5177\u534f\u540c<\/p>\n<\/li>\n<li>\n<p>\u517c\u5bb9\u6027\u66f4\u5f3a&#xff1a;\u7edf\u4e00\u9002\u914dOpenAI\u3001\u963f\u91cc\u4e91\u3001Gemini\u3001Ollama\u7b49\u4e3b\u6d41\u5927\u6a21\u578b<\/p>\n<\/li>\n<li>\n<p>\u903b\u8f91\u66f4\u6e05\u6670&#xff1a;\u5206\u79bb\u6a21\u578b\u3001\u5de5\u5177\u3001\u63d0\u793a\u8bcd\u3001\u72b6\u6001\u6a21\u5757&#xff0c;\u4ee3\u7801\u53ef\u7ef4\u62a4\u6027\u5927\u5e45\u63d0\u5347<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u73af\u5883\u51c6\u5907\u4e0e\u4f9d\u8d56\u5b89\u88c5<\/h3>\n<h4>2.1 \u6838\u5fc3\u4f9d\u8d56\u8bf4\u660e<\/h4>\n<p>\u642d\u5efaLangChain1.0\u667a\u80fd\u4f53\u5fc5\u987b\u5b89\u88c5\u6700\u65b0\u7248\u6838\u5fc3\u4f9d\u8d56&#xff0c;\u6ce8\u610f\u5fc5\u987b\u5347\u7ea7\u52301.0\u53ca\u4ee5\u4e0a\u7248\u672c&#xff0c;\u65e7\u7248\u672c\u4e0d\u652f\u6301\u65b0API\u3002<\/p>\n<h4>2.2 \u4e00\u952e\u5b89\u88c5\u4f9d\u8d56<\/h4>\n<p># \u5b89\u88c5LangChain 1.0\u6838\u5fc3\u5e93\u3001\u56fe\u8c31\u4f9d\u8d56\u3001\u6a21\u578b\u9002\u914d\u5e93<br \/>\npip install -U langchain&gt;&#061;1.0 langgraph langchain-openai python-dotenv<\/p>\n<h3>\u56db\u3001\u4ee3\u7801\u6838\u5fc3\u6a21\u5757\u8be6\u89e3<\/h3>\n<h4>4.1 \u65b0\u7248 create_agent \u6838\u5fc3\u53c2\u6570<\/h4>\n<p>LangChain1.0 \u653e\u5f03\u4e86\u65e7\u7248\u7e41\u7410\u7684\u53c2\u6570\u914d\u7f6e&#xff0c;\u6838\u5fc3\u53c2\u6570\u6781\u7b80\u4e14\u5b9e\u7528&#xff1a;<\/p>\n<ul>\n<li>\n<p>model&#xff1a;\u7ed1\u5b9a\u4efb\u610f\u5927\u6a21\u578b\u5b9e\u4f8b&#xff0c;\u652f\u6301OpenAI\u3001\u901a\u4e49\u5343\u95ee\u3001Gemini\u3001\u672c\u5730Ollama\u6a21\u578b<\/p>\n<\/li>\n<li>\n<p>tools&#xff1a;\u667a\u80fd\u4f53\u53ef\u8c03\u7528\u7684\u5de5\u5177\u5217\u8868&#xff0c;\u6240\u6709\u81ea\u5b9a\u4e49\u5de5\u5177\u3001\u5b98\u65b9\u5de5\u5177\u5747\u53ef\u4f20\u5165<\/p>\n<\/li>\n<li>\n<p>checkpointer&#xff1a;\u72b6\u6001\u5b58\u50a8\u5668&#xff0c;\u5185\u5b58\u5b58\u50a8\u7528\u4e8e\u5f00\u53d1&#xff0c;\u751f\u4ea7\u53ef\u66ff\u6362\u4e3aRedis\u3001PostgreSQL<\/p>\n<\/li>\n<li>\n<p>system_prompt&#xff1a;\u667a\u80fd\u4f53\u4eba\u8bbe\u4e0e\u884c\u4e3a\u89c4\u5219&#xff0c;\u5b9a\u4e49\u5de5\u5177\u8c03\u7528\u903b\u8f91\u3001\u56de\u7b54\u98ce\u683c<\/p>\n<\/li>\n<\/ul>\n<h4>4.2 \u5de5\u5177\u5f00\u53d1\u89c4\u8303<\/h4>\n<p>LangChain1.0 \u5bf9\u5de5\u5177\u9002\u914d\u66f4\u53cb\u597d&#xff0c;\u53ea\u9700\u901a\u8fc7 &#064;tool \u88c5\u9970\u5668\u5feb\u901f\u5b9a\u4e49&#xff0c;\u5fc5\u987b\u5199\u6e05\u695a\u51fd\u6570\u6587\u6863\u6ce8\u91ca&#xff0c;\u5927\u6a21\u578b\u4f1a\u6839\u636e\u6ce8\u91ca\u81ea\u52a8\u8bc6\u522b\u5de5\u5177\u7528\u9014\u3001\u5165\u53c2\u89c4\u5219&#xff0c;\u5b9e\u73b0\u81ea\u4e3b\u8c03\u7528\u3002<\/p>\n<h4>4.3 \u72b6\u6001\u6301\u4e45\u5316\u4f5c\u7528<\/h4>\n<p>\u901a\u8fc7 InMemorySaver \u5b9e\u73b0\u5bf9\u8bdd\u4e0a\u4e0b\u6587\u8bb0\u5fc6&#xff0c;\u667a\u80fd\u4f53\u53ef\u4ee5\u8bb0\u4f4f\u4e0a\u6587\u5bf9\u8bdd\u5185\u5bb9&#xff0c;\u5b9e\u73b0\u591a\u8f6e\u8fde\u7eed\u4ea4\u4e92&#xff0c;\u8fd9\u662f\u667a\u80fd\u4f53\u533a\u522b\u4e8e\u666e\u901a\u5bf9\u8bdd\u6a21\u578b\u7684\u6838\u5fc3\u80fd\u529b\u3002<\/p>\n<h3>\u4e94\u3001\u8fd0\u884c\u7ed3\u679c\u5c55\u793a<\/h3>\n<p>\u6267\u884c\u4ee3\u7801\u540e&#xff0c;\u63a7\u5236\u53f0\u8f93\u51fa\u5982\u4e0b&#xff0c;\u667a\u80fd\u4f53\u53ef\u81ea\u4e3b\u533a\u5206\u573a\u666f\u3001\u7cbe\u51c6\u8c03\u7528\u5bf9\u5e94\u5de5\u5177&#xff1a;<\/p>\n<p>&#061;&#061;&#061;&#061;&#061; LangChain1.0 \u667a\u80fd\u4f53\u542f\u52a8\u6210\u529f &#061;&#061;&#061;&#061;&#061;<br \/>\n\u7528\u6237\u95ee\u98981&#xff1a;\u5317\u4eac\u4eca\u5929\u5929\u6c14\u600e\u4e48\u6837&#xff1f;<br \/>\n\u667a\u80fd\u4f53\u56de\u7b54&#xff1a; \u5317\u4eac\u6674&#xff0c;25\u2103&#xff0c;\u5fae\u98ce&#xff0c;\u7a7a\u6c14\u8d28\u91cf\u4f18<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u7528\u6237\u95ee\u98982&#xff1a;\u5e2e\u6211\u8ba1\u7b97 99*88&#043;120\/6<br \/>\n\u667a\u80fd\u4f53\u56de\u7b54&#xff1a; \u8ba1\u7b97\u7ed3\u679c&#xff1a;8732.0<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u7528\u6237\u95ee\u98983&#xff1a;\u4ecb\u7ecd\u4e00\u4e0bLangChain1.0\u667a\u80fd\u4f53\u7684\u4f18\u52bf<br \/>\n\u667a\u80fd\u4f53\u56de\u7b54&#xff1a; LangChain 1.0 \u667a\u80fd\u4f53\u6838\u5fc3\u4f18\u52bf\u5982\u4e0b&#xff1a;<br \/>\n1. \u63a5\u53e3\u6781\u7b80\u7edf\u4e00&#xff0c;\u4ee5create_agent\u4e3a\u552f\u4e00\u5165\u53e3&#xff0c;\u5f00\u53d1\u6210\u672c\u5927\u5e45\u964d\u4f4e&#xff1b;<br \/>\n2. \u67b6\u6784\u5347\u7ea7&#xff0c;\u5185\u7f6eHarness\u8c03\u5ea6\u6846\u67b6&#xff0c;\u5de5\u5177\u8c03\u7528\u3001\u4efb\u52a1\u51b3\u7b56\u66f4\u667a\u80fd&#xff1b;<br \/>\n3. \u539f\u751f\u652f\u6301\u72b6\u6001\u6301\u4e45\u5316\u3001\u4e2d\u95f4\u4ef6\u6269\u5c55&#xff0c;\u9002\u914d\u751f\u4ea7\u73af\u5883&#xff1b;<br \/>\n4. \u517c\u5bb9\u6027\u6781\u5f3a&#xff0c;\u652f\u6301\u4e3b\u6d41\u5927\u6a21\u578b&#xff1b;<br \/>\n5. \u4ee3\u7801\u7ed3\u6784\u6e05\u6670&#xff0c;\u6a21\u5757\u89e3\u8026&#xff0c;\u53ef\u7ef4\u62a4\u6027\u548c\u53ef\u6269\u5c55\u6027\u66f4\u9ad8\u3002<\/p>\n<h3>\u516d\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6848<\/h3>\n<h5>1\u3001\u62a5\u9519&#xff1a;\u627e\u4e0d\u5230 create_agent<\/h5>\n<p>\u539f\u56e0&#xff1a;LangChain\u7248\u672c\u8fc7\u4f4e&#xff0c;\u6267\u884c pip install -U langchain \u5347\u7ea7\u52301.0\u53ca\u4ee5\u4e0a\u7248\u672c\u5373\u53ef\u3002<\/p>\n<h5>2\u3001\u667a\u80fd\u4f53\u4e0d\u8c03\u7528\u5de5\u5177&#xff0c;\u76f4\u63a5\u56de\u7b54<\/h5>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u2460 \u5b8c\u5584\u5de5\u5177\u6ce8\u91ca&#xff0c;\u660e\u786e\u5de5\u5177\u7528\u9014&#xff1b;\u2461 \u8c03\u4f4e\u6a21\u578btemperature\u81f30&#xff0c;\u4fdd\u8bc1\u51b3\u7b56\u7a33\u5b9a\u6027&#xff1b;\u2462 \u5728\u7cfb\u7edf\u63d0\u793a\u8bcd\u4e2d\u5f3a\u5236\u7ea6\u675f\u5de5\u5177\u8c03\u7528\u89c4\u5219\u3002<\/p>\n<h5>3\u3001\u4e0a\u4e0b\u6587\u8bb0\u5fc6\u5931\u6548<\/h5>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u5fc5\u987b\u914d\u7f6e checkpointer \u548c\u552f\u4e00 thread_id&#xff0c;\u5426\u5219\u65e0\u6cd5\u4fdd\u5b58\u5bf9\u8bdd\u72b6\u6001\u3002<\/p>\n<h3>\u4e03\u3001\u8fdb\u9636\u62d3\u5c55\u65b9\u5411<\/h3>\n<p>\u672c\u6587\u642d\u5efa\u7684\u662f\u57fa\u7840\u7248\u667a\u80fd\u4f53&#xff0c;\u53ef\u57fa\u4e8e\u6b64\u5feb\u901f\u62d3\u5c55\u751f\u4ea7\u7ea7\u80fd\u529b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u63a5\u5165\u771f\u5b9e\u5929\u6c14\u3001\u65b0\u95fb\u3001\u6570\u636e\u5e93\u3001API\u63a5\u53e3\u7b49\u81ea\u5b9a\u4e49\u5de5\u5177<\/p>\n<\/li>\n<li>\n<p>\u66ff\u6362\u4e3a\u672c\u5730Ollama\u3001\u901a\u4e49\u5343\u95ee\u3001\u6587\u5fc3\u4e00\u8a00\u7b49\u5f00\u6e90\u6a21\u578b&#xff0c;\u5b9e\u73b0\u79c1\u6709\u5316\u90e8\u7f72<\/p>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u4e2d\u95f4\u4ef6\u3001\u6743\u9650\u6821\u9a8c\u3001\u65e5\u5fd7\u76d1\u63a7&#xff0c;\u9002\u914d\u751f\u4ea7\u73af\u5883<\/p>\n<\/li>\n<li>\n<p>\u7ed3\u5408RAG\u77e5\u8bc6\u5e93&#xff0c;\u642d\u5efa\u77e5\u8bc6\u5e93\u95ee\u7b54\u667a\u80fd\u4f53<\/p>\n<\/li>\n<li>\n<p>\u57fa\u4e8eLangGraph\u642d\u5efa\u591a\u8282\u70b9\u3001\u591a\u6b65\u9aa4\u590d\u6742\u4efb\u52a1\u667a\u80fd\u4f53<\/p>\n<\/li>\n<\/ul>\n<h3>\u603b\u7ed3<\/h3>\n<p>LangChain1.0 \u7684\u6b63\u5f0f\u53d1\u5e03&#xff0c;\u8ba9AI\u667a\u80fd\u4f53\u5f00\u53d1\u4ece\u201c\u7e41\u7410\u590d\u6742\u201d\u53d8\u6210\u201c\u7b80\u5355\u9ad8\u6548\u201d&#xff0c;\u5168\u65b0\u7684 create_agent API \u5927\u5e45\u964d\u4f4e\u4e86\u5f00\u53d1\u95e8\u69db\u3002\u672c\u6587\u901a\u8fc7\u6781\u7b80\u5b9e\u6218\u6848\u4f8b&#xff0c;\u5b8c\u6210\u4e86\u667a\u80fd\u4f53\u642d\u5efa\u3001\u5de5\u5177\u81ea\u5b9a\u4e49\u3001\u81ea\u4e3b\u51b3\u7b56\u3001\u591a\u8f6e\u4ea4\u4e92\u5168\u6d41\u7a0b&#xff0c;\u4ee3\u7801\u5f00\u7bb1\u5373\u7528&#xff0c;\u9002\u5408\u65b0\u624b\u5165\u95e8\u548c\u9879\u76ee\u4e8c\u6b21\u5f00\u53d1\u3002<\/p>\n<p>\u540e\u7eed\u5927\u5bb6\u53ef\u4ee5\u57fa\u4e8e\u8fd9\u4e2a\u57fa\u7840\u6846\u67b6&#xff0c;\u7ed3\u5408\u4e1a\u52a1\u573a\u666f\u62d3\u5c55\u5de5\u5177\u548c\u80fd\u529b&#xff0c;\u5feb\u901f\u642d\u5efa\u4e13\u5c5eAI\u667a\u80fd\u4f53&#xff01;<\/p>\n<p>\u7801\u5b57\u4e0d\u6613&#xff0c;\u6b22\u8fce\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u5173\u6ce8&#xff0c;\u6301\u7eed\u66f4\u65b0LangChain1.0\u8fdb\u9636\u5b9e\u6218\u3001RAG\u4f18\u5316\u3001\u591a\u667a\u80fd\u4f53\u534f\u540c\u6559\u7a0b&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f525; \u672c\u6587\u4eae\u70b9&#xff1a;\u5168\u7f51\u6700\u65b0 LangChain 1.0 \u6b63\u5f0f\u7248\u667a\u80fd\u4f53\u5b9e\u6218\u6559\u7a0b&#xff0c;\u6452\u5f03\u65e7\u7248\u8001\u65e7API&#xff0c;\u57fa\u4e8e1.0\u5168\u65b0 create_agent \u5b98\u65b9\u63a5\u53e3\u5f00\u53d1&#xff0c;\u4ece\u96f6\u5b8c\u6210\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u5de5\u5177\u3001\u667a\u80fd\u4f53\u642d\u5efa\u3001\u8fd0\u884c\u6d4b\u8bd5&#xff0c;\u4ee3\u7801\u53ef\u76f4\u63a5\u590d\u5236\u8fd0\u884c&#xff0c;\u65b0\u624b\u96f6\u95e8\u69db\u4e0a\u624b&#xff01;LangChain 1.0 \u4f5c\u4e3a\u91cc\u7a0b\u7891\u5f0f\u6b63\u5f0f\u7248\u672c&#xff0c;\u5bf9\u667a\u80fd\u4f53&#xff08;Agent&#xff09;\u67b6\u6784\u8fdb\u884c\u4e86\u5168\u9762<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12477,12478,5403,3503,5590],"topic":[],"class_list":["post-109354","post","type-post","status-publish","format-standard","hentry","category-server","tag-langchain1-0","tag-12478","tag-ai","tag-langgraph","tag-5590"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7528langchain 1.0v\u642d\u5efa\u667a\u80fd\u4f53 - \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\/109354.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528langchain 1.0v\u642d\u5efa\u667a\u80fd\u4f53 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f525; \u672c\u6587\u4eae\u70b9&#xff1a;\u5168\u7f51\u6700\u65b0 LangChain 1.0 \u6b63\u5f0f\u7248\u667a\u80fd\u4f53\u5b9e\u6218\u6559\u7a0b&#xff0c;\u6452\u5f03\u65e7\u7248\u8001\u65e7API&#xff0c;\u57fa\u4e8e1.0\u5168\u65b0 create_agent \u5b98\u65b9\u63a5\u53e3\u5f00\u53d1&#xff0c;\u4ece\u96f6\u5b8c\u6210\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u5de5\u5177\u3001\u667a\u80fd\u4f53\u642d\u5efa\u3001\u8fd0\u884c\u6d4b\u8bd5&#xff0c;\u4ee3\u7801\u53ef\u76f4\u63a5\u590d\u5236\u8fd0\u884c&#xff0c;\u65b0\u624b\u96f6\u95e8\u69db\u4e0a\u624b&#xff01;LangChain 1.0 \u4f5c\u4e3a\u91cc\u7a0b\u7891\u5f0f\u6b63\u5f0f\u7248\u672c&#xff0c;\u5bf9\u667a\u80fd\u4f53&#xff08;Agent&#xff09;\u67b6\u6784\u8fdb\u884c\u4e86\u5168\u9762\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/109354.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-23T16:24:46+00:00\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109354.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/109354.html\",\"name\":\"\u7528langchain 1.0v\u642d\u5efa\u667a\u80fd\u4f53 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-23T16:24:46+00:00\",\"dateModified\":\"2026-09-23T16:24:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/109354.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/109354.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109354.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528langchain 1.0v\u642d\u5efa\u667a\u80fd\u4f53\"}]},{\"@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":"\u7528langchain 1.0v\u642d\u5efa\u667a\u80fd\u4f53 - \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\/109354.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7528langchain 1.0v\u642d\u5efa\u667a\u80fd\u4f53 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f525; \u672c\u6587\u4eae\u70b9&#xff1a;\u5168\u7f51\u6700\u65b0 LangChain 1.0 \u6b63\u5f0f\u7248\u667a\u80fd\u4f53\u5b9e\u6218\u6559\u7a0b&#xff0c;\u6452\u5f03\u65e7\u7248\u8001\u65e7API&#xff0c;\u57fa\u4e8e1.0\u5168\u65b0 create_agent \u5b98\u65b9\u63a5\u53e3\u5f00\u53d1&#xff0c;\u4ece\u96f6\u5b8c\u6210\u73af\u5883\u914d\u7f6e\u3001\u81ea\u5b9a\u4e49\u5de5\u5177\u3001\u667a\u80fd\u4f53\u642d\u5efa\u3001\u8fd0\u884c\u6d4b\u8bd5&#xff0c;\u4ee3\u7801\u53ef\u76f4\u63a5\u590d\u5236\u8fd0\u884c&#xff0c;\u65b0\u624b\u96f6\u95e8\u69db\u4e0a\u624b&#xff01;LangChain 1.0 \u4f5c\u4e3a\u91cc\u7a0b\u7891\u5f0f\u6b63\u5f0f\u7248\u672c&#xff0c;\u5bf9\u667a\u80fd\u4f53&#xff08;Agent&#xff09;\u67b6\u6784\u8fdb\u884c\u4e86\u5168\u9762","og_url":"https:\/\/www.wsisp.com\/helps\/109354.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-23T16:24:46+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/109354.html","url":"https:\/\/www.wsisp.com\/helps\/109354.html","name":"\u7528langchain 1.0v\u642d\u5efa\u667a\u80fd\u4f53 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-23T16:24:46+00:00","dateModified":"2026-09-23T16:24:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/109354.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/109354.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/109354.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7528langchain 1.0v\u642d\u5efa\u667a\u80fd\u4f53"}]},{"@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\/109354","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=109354"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109354\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=109354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=109354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=109354"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=109354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}