AS AgentScopeAPI 手册 / API Reference

AgentVersionEntity

@Entity @Table( name = "builder_agent_version", uniqueConstraints = @UniqueConstraint( name = "ux_builder_agent_version", columnNames = {"owner_id", "agent_id", "version"}), indexes = { @Index(name = "ix_builder_agent_version_owner_agent", columnList = "owner_id, agent_id") }) public class AgentVersionEntity
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:32–115

智能体版本 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getOwnerId、setOwnerId、getAgentId、setAgentId。

Immutable configuration snapshot for one version of a user-custom agent. Head pointer lives on AgentEntity#getHeadVersion(); updates create a new row and bump the head.

构造器摘要Constructor Summary

构造器Constructor说明Description
public AgentVersionEntity()
初始化 `AgentVersionEntity` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Long getRowId()
获取 `getRowId`。
Returns the row id.
public void setRowId(Long rowId)
设置 `setRowId`。
Sets the row id.
public String getOwnerId()
获取所有者标识。
Returns the owner id.
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
public String getAgentId()
获取智能体标识。
Returns the agent id.
public void setAgentId(String agentId)
设置智能体标识。
Sets the agent id.
public int getVersion()
获取版本。
Returns the version.
public void setVersion(int version)
设置版本。
Sets the version.
public String getSnapshotJson()
获取快照 JSON。
Returns the snapshot json.
public void setSnapshotJson(String snapshotJson)
设置快照 JSON。
Sets the snapshot json.
public long getCreatedAt()
获取已创建 At。
Returns the created at.
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.

构造器详情Constructor Detail

AgentVersionEntity

public AgentVersionEntity()

初始化 AgentVersionEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:66

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:68–70

setRowId

public void setRowId(Long rowId)

设置 setRowId。

Sets the row id.

参数Parameters
名称Name类型Type说明Description
rowIdLongrow 标识(类型 `Long`)。The row id.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:72–74

getOwnerId

public String getOwnerId()

获取所有者标识。

Returns the owner id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:76–78

setOwnerId

public void setOwnerId(String ownerId)

设置所有者标识。

Sets the owner id.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:80–82

getAgentId

public String getAgentId()

获取智能体标识。

Returns the agent id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:84–86

setAgentId

public void setAgentId(String agentId)

设置智能体标识。

Sets the agent id.

参数Parameters
名称Name类型Type说明Description
agentIdString智能体标识(类型 `String`)。The agent id.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:88–90

getVersion

public int getVersion()

获取版本。

Returns the version.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:92–94

setVersion

public void setVersion(int version)

设置版本。

Sets the version.

参数Parameters
名称Name类型Type说明Description
versionint版本(类型 `int`)。The version.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:96–98

getSnapshotJson

public String getSnapshotJson()

获取快照 JSON。

Returns the snapshot json.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:100–102

setSnapshotJson

public void setSnapshotJson(String snapshotJson)

设置快照 JSON。

Sets the snapshot json.

参数Parameters
名称Name类型Type说明Description
snapshotJsonString快照 JSON(类型 `String`)。The snapshot json.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:104–106

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:108–110

setCreatedAt

public void setCreatedAt(long createdAt)

设置已创建 At。

Sets the created at.

参数Parameters
名称Name类型Type说明Description
createdAtlong已创建 At(类型 `long`)。The created at.
源码Source io/agentscope/builder/web/persistence/jpa/AgentVersionEntity.java:112–114
基于官方固定版本源码静态生成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.