{"id":104444,"date":"2026-09-12T14:09:34","date_gmt":"2026-09-12T06:09:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/104444.html"},"modified":"2026-09-12T14:09:34","modified_gmt":"2026-09-12T06:09:34","slug":"agentscope-java%ef%bc%9a%e7%94%a8-java-%e7%b1%bb%e5%9e%8b%e7%b3%bb%e7%bb%9f%e9%87%8d%e6%96%b0%e8%ae%be%e8%ae%a1-agent%ef%bc%8c%e5%90%b8%e5%bc%95%e5%b0%8f%e7%99%bd%e5%92%8c%e7%a8%8b%e5%ba%8f%e5%91%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/104444.html","title":{"rendered":"AgentScope Java\uff1a\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1 Agent\uff0c\u5438\u5f15\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\u5b66\u4e60\u5927\u6a21\u578b\uff08\u6536\u85cf\u7248\uff09"},"content":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u963f\u91cc\u901a\u4e49\u5b9e\u9a8c\u5ba4\u5f00\u6e90\u7684 AgentScope Java \u7248\u672c&#xff0c;\u5b83\u901a\u8fc7 JDK 17 \u7684\u65b0\u7279\u6027\u5982 Record \u548c Sealed Classes&#xff0c;\u5c06 Agent \u5f53\u4f5c\u5e76\u53d1\u5b89\u5168\u3001\u7c7b\u578b\u5b89\u5168\u3001\u80fd\u6c34\u5e73\u6269\u5c55\u7684\u4f01\u4e1a\u7ea7\u670d\u52a1\u6765\u91cd\u65b0\u8bbe\u8ba1\u3002\u6587\u7ae0\u63a2\u8ba8\u4e86 Java \u56e2\u961f\u5728\u843d\u5730 Agent \u65f6\u9047\u5230\u7684\u56db\u9053\u574e&#xff0c;\u4ee5\u53ca AgentScope Java \u5982\u4f55\u901a\u8fc7\u56db\u5c42\u67b6\u6784\u3001\u4e0d\u53ef\u53d8\u6d88\u606f\u548c &#064;Tool \u6ce8\u89e3\u7b49\u673a\u5236\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002\u6b64\u5916&#xff0c;\u6587\u7ae0\u8fd8\u5bf9\u6bd4\u4e86 AgentScope Java \u548c Spring AI Alibaba \u7684\u533a\u522b&#xff0c;\u5e76\u5c55\u671b\u4e86 Agent \u5728 Java \u751f\u6001\u4e2d\u7684\u672a\u6765\u53d1\u5c55\u65b9\u5411\u3002<\/p>\n<p>2025 \u5e74 12 \u6708&#xff0c;\u963f\u91cc\u901a\u4e49\u5b9e\u9a8c\u5ba4\u5f00\u6e90\u4e86 AgentScope \u7684 Java \u7248&#xff0c;\u4e0d\u5230\u4e00\u5e74\u51b2\u5230 14k&#043; star&#xff0c;\u73b0\u5728 2.0 \u5df2\u6b63\u5f0f GA\u3002<\/p>\n<p>\u5b83\u7684\u7279\u522b\u4e4b\u5904&#xff0c;\u4e0d\u662f\u53c8\u7ed9 Java \u5c01\u88c5\u4e86\u4e00\u5c42\u5927\u6a21\u578b API&#xff0c;\u800c\u662f\u7528 JDK 17 \u7684 Record\u3001Sealed Classes \u8fd9\u4e9b\u7c7b\u578b\u7cfb\u7edf\u80fd\u529b&#xff0c;\u628a Agent \u5f53\u6210\u4e00\u4e2a\u8981\u5e76\u53d1\u5b89\u5168\u3001\u7c7b\u578b\u5b89\u5168\u3001\u80fd\u6c34\u5e73\u6269\u5c55\u7684\u4f01\u4e1a\u7ea7\u670d\u52a1\u6765\u91cd\u65b0\u8bbe\u8ba1\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060927-6aa4ec97e575a.jpg\" alt=\"\u56fe\u7247\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u8ba9\u6211\u4eec\u4e00\u8d77\u770b\u4e00\u770b AgentScope Java \u5728\u67b6\u6784\u4e0a\u5230\u5e95\u90fd\u505a\u4e86\u54ea\u4e9b\u5de5\u4f5c&#xff1f; \u5b83\u548c Spring AI Alibaba \u662f\u4ec0\u4e48\u5173\u7cfb&#xff1f; \u8be5\u600e\u4e48\u9009&#xff1f;<\/p>\n<p>\u4e00\u3001Java \u56e2\u961f\u843d\u5730 Agent \u7684\u56db\u9053\u574e<\/p>\n<hr \/>\n<p>\u8fc7\u53bb\u4e24\u5e74&#xff0c;AI Agent \u7684\u6846\u67b6\u51e0\u4e4e\u5168\u90e8\u957f\u5728 Python \u751f\u6001\u91cc&#xff0c;LangChain\u3001AutoGen&#xff0c;\u4ee5\u53ca AgentScope \u7684 Python \u7248\u3002\u800c\u56fd\u5185\u5927\u91cf Java \u56e2\u961f\u7684\u6838\u5fc3\u4e1a\u52a1\u7cfb\u7edf&#xff0c;\u662f Spring Cloud \u90a3\u4e00\u5957\u2014\u2014Shiro \u505a\u9274\u6743\u3001Druid \u7ba1\u8fde\u63a5\u6c60\u3001Nacos \u505a\u6ce8\u518c\u4e2d\u5fc3\u3001SkyWalking \u505a\u94fe\u8def\u8ffd\u8e2a\u3002<\/p>\n<p>\u5f53\u8fd9\u4e9b\u56e2\u961f\u60f3\u5728\u81ea\u5df1\u7684\u4e1a\u52a1\u91cc\u843d\u5730 Agent&#xff0c;\u4f1a\u649e\u4e0a\u56db\u9053\u574e&#xff1a;<\/p>\n<li>\n<p>1. \u6280\u672f\u6808\u5272\u88c2\u3002\u4e3a\u4e86\u7528\u4e0a Python \u6846\u67b6&#xff0c;\u5f97\u5355\u72ec\u8d77\u4e00\u4e2a Python \u670d\u52a1&#xff0c;\u518d\u901a\u8fc7 HTTP \u548c Java \u4e3b\u670d\u52a1\u901a\u4fe1\u3002\u4e00\u4e2a\u7b80\u5355\u7684 Agent \u8c03\u7528&#xff0c;\u94fe\u8def\u53d8\u6210\u300cJava \u2192 HTTP \u2192 Python \u2192 LLM\u300d&#xff0c;\u8c03\u8bd5\u8981\u5728\u4e24\u5957\u8bed\u8a00\u3001\u4e24\u5957\u65e5\u5fd7\u4f53\u7cfb\u4e4b\u95f4\u6765\u56de\u8df3\u3002<\/p>\n<\/li>\n<li>\n<p>2. \u5b89\u5168\u96be\u4fdd\u969c\u3002\u91d1\u878d\u3001\u653f\u52a1\u8fd9\u7c7b\u573a\u666f&#xff0c;\u4ee3\u7801\u4e0d\u80fd\u968f\u4fbf\u5728\u4e1a\u52a1\u7cfb\u7edf\u65c1\u8fb9\u8dd1\u3002Python \u811a\u672c\u7684\u9694\u79bb\u3001\u6743\u9650\u63a7\u5236\u3001\u5ba1\u8ba1&#xff0c;\u505a\u8d77\u6765\u90fd\u8981\u989d\u5916\u9020\u8f6e\u5b50\u3002<\/p>\n<\/li>\n<li>\n<p>3. \u8fd0\u7ef4\u4f53\u7cfb\u4e0d\u517c\u5bb9\u3002Java \u56e2\u961f\u719f\u6089\u7684\u90a3\u5957\u53ef\u89c2\u6d4b\u548c\u53d1\u5e03\u4f53\u7cfb&#xff0c;Python \u670d\u52a1\u5f88\u96be\u65e0\u7f1d\u878d\u5165\u3002\u51fa\u95ee\u9898\u60f3\u770b SkyWalking \u94fe\u8def&#xff0c;\u7ed3\u679c Agent \u90a3\u4e00\u6bb5\u662f\u65ad\u7684\u3002<\/p>\n<\/li>\n<li>\n<p>4. \u591a\u667a\u80fd\u4f53\u534f\u4f5c\u590d\u6742\u3002\u771f\u5b9e\u4e1a\u52a1\u91cc&#xff0c;\u4e00\u4e2a\u300c\u667a\u80fd\u5ba2\u670d &#043; \u5de5\u5355\u6d3e\u53d1 &#043; \u4eba\u5de5\u5ba1\u6838\u300d\u7684\u6d41\u7a0b\u9700\u8981\u591a\u4e2a Agent \u5206\u5de5\u3002Python \u6846\u67b6\u8981\u4e48\u4e0d\u652f\u6301\u5206\u5e03\u5f0f\u90e8\u7f72&#xff0c;\u8981\u4e48\u9700\u8981\u81ea\u5df1\u5b9e\u73b0\u670d\u52a1\u53d1\u73b0\u548c\u72b6\u6001\u540c\u6b65\u3002<\/p>\n<\/li>\n<p>\u8fd9\u56db\u9053\u574e&#xff0c;\u672c\u8d28\u662f\u540c\u4e00\u4ef6\u4e8b&#xff1a;Agent \u5728 Python \u91cc\u662f\u300c\u811a\u672c\u300d&#xff0c;\u800c\u5728 Java \u56e2\u961f\u624b\u91cc&#xff0c;\u5b83\u9700\u8981\u662f\u300c\u670d\u52a1\u300d\u3002AgentScope Java \u6b63\u662f\u4ece\u300c\u670d\u52a1\u300d\u8fd9\u4e2a\u8d77\u70b9\u51fa\u53d1\u91cd\u65b0\u8bbe\u8ba1\u7684\u3002<\/p>\n<p>\u4e8c\u3001\u56db\u5c42\u67b6\u6784&#xff1a;\u628a Agent \u5f53\u4f01\u4e1a\u670d\u52a1\u8bbe\u8ba1<\/p>\n<hr \/>\n<p>AgentScope Java \u7684\u67b6\u6784\u662f\u7ecf\u5178\u7684\u56db\u5c42&#xff0c;\u81ea\u5e95\u5411\u4e0a&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060928-6aa4ec984083a.jpg\" alt=\"\u56fe\u7247\" \/><\/p>\n<p>\u6838\u5fc3\u5c42\u662f\u63a8\u7406\u5f15\u64ce\u548c\u72b6\u6001&#xff1a;ReActAgent \u8d1f\u8d23\u300c\u601d\u8003\u2014\u884c\u52a8\u300d\u5faa\u73af&#xff0c;HarnessAgent \u5728\u5b83\u4e4b\u4e0a\u53e0\u52a0\u5de5\u7a0b\u5316\u80fd\u529b&#xff0c;Memory \u7ba1\u957f\u671f\u8bb0\u5fc6\u3002<\/p>\n<p>\u670d\u52a1\u5c42\u7528 Project Reactor \u505a\u5168\u94fe\u8def\u975e\u963b\u585e&#xff0c;Mono\/Flux \u627f\u8f7d\u5f02\u6b65\u6d88\u606f\u8def\u7531\u3002\u8fd9\u662f\u5b83\u548c Python \u540c\u6b65\u7f16\u7a0b\u6a21\u578b\u7684\u6839\u672c\u533a\u522b&#xff0c;\u4e5f\u662f\u5b83\u80fd\u652f\u6491\u9ad8\u5e76\u53d1\u7684\u5e95\u6c14\u3002<\/p>\n<p>\u96c6\u6210\u5c42\u89e3\u51b3\u300c\u600e\u4e48\u548c Java \u751f\u6001\u3001\u5916\u90e8\u5de5\u5177\u5bf9\u63a5\u300d&#xff1a;MCP \u534f\u8bae\u63a5\u5916\u90e8\u5de5\u5177&#xff0c;A2A \u534f\u8bae\u63a5\u5176\u4ed6 Agent&#xff0c;Spring Boot \/ Nacos \u878d\u5165\u73b0\u6709\u5fae\u670d\u52a1\u3002<\/p>\n<p>\u90e8\u7f72\u5c42\u662f\u6700\u4eae\u773c\u7684\u4e00\u5c42&#xff1a;GraalVM \u539f\u751f\u955c\u50cf\u628a\u51b7\u542f\u52a8\u538b\u5230 200ms \u5de6\u53f3&#xff0c;\u914d\u5408 K8s HPA \u548c Serverless&#xff0c;Agent \u53ef\u4ee5\u50cf\u666e\u901a\u5fae\u670d\u52a1\u4e00\u6837\u5f39\u6027\u4f38\u7f29\u3002<\/p>\n<p>\u8fd9\u56db\u5c42\u91cc&#xff0c;\u6700\u80fd\u4f53\u73b0\u300c\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1\u300d\u7684&#xff0c;\u662f\u6838\u5fc3\u5c42\u7684\u4e24\u4e2a\u673a\u5236&#xff1a;\u4e0d\u53ef\u53d8\u6d88\u606f\u548c &#064;Tool \u6ce8\u89e3\u3002<\/p>\n<p>\u4e09\u3001\u673a\u5236\u4e00&#xff1a;\u4e0d\u53ef\u53d8\u6d88\u606f&#xff0c;\u7c7b\u578b\u5b89\u5168\u7684 Agent \u901a\u4fe1<\/p>\n<hr \/>\n<p>Agent \u7684\u672c\u8d28&#xff0c;\u662f LLM \u548c\u5de5\u5177\u4e4b\u95f4\u7684\u4e00\u4e32\u6d88\u606f\u5f80\u6765\u3002Python \u6846\u67b6\u91cc&#xff0c;\u6d88\u606f\u901a\u5e38\u662f\u4e00\u4e2a\u5f00\u653e\u7684\u5b57\u5178&#xff0c;\u4ec0\u4e48\u5b57\u6bb5\u90fd\u80fd\u585e&#xff0c;\u7f16\u8bd1\u671f\u4e0d\u68c0\u67e5&#xff0c;\u51fa\u9519\u8981\u5230\u8fd0\u884c\u65f6\u624d\u66b4\u9732\u3002<\/p>\n<p>AgentScope Java \u6362\u4e86\u4e2a\u601d\u8def&#xff1a;\u7528 Java 17 \u7684 Record \u548c Sealed Classes&#xff0c;\u628a\u6d88\u606f\u5efa\u6a21\u6210\u4e0d\u53ef\u53d8\u3001\u7c7b\u578b\u5c01\u95ed\u7684\u7ed3\u6784\u3002<\/p>\n<p>public record Msg(<br \/>\n    Role role,                    \/\/ USER \/ ASSISTANT \/ SYSTEM \/ TOOL<br \/>\n    List&lt;ContentBlock&gt; content,<br \/>\n    String name<br \/>\n) {}<\/p>\n<p>sealed interface ContentBlock<br \/>\n    permits TextBlock, ThinkingBlock, ToolUseBlock,<br \/>\n            ToolResultBlock, DataBlock, HintBlock {}<\/p>\n<p>record TextBlock(String text) implements ContentBlock {}<br \/>\nrecord ThinkingBlock(String reasoning) implements ContentBlock {}<br \/>\nrecord ToolUseBlock(String id, String name, String input) implements ContentBlock {}<br \/>\nrecord ToolResultBlock(String id, String output) implements ContentBlock {}<\/p>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u7684\u5173\u952e\u4e0d\u5728\u8bed\u6cd5&#xff0c;\u800c\u5728\u4e24\u4e2a\u8bbe\u8ba1\u610f\u56fe\u3002<\/p>\n<p>\u7b2c\u4e00&#xff0c;\u4e0d\u53ef\u53d8\u6027\u3002 \u6d88\u606f\u662f Record&#xff0c;\u5b57\u6bb5\u5f15\u7528\u4e0d\u53ef\u53d8&#xff1b;\u6846\u67b6\u5185\u90e8\u901a\u8fc7\u4e0d\u53ef\u53d8\u96c6\u5408&#xff08;\u5982 List.copyOf&#xff09;\u4fdd\u8bc1 content \u5217\u8868\u5185\u5bb9\u540c\u6837\u4e0d\u53ef\u4fee\u6539\u3002\u591a Agent \u534f\u4f5c\u65f6&#xff0c;\u4e00\u6761\u6d88\u606f\u53ef\u4ee5\u5b89\u5168\u5730\u5728\u591a\u4e2a Agent\u3001\u591a\u4e2a\u7ebf\u7a0b\u4e4b\u95f4\u5171\u4eab&#xff0c;\u4e0d\u7528\u52a0\u9501&#xff0c;\u4e5f\u4e0d\u4f1a\u88ab\u67d0\u4e2a Agent \u987a\u624b\u6539\u574f\u2014\u2014\u8fd9\u6b63\u662f\u5e76\u53d1\u73af\u5883\u4e0b\u6700\u9700\u8981\u5374\u6700\u5bb9\u6613\u88ab\u5ffd\u89c6\u7684\u4fdd\u8bc1\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u7c7b\u578b\u5c01\u95ed\u5e26\u6765\u7684\u7a77\u4e3e\u68c0\u67e5\u3002ContentBlock \u662f sealed&#xff0c;\u6240\u6709\u5b50\u7c7b\u578b\u5728\u7f16\u8bd1\u671f\u5c31\u5b9a\u6b7b\u4e86\u3002\u914d\u5408 switch \u6a21\u5f0f\u5339\u914d&#xff0c;\u7f16\u8bd1\u5668\u4f1a\u5f3a\u5236\u7a77\u4e3e\u6bcf\u4e00\u79cd Block&#xff1a;<\/p>\n<p>String render(ContentBlock block) {<br \/>\n    return switch (block) {<br \/>\n        case TextBlock t       -&gt; t.text();<br \/>\n        case ThinkingBlock t   -&gt; &#034;[\u601d\u8003] &#034; &#043; t.reasoning();<br \/>\n        case ToolUseBlock t    -&gt; &#034;[\u8c03\u7528\u5de5\u5177 &#034; &#043; t.name() &#043; &#034;]&#034;;<br \/>\n        case ToolResultBlock t -&gt; &#034;[\u5de5\u5177\u8fd4\u56de] &#034; &#043; t.output();<br \/>\n        case DataBlock d       -&gt; d.render();<br \/>\n        case HintBlock h       -&gt; h.render();<br \/>\n    };<br \/>\n}<\/p>\n<p>\u6f0f\u6389\u4efb\u4f55\u4e00\u4e2a case&#xff0c;\u7f16\u8bd1\u76f4\u63a5\u62a5\u9519\u3002\u8fd9\u610f\u5473\u7740\u300c\u6d88\u606f\u7c7b\u578b\u7684\u5904\u7406\u300d\u4ece\u300c\u9760\u7a0b\u5e8f\u5458\u8bb0\u5f97\u300d\u53d8\u6210\u4e86\u300c\u9760\u7f16\u8bd1\u5668\u4fdd\u8bc1\u300d\u2014\u2014\u8fd9\u6b63\u662f Python \u52a8\u6001\u7c7b\u578b\u7ed9\u4e0d\u4e86\u7684\u786e\u5b9a\u6027\u3002<\/p>\n<p>Note<\/p>\n<p>switch \u6a21\u5f0f\u5339\u914d\u5728 Java 21 \u8f6c\u6b63&#xff0c;Java 17 \u4e3a\u9884\u89c8\u7279\u6027&#xff08;\u9700 &#8211;enable-preview \u5f00\u542f&#xff09;&#xff0c;\u4e0a\u9762\u7684\u793a\u4f8b\u4ee3\u7801\u4ee5 Java 21 \u4e3a\u57fa\u51c6\u3002<\/p>\n<p>\u5bf9 Java \u5f00\u53d1\u8005\u6765\u8bf4&#xff0c;\u8fd9\u5957\u8bbe\u8ba1\u5e76\u4e0d\u964c\u751f&#xff0c;\u5b83\u5c31\u662f sealed &#043; switch \u6a21\u5f0f\u5339\u914d\u7684\u6559\u79d1\u4e66\u7528\u6cd5\u3002\u4f46\u628a\u5b83\u7528\u5728 Agent \u901a\u4fe1\u4e0a&#xff0c;\u662f AgentScope Java \u7b2c\u4e00\u4e2a\u771f\u6b63\u610f\u4e49\u4e0a\u7684\u5dee\u5f02\u5316\u3002<\/p>\n<p>\u56db\u3001\u673a\u5236\u4e8c&#xff1a;&#064;Tool \u6ce8\u89e3 &#043; \u65e0\u72b6\u6001 ReActAgent<\/p>\n<hr \/>\n<p>\u7b2c\u4e8c\u4e2a\u673a\u5236\u662f\u5de5\u5177\u7cfb\u7edf&#xff0c;\u5b83\u56de\u7b54\u7684\u95ee\u9898\u662f&#xff1a;\u600e\u4e48\u8ba9 LLM \u5b89\u5168\u3001\u5e76\u53d1\u5730\u8c03\u7528\u4f60\u7684 Java \u65b9\u6cd5&#xff1f;<\/p>\n<p>AgentScope Java \u7684\u505a\u6cd5&#xff0c;\u662f\u628a\u5de5\u5177\u5b9a\u4e49\u6536\u655b\u6210\u4e00\u4e2a\u6ce8\u89e3&#xff1a;<\/p>\n<p>public class OrderTools {<\/p>\n<p>    &#064;Tool(name &#061; &#034;query_order&#034;, description &#061; &#034;\u6839\u636e\u8ba2\u5355\u53f7\u67e5\u8be2\u8ba2\u5355\u72b6\u6001&#034;)<br \/>\n    public String queryOrder(<br \/>\n        &#064;ToolParam(description &#061; &#034;\u8ba2\u5355\u53f7&#034;) String orderId<br \/>\n    ) {<br \/>\n        return orderService.query(orderId);<br \/>\n    }<br \/>\n}<\/p>\n<p>\u6846\u67b6\u4f1a\u53cd\u5c04\u8bfb\u53d6 &#064;Tool \u548c &#064;ToolParam&#xff0c;\u81ea\u52a8\u751f\u6210 JSON Schema \u4ea4\u7ed9 LLM\u3002LLM \u51b3\u5b9a\u8c03\u7528\u54ea\u4e2a\u5de5\u5177\u3001\u4f20\u4ec0\u4e48\u53c2\u6570&#xff0c;\u6846\u67b6\u8d1f\u8d23\u53cd\u5e8f\u5217\u5316\u3001\u6267\u884c\u3001\u518d\u628a\u7ed3\u679c\u5c01\u88c5\u6210 ToolResultBlock \u56de\u4f20\u7ed9 LLM\u3002\u5f00\u53d1\u8005\u53ea\u5199\u4e1a\u52a1\u65b9\u6cd5&#xff0c;\u5269\u4e0b\u7684\u4ea4\u7ed9\u6846\u67b6\u3002<\/p>\n<p>\u8fd9\u91cc\u6709\u4e24\u4e2a\u8bbe\u8ba1\u7ec6\u8282\u503c\u5f97\u6ce8\u610f\u3002<\/p>\n<p>\u4e00\u662f\u4e0a\u4e0b\u6587\u6ce8\u5165\u4e0d\u66b4\u9732\u7ed9 LLM\u3002 \u5de5\u5177\u65b9\u6cd5\u5e38\u5e38\u9700\u8981\u62ff\u5230\u300c\u5f53\u524d\u662f\u8c01\u5728\u8c03\u7528\u3001\u4f1a\u8bdd ID \u662f\u4ec0\u4e48\u300d\u8fd9\u7c7b\u8bf7\u6c42\u4e0a\u4e0b\u6587&#xff0c;\u4f46\u8fd9\u4e9b\u4fe1\u606f\u4e0d\u8be5\u51fa\u73b0\u5728\u7ed9 LLM \u770b\u7684 Schema \u91cc\u3002AgentScope Java \u7528 RuntimeContext \u8ba9\u6846\u67b6\u81ea\u52a8\u6ce8\u5165&#xff0c;\u6ce8\u5165\u7684\u4e1c\u897f\u4e0d\u4f1a\u8fdb\u5165 Schema&#xff0c;\u5929\u7136\u9694\u79bb\u4e86\u300c\u5de5\u5177\u9700\u8981\u4e0a\u4e0b\u6587\u300d\u548c\u300c\u4e0a\u4e0b\u6587\u4e0d\u80fd\u66b4\u9732\u7ed9 LLM\u300d\u8fd9\u5bf9\u77db\u76fe\u3002<\/p>\n<p>\u4e8c\u662f\u65e0\u72b6\u6001 ReActAgent\u3002 \u8fd9\u662f\u5b83\u5e76\u53d1\u6a21\u578b\u7684\u7cbe\u9ad3\u3002ReActAgent \u5b9e\u4f8b\u672c\u8eab\u53ea\u6301\u6709\u4e0d\u53ef\u53d8\u914d\u7f6e&#xff08;\u7cfb\u7edf\u63d0\u793a\u8bcd\u3001\u6a21\u578b\u3001\u5de5\u5177\u96c6\u3001\u4e2d\u95f4\u4ef6\u94fe&#xff09;&#xff0c;\u6bcf\u4e00\u6b21\u8c03\u7528\u7684\u53ef\u53d8\u72b6\u6001\u901a\u8fc7 Reactor Context \u900f\u4f20\u3002\u4e8e\u662f\u540c\u4e00\u4e2a Agent \u5b9e\u4f8b&#xff0c;\u53ef\u4ee5\u5b89\u5168\u5730\u5e76\u53d1\u670d\u52a1\u591a\u4e2a (userId, sessionId) \u7ec4\u5408&#xff0c;\u800c\u4e0d\u5fc5\u4e3a\u6bcf\u4e2a\u4f1a\u8bdd new \u4e00\u4e2a\u5b9e\u4f8b\u3002<\/p>\n<p>\u8fd9\u4e24\u70b9\u5408\u8d77\u6765&#xff0c;\u89e3\u51b3\u7684\u662f Java \u540e\u7aef\u6700\u5173\u5fc3\u7684\u4e00\u4ef6\u4e8b&#xff1a;\u628a Agent \u5f53\u6210\u4e00\u4e2a\u65e0\u72b6\u6001\u670d\u52a1\u6765\u5199&#xff0c;\u8ba9\u5b83\u5929\u7136\u652f\u6301\u5e76\u53d1\u548c\u6c34\u5e73\u6269\u5c55\u3002 \u8fd9\u4e5f\u89e3\u91ca\u4e86\u4e3a\u4ec0\u4e48\u5b83\u7684\u90e8\u7f72\u5c42\u80fd\u914d\u5408 K8s HPA \u5f39\u6027\u4f38\u7f29\u2014\u2014\u56e0\u4e3a Agent \u672c\u8eab\u5c31\u662f\u65e0\u72b6\u6001\u7684&#xff0c;\u7f29\u5bb9\u6269\u5bb9\u4e0d\u9700\u8981\u989d\u5916\u5904\u7406\u4f1a\u8bdd\u8fc1\u79fb\u3002<\/p>\n<p>\u4e94\u3001\u5de5\u7a0b\u5316&#xff1a;200ms \u51b7\u542f\u52a8\u4e0e\u5206\u5e03\u5f0f\u591a\u667a\u80fd\u4f53<\/p>\n<hr \/>\n<p>\u5982\u679c\u8bf4\u524d\u4e24\u8282\u662f\u300c\u8bbe\u8ba1\u300d&#xff0c;\u8fd9\u4e00\u8282\u662f\u300c\u751f\u4ea7\u843d\u5730\u300d\u3002<\/p>\n<p>\u51b7\u542f\u52a8\u3002 \u901a\u8fc7 GraalVM \u539f\u751f\u955c\u50cf&#xff0c;AgentScope Java \u7684\u51b7\u542f\u52a8\u65f6\u95f4\u5728 200ms \u5de6\u53f3&#xff0c;\u800c\u666e\u901a JVM \u542f\u52a8\u8981\u51e0\u79d2&#xff0c;\u63d0\u5347\u7ea6\u4e00\u4e2a\u6570\u91cf\u7ea7\u3002\u8fd9\u4e2a\u6570\u5b57\u5bf9 Serverless \u548c\u5f39\u6027\u4f38\u7f29\u6709\u5b9e\u9645\u610f\u4e49&#xff1a;\u51fd\u6570\u8ba1\u7b97\u6309\u51b7\u542f\u52a8\u8ba1\u8d39&#xff0c;200ms \u610f\u5473\u7740 Agent \u53ef\u4ee5\u88ab\u300c\u7528\u5b8c\u5373\u505c\u300d&#xff0c;\u4e0d\u7528\u4e3a\u5e38\u9a7b\u8fdb\u7a0b\u4e70\u5355\u3002<\/p>\n<p>\u5206\u5e03\u5f0f\u591a\u667a\u80fd\u4f53\u3002 \u8fd9\u662f\u5b83\u533a\u522b\u4e8e\u5355\u673a Python \u6846\u67b6\u7684\u6838\u5fc3\u80fd\u529b\u3002\u901a\u8fc7 A2A \u534f\u8bae &#043; Nacos \u670d\u52a1\u53d1\u73b0&#xff0c;\u4e00\u4e2a Agent \u53ef\u4ee5\u50cf\u8c03\u7528\u5fae\u670d\u52a1\u4e00\u6837\u8c03\u7528\u53e6\u4e00\u4e2a Agent\u2014\u2014\u65e0\u8bba\u5b83\u8dd1\u5728\u540c\u4e00\u8fdb\u7a0b\u8fd8\u662f\u53e6\u4e00\u53f0\u673a\u5668\u3002\u914d\u5408 Redis Session \u548c\u5bf9\u8c61\u5b58\u50a8\u505a\u5de5\u4f5c\u533a\u6301\u4e45\u5316&#xff0c;\u4efb\u610f\u526f\u672c\u90fd\u80fd\u6062\u590d\u540c\u4e00\u4e2a\u7528\u6237\u4e0a\u4e0b\u6587&#xff0c;\u505a\u5230\u771f\u6b63\u7684\u65e0\u72b6\u6001\u6c34\u5e73\u6269\u5c55\u3002<\/p>\n<p>\u5de5\u7a0b\u5316\u5305\u88c5\u3002HarnessAgent \u5728 ReActAgent \u4e4b\u4e0a\u53e0\u52a0\u5de5\u4f5c\u533a\u3001\u8bb0\u5fc6\u3001\u6c99\u7bb1\u3001\u5b50 Agent \u7f16\u6392\u3001Plan Mode \u8fd9\u4e9b\u4f01\u4e1a\u7ea7\u80fd\u529b&#xff0c;\u6838\u5fc3\u7406\u5ff5\u662f\u300c\u53ea\u53e0\u52a0\u3001\u4e0d\u66ff\u6362\u300d\u2014\u2014\u6838\u5fc3\u7684 ReAct \u63a8\u7406\u5faa\u73af\u539f\u6837\u4fdd\u7559&#xff0c;\u5de5\u7a0b\u5316\u80fd\u529b\u901a\u8fc7 Middleware \u548c Toolkit \u4e24\u4e2a\u6269\u5c55\u901a\u9053\u6302\u4e0a\u53bb\u3002<\/p>\n<p>\u8fd9\u4e9b\u80fd\u529b\u653e\u5728\u4e00\u8d77&#xff0c;\u6307\u5411\u540c\u4e00\u4e2a\u5224\u65ad&#xff1a;AgentScope Java \u60f3\u89e3\u51b3\u7684\u4e0d\u662f\u300c\u600e\u4e48\u8c03\u7528\u5927\u6a21\u578b\u300d&#xff0c;\u800c\u662f\u300c\u600e\u4e48\u628a Agent \u8dd1\u5728\u751f\u4ea7\u73af\u5883\u91cc\u300d\u3002<\/p>\n<p>\u516d\u3001\u4e0e Spring AI Alibaba \u7684\u8fb9\u754c<\/p>\n<hr \/>\n<p>\u540c\u4e00\u4e2a\u963f\u91cc&#xff0c;\u51fa\u4e86\u4e24\u4e2a Java AI \u6846\u67b6&#xff0c;\u8fd9\u96be\u514d\u8ba9\u4eba\u56f0\u60d1&#xff1a;\u5230\u5e95\u9009\u54ea\u4e2a&#xff1f;<\/p>\n<p>\u533a\u522b\u4e0d\u5728\u300c\u8c01\u66f4\u597d\u300d&#xff0c;\u800c\u5728\u300c\u8303\u5f0f\u4e0d\u540c\u300d&#xff1a;<\/p>\n<table>\n<tr>\u7ef4\u5ea6AgentScope JavaSpring AI Alibaba<\/tr>\n<tbody>\n<tr>\n<td>\u6838\u5fc3\u8303\u5f0f<\/td>\n<td>Agentic&#xff08;\u81ea\u4e3b\u667a\u80fd\u4f53&#xff09;<\/td>\n<td>Workflow&#xff08;\u56fe\u7f16\u6392&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u63a7\u5236\u6743<\/td>\n<td>LLM \u4fa7&#xff1a;\u89c2\u5bdf\u2014\u601d\u8003\u2014\u884c\u52a8\u5faa\u73af<\/td>\n<td>\u4ee3\u7801\u4fa7&#xff1a;\u663e\u5f0f\u5b9a\u4e49 A\u2192B\u2192C<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u573a\u666f<\/td>\n<td>\u590d\u6742\u95ee\u9898\u6c42\u89e3\u3001\u591a\u667a\u80fd\u4f53\u534f\u4f5c<\/td>\n<td>\u4e1a\u52a1\u6d41 AI \u589e\u5f3a\u3001RAG \u95ee\u7b54<\/td>\n<\/tr>\n<tr>\n<td>\u4e0a\u624b\u95e8\u69db<\/td>\n<td>\u76f8\u5bf9\u4f4e&#xff0c;\u65e0\u9700 Spring \u80cc\u666f<\/td>\n<td>\u9700\u719f\u6089 Spring \u751f\u6001<\/td>\n<\/tr>\n<tr>\n<td>Star&#xff08;2026&#xff09;<\/td>\n<td>14k&#043;<\/td>\n<td>10k&#043;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Tip<\/p>\n<p>\u9009\u578b\u5efa\u8bae&#xff1a;\u60f3\u8ba9 Agent \u81ea\u4e3b\u89c4\u5212\u3001\u8c03\u7528\u5de5\u5177\u3001\u591a\u4e2a Agent \u534f\u540c\u89e3\u51b3\u5f00\u653e\u5f0f\u95ee\u9898&#xff0c;\u9009 AgentScope Java&#xff1b;\u60f3\u5728\u73b0\u6709 Spring \u4e1a\u52a1\u6d41\u91cc\u5feb\u901f\u52a0\u4e00\u6bb5 AI \u80fd\u529b&#xff0c;\u9009 Spring AI Alibaba\u3002<\/p>\n<p>\u4e24\u8005\u4e0d\u662f\u7ade\u4e89\u5173\u7cfb&#xff0c;\u5b98\u65b9\u4e5f\u660e\u786e\u89c4\u5212\u672a\u6765 AgentScope \u7684\u7f16\u6392\u80fd\u529b\u4f1a\u4e0b\u6c89\u5230 Spring AI Alibaba&#xff0c;\u5f62\u6210\u4e92\u8865\u3002<\/p>\n<p>\u4e03\u3001\u5c55\u671b<\/p>\n<hr \/>\n<p>AgentScope Java \u7684\u51fa\u73b0&#xff0c;\u6807\u5fd7\u7740 Java \u751f\u6001\u5728 AI \u4e0a\u7684\u4e00\u4e2a\u8f6c\u5411&#xff1a;\u4ece\u300c\u80fd\u4e0d\u80fd\u8c03\u5927\u6a21\u578b\u300d&#xff08;\u8fd9\u4e2a\u95ee\u9898\u65e9\u5df2\u89e3\u51b3&#xff09;&#xff0c;\u8f6c\u5411\u300c\u600e\u4e48\u628a Agent \u5de5\u7a0b\u5316\u5730\u8dd1\u5728\u751f\u4ea7\u73af\u5883\u300d\u3002\u5b83\u628a Java \u5f15\u4ee5\u4e3a\u50b2\u7684\u7c7b\u578b\u7cfb\u7edf\u3001\u5e76\u53d1\u6a21\u578b\u3001\u5fae\u670d\u52a1\u6cbb\u7406&#xff0c;\u7528\u5728\u4e86 Agent \u8fd9\u4e2a\u65b0\u7269\u79cd\u4e0a\u3002<\/p>\n<p>AI Agent \u7684\u6846\u67b6\u4e4b\u4e89\u8fd8\u8fdc\u6ca1\u5230\u7ec8\u5c40&#xff0c;\u4f46 AgentScope Java \u7ed9\u51fa\u4e86\u4e00\u4e2a\u6e05\u6670\u7684\u4fe1\u53f7&#xff1a;\u5728 Java \u7684\u4e16\u754c\u91cc&#xff0c;Agent \u7684\u7ec8\u70b9\u4e0d\u662f\u4e00\u6bb5 Python \u811a\u672c&#xff0c;\u800c\u662f\u4e00\u4e2a\u80fd\u7eb3\u5165\u73b0\u6709\u5de5\u7a0b\u4f53\u7cfb\u3001\u7ecf\u5f97\u8d77\u751f\u4ea7\u68c0\u9a8c\u7684\u670d\u52a1\u3002<\/p>\n<h3>\u6700\u540e<\/h3>\n<p>2026 \u5e74\u4e00\u6643\u5df2\u7ecf\u8fc7\u534a&#xff0c;AI \u5927\u6a21\u578b\u7684\u70ed\u6f6e\u4e0d\u4ec5\u6ca1\u6709\u964d\u6e29&#xff0c;\u53cd\u800c\u6301\u7eed\u5347\u6e29&#xff01;<\/p>\n<p>\u91d1\u878d\u884c\u4e1a\u7528\u5927\u6a21\u578b\u505a\u98ce\u63a7\u3001\u533b\u7597\u4f9d\u9760 AI \u89e3\u6790\u5f71\u50cf&#xff0c;\u7535\u5546\u3001\u5236\u9020\u3001\u6559\u80b2\u5404\u884c\u5404\u4e1a&#xff0c;\u90fd\u5728\u628a AI \u878d\u5165\u65e5\u5e38\u4e1a\u52a1\u3002\u66fe\u7ecf\u70ed\u95f9\u7684 \u201c\u767e\u6a21\u5927\u6218\u201d&#xff0c;\u65e9\u5c31\u544a\u522b\u5355\u7eaf\u6bd4\u62fc\u6a21\u578b\u53c2\u6570&#xff0c;\u6b63\u5f0f\u8fdb\u5165\u843d\u5730\u5e94\u7528\u65f6\u4ee3\u3002<\/p>\n<p>\u73b0\u5728\u4f01\u4e1a\u75af\u72c2\u7d27\u7f3a\u4e00\u7c7b\u4eba\u624d&#xff1a;\u61c2\u4e1a\u52a1\u3001\u61c2 AI\u3001\u80fd\u505a\u51fa\u53ef\u4e0a\u7ebf\u9879\u76ee\u7684\u5927\u6a21\u578b\u5f00\u53d1\u5de5\u7a0b\u5e08&#xff0c;\u5c97\u4f4d\u7f3a\u53e3\u5927&#xff0c;\u85aa\u8d44\u5f85\u9047\u5341\u5206\u53ef\u89c2\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060928-6aa4ec98700ea.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u98ce\u53e3\u518d\u597d&#xff0c;\u4e0d\u5982\u624b\u63e1\u9ad8\u85aa offer \u5b9e\u5728\u3002\u884c\u60c5\u706b\u70ed&#xff0c;\u666e\u901a\u4eba\u3001\u7a0b\u5e8f\u5458\u8be5\u600e\u6837\u4ece\u96f6\u5165\u95e8\u5927\u6a21\u578b&#xff0c;\u6293\u4f4f\u8fd9\u6ce2\u673a\u4f1a&#xff1f;<\/p>\n<p>\u4eca\u5929\u6574\u7406\u597d\u30102026 \u6700\u65b0\u7248\u3011AI \u5927\u6a21\u578b\u5168\u5957\u514d\u8d39\u5b66\u4e60\u8d44\u6e90&#xff0c;\u8986\u76d6\u96f6\u57fa\u7840\u5165\u95e8\u3001\u9879\u76ee\u5b9e\u6218\u3001\u7406\u8bba\u77e5\u8bc6\u3001\u5927\u5382\u9762\u8bd5&#xff0c;\u4ece\u57fa\u7840\u4e00\u8def\u8fdb\u9636\u3002\u6240\u6709\u8d44\u6599\u5206\u7c7b\u5f52\u6863&#xff0c;\u6ca1\u6709\u591a\u4f59\u6742\u6599&#xff0c;\u65e0\u5957\u8def\u514d\u8d39\u5206\u4eab\u7ed9\u60f3\u8981\u5165\u5c40 AI \u8d5b\u9053\u7684\u7a0b\u5e8f\u5458\u4e0e\u96f6\u57fa\u7840\u5c0f\u767d&#xff01;<\/p>\n<p>&#x1f447;&#x1f447;\u626b\u7801\u514d\u8d39\u9886\u53d6\u5168\u90e8\u5185\u5bb9&#x1f447;&#x1f447;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060929-6aa4ec99f0586.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>1\u3001\u5927\u6a21\u578b\u7cfb\u7edf\u5316\u5b8c\u6574\u5b66\u4e60\u8def\u7ebf<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060930-6aa4ec9a603c5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>2\u3001\u5927\u6a21\u578b\u7ecf\u5178\u4e66\u7c4d&amp;\u6587\u6863<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060930-6aa4ec9aa75a5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>3\u3001AI \u5927\u6a21\u578b\u6700\u65b0\u884c\u4e1a\u7814\u7a76\u62a5\u544a<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060932-6aa4ec9c4238d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>4\u3001\u4f01\u4e1a\u7ea7\u5b9e\u6218\u9879\u76ee &#043; \u5b8c\u6574\u914d\u5957\u6e90\u7801<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060933-6aa4ec9d25b1a.gif\" alt=\"img\" \/><\/p>\n<h3>5\u3001\u5927\u5382\u5927\u6a21\u578b\u9762\u8bd5\u771f\u9898\u6c47\u603b<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060933-6aa4ec9d4bb7a.gif\" alt=\"img\" \/><\/p>\n<h3>6\u3001\u8fd9\u4e9b\u8d44\u6599\u771f\u7684\u6709\u7528\u5417&#xff1f;<\/h3>\n<p>\u8fd9\u4efd\u8d44\u6599\u7531\u6211\u548c\u9c81\u4e3a\u6c11\u535a\u58eb(\u5317\u4eac\u6e05\u534e\u5927\u5b66\u5b66\u58eb\u548c\u7f8e\u56fd\u52a0\u5dde\u7406\u5de5\u5b66\u9662\u535a\u58eb)\u5171\u540c\u6574\u7406&#xff0c;\u73b0\u4efb\u4e0a\u6d77\u6bb7\u6cca\u4fe1\u606f\u79d1\u6280CEO&#xff0c;\u5176\u521b\u7acb\u7684MoPaaS\u4e91\u5e73\u53f0\u83b7Forrester\u5168\u7403\u2019\u5f3a\u52b2\u8868\u73b0\u8005\u2019\u8ba4\u8bc1&#xff0c;\u670d\u52a1\u822a\u5929\u79d1\u5de5\u3001\u56fd\u5bb6\u7535\u7f51\u7b491000&#043;\u4f01\u4e1a&#xff0c;\u4ee5\u7b2c\u4e00\u4f5c\u8005\u5728IEEE Transactions\u53d1\u8868\u8bba\u658750&#043;\u7bc7&#xff0c;\u83b7NASA JPL\u706b\u661f\u63a2\u6d4b\u7cfb\u7edf\u5f3a\u5316\u5b66\u4e60\u4e13\u5229\u7b4935\u9879\u4e2d\u7f8e\u4e13\u5229\u3002\u672c\u5957AI\u5927\u6a21\u578b\u8bfe\u7a0b\u7531\u6e05\u534e\u5927\u5b66-\u52a0\u5dde\u7406\u5de5\u53cc\u6599\u535a\u58eb\u3001\u5434\u6587\u4fca\u4eba\u5de5\u667a\u80fd\u5956\u5f97\u4e3b\u9c81\u4e3a\u6c11\u6559\u6388\u9886\u8854\u7814\u53d1\u3002<\/p>\n<p>\u8d44\u6599\u5185\u5bb9\u6db5\u76d6\u4e86\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u7684\u5404\u7c7b\u89c6\u9891\u6559\u7a0b\u548c\u5b9e\u6218\u9879\u76ee&#xff0c;\u65e0\u8bba\u4f60\u662f\u5c0f\u767d\u8fd8\u662f\u6709\u4e9b\u6280\u672f\u57fa\u7840\u7684\u6280\u672f\u4eba\u5458&#xff0c;\u8fd9\u4efd\u8d44\u6599\u90fd\u7edd\u5bf9\u80fd\u5e2e\u52a9\u4f60\u63d0\u5347\u85aa\u8d44\u5f85\u9047&#xff0c;\u8f6c\u884c\u5927\u6a21\u578b\u5c97\u4f4d\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060933-6aa4ec9d68aca.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060933-6aa4ec9dacf7b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fd9\u4efd\u5b8c\u6574\u7248\u7684\u5927\u6a21\u578b AI \u5b66\u4e60\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\/09\/20260912060929-6aa4ec99f0586.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u963f\u91cc\u901a\u4e49\u5b9e\u9a8c\u5ba4\u5f00\u6e90\u7684 AgentScope Java \u7248\u672c&#xff0c;\u5b83\u901a\u8fc7 JDK 17 \u7684\u65b0\u7279\u6027\u5982 Record \u548c Sealed Classes&#xff0c;\u5c06 Agent \u5f53\u4f5c\u5e76\u53d1\u5b89\u5168\u3001\u7c7b\u578b\u5b89\u5168\u3001\u80fd\u6c34\u5e73\u6269\u5c55\u7684\u4f01\u4e1a\u7ea7\u670d\u52a1\u6765\u91cd\u65b0\u8bbe\u8ba1\u3002\u6587\u7ae0\u63a2\u8ba8\u4e86 Java \u56e2\u961f\u5728\u843d\u5730 Agent \u65f6\u9047\u5230\u7684\u56db\u9053\u574e&#xff0c;\u4ee5\u53ca AgentScope Java \u5982\u4f55\u901a\u8fc7\u56db\u5c42\u67b6\u6784\u3001\u4e0d\u53ef\u53d8\u6d88\u606f\u548c Tool \u6ce8\u89e3\u7b49\u673a\u5236\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002\u6b64\u5916&#xff0c;\u6587\u7ae0\u8fd8\u5bf9\u6bd4\u4e86 AgentS<\/p>\n","protected":false},"author":2,"featured_media":104433,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,50,132,371,190],"topic":[],"class_list":["post-104444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-50","tag-132","tag-371","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AgentScope Java\uff1a\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1 Agent\uff0c\u5438\u5f15\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\u5b66\u4e60\u5927\u6a21\u578b\uff08\u6536\u85cf\u7248\uff09 - \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\/104444.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AgentScope Java\uff1a\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1 Agent\uff0c\u5438\u5f15\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\u5b66\u4e60\u5927\u6a21\u578b\uff08\u6536\u85cf\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u4ecb\u7ecd\u4e86\u963f\u91cc\u901a\u4e49\u5b9e\u9a8c\u5ba4\u5f00\u6e90\u7684 AgentScope Java \u7248\u672c&#xff0c;\u5b83\u901a\u8fc7 JDK 17 \u7684\u65b0\u7279\u6027\u5982 Record \u548c Sealed Classes&#xff0c;\u5c06 Agent \u5f53\u4f5c\u5e76\u53d1\u5b89\u5168\u3001\u7c7b\u578b\u5b89\u5168\u3001\u80fd\u6c34\u5e73\u6269\u5c55\u7684\u4f01\u4e1a\u7ea7\u670d\u52a1\u6765\u91cd\u65b0\u8bbe\u8ba1\u3002\u6587\u7ae0\u63a2\u8ba8\u4e86 Java \u56e2\u961f\u5728\u843d\u5730 Agent \u65f6\u9047\u5230\u7684\u56db\u9053\u574e&#xff0c;\u4ee5\u53ca AgentScope Java \u5982\u4f55\u901a\u8fc7\u56db\u5c42\u67b6\u6784\u3001\u4e0d\u53ef\u53d8\u6d88\u606f\u548c Tool \u6ce8\u89e3\u7b49\u673a\u5236\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002\u6b64\u5916&#xff0c;\u6587\u7ae0\u8fd8\u5bf9\u6bd4\u4e86 AgentS\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/104444.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-12T06:09:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060927-6aa4ec97e575a.jpg\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/104444.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/104444.html\",\"name\":\"AgentScope Java\uff1a\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1 Agent\uff0c\u5438\u5f15\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\u5b66\u4e60\u5927\u6a21\u578b\uff08\u6536\u85cf\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-12T06:09:34+00:00\",\"dateModified\":\"2026-09-12T06:09:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/104444.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/104444.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/104444.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AgentScope Java\uff1a\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1 Agent\uff0c\u5438\u5f15\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\u5b66\u4e60\u5927\u6a21\u578b\uff08\u6536\u85cf\u7248\uff09\"}]},{\"@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":"AgentScope Java\uff1a\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1 Agent\uff0c\u5438\u5f15\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\u5b66\u4e60\u5927\u6a21\u578b\uff08\u6536\u85cf\u7248\uff09 - \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\/104444.html","og_locale":"zh_CN","og_type":"article","og_title":"AgentScope Java\uff1a\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1 Agent\uff0c\u5438\u5f15\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\u5b66\u4e60\u5927\u6a21\u578b\uff08\u6536\u85cf\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6587\u4ecb\u7ecd\u4e86\u963f\u91cc\u901a\u4e49\u5b9e\u9a8c\u5ba4\u5f00\u6e90\u7684 AgentScope Java \u7248\u672c&#xff0c;\u5b83\u901a\u8fc7 JDK 17 \u7684\u65b0\u7279\u6027\u5982 Record \u548c Sealed Classes&#xff0c;\u5c06 Agent \u5f53\u4f5c\u5e76\u53d1\u5b89\u5168\u3001\u7c7b\u578b\u5b89\u5168\u3001\u80fd\u6c34\u5e73\u6269\u5c55\u7684\u4f01\u4e1a\u7ea7\u670d\u52a1\u6765\u91cd\u65b0\u8bbe\u8ba1\u3002\u6587\u7ae0\u63a2\u8ba8\u4e86 Java \u56e2\u961f\u5728\u843d\u5730 Agent \u65f6\u9047\u5230\u7684\u56db\u9053\u574e&#xff0c;\u4ee5\u53ca AgentScope Java \u5982\u4f55\u901a\u8fc7\u56db\u5c42\u67b6\u6784\u3001\u4e0d\u53ef\u53d8\u6d88\u606f\u548c Tool \u6ce8\u89e3\u7b49\u673a\u5236\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002\u6b64\u5916&#xff0c;\u6587\u7ae0\u8fd8\u5bf9\u6bd4\u4e86 AgentS","og_url":"https:\/\/www.wsisp.com\/helps\/104444.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-12T06:09:34+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260912060927-6aa4ec97e575a.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/104444.html","url":"https:\/\/www.wsisp.com\/helps\/104444.html","name":"AgentScope Java\uff1a\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1 Agent\uff0c\u5438\u5f15\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\u5b66\u4e60\u5927\u6a21\u578b\uff08\u6536\u85cf\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-12T06:09:34+00:00","dateModified":"2026-09-12T06:09:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/104444.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/104444.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/104444.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"AgentScope Java\uff1a\u7528 Java \u7c7b\u578b\u7cfb\u7edf\u91cd\u65b0\u8bbe\u8ba1 Agent\uff0c\u5438\u5f15\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\u5b66\u4e60\u5927\u6a21\u578b\uff08\u6536\u85cf\u7248\uff09"}]},{"@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\/104444","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=104444"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/104444\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/104433"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=104444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=104444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=104444"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=104444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}