AgentScope Java v2 HarnessAgent defaults to 13 middlewares and 23 tools
A read-only anatomy probe in the Juejin AI article found that an otherwise unconfigured AgentScope Java v2.0.3 HarnessAgent assembles with 13 middlewares, 23 tools, and a non-null JsonFileAgentStateStore. The author also shows that its advertised capabilities do not map one-to-one to middleware classes: tools expose model-initiated actions, while middleware handles automatic or intercepting behavior. Configuration variants demonstrate that middleware and tool membership can change independently.
The measured defaults give developers a clearer picture of what an AgentScope Java v2 HarnessAgent exposes before any application-specific configuration, including tools that can modify files or run commands.
摘要:一个什么都没配置的 HarnessAgent,默认挂了 13 个中间件、23 个工具,还把账本落到了家目录。本文从一个解剖端点出发,拆这份清单:哪些是固定的,哪些随配置变;12 项能力为什么不是 12 个中间件;默认值翻转之后,状态到底住在哪。最后落到中间件模型的边界:横切归中间件,控制流归引擎——别家也有整机,差别在默认装多厚、装在哪个栈上。
共约 7328 字 · 阅读约 18 分钟
1、开场:一个什么都没配的 HarnessAgent,替我装了 13 个中间件
第 9 课我先加了个只读端点:GET /workbench/harness/anatomy。它只装配、不调用——模型换成 fake 占位,业务工具一个没注册。以下数字都是 AgentScope 2.0.3 的。
#AgentScope Java v2#HarnessAgent#ReActAgent#JsonFileAgentStateStore