Version
public final class Version
io/agentscope/core/Version.java:41–173版本,驱动智能体的推理、工具调用与会话执行。位于 io.agentscope.core 包。核心成员包括 getUserAgent、VERSION。
AgentScope version and User-Agent information.
Provides a unified User-Agent string for all model requests to identify AgentScope Java clients and collect usage statistics.
The version is resolved at class-load time through a three-level fallback chain:
-
the
META-INF/agentscope/version.propertiesclasspath resource, whose${project.version}placeholder is resolved by Maven resource filtering; -
the
Implementation-Versionmanifest entry of the containing jar, which is populated from${project.version}by the Maven jar plugin; -
the literal
"unknown"as a last resort (e.g. running straight from IDEtarget/classeswith no manifest), accompanied by a one-time warning log.
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
VERSIONstaticfinal | String | 版本字段。 AgentScope Java version. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static String getUserAgent()static | 获取用户智能体。 Generate standard User-Agent string for all models. |
字段详情Field Detail
VERSION
public static final String VERSION
版本字段。声明为 public static final String VERSION。
AgentScope Java version.
io/agentscope/core/Version.java:56方法详情Method Detail
getUserAgent
public static String getUserAgent()
获取用户智能体。
Generate standard User-Agent string for all models.
Stringio/agentscope/core/Version.java:168–172