AS AgentScopeAPI 手册 / API Reference

Version

public final class Version
源码Source 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.properties classpath resource, whose ${project.version} placeholder is resolved by Maven resource filtering;

  • the Implementation-Version manifest 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 IDE target/classes with no manifest), accompanied by a one-time warning log.

字段摘要Field Summary

字段Field类型Type说明Description
VERSION
staticfinal
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
staticfinal

版本字段。声明为 public static final String VERSION。

AgentScope Java version.

源码Source io/agentscope/core/Version.java:56

方法详情Method Detail

getUserAgent

public static String getUserAgent()
static

获取用户智能体。

Generate standard User-Agent string for all models.

返回Returns String
返回字符串结果。unified User-Agent string
源码Source io/agentscope/core/Version.java:168–172
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.