AS AgentScopeAPI 手册 / API Reference

VaultEntity

@Entity @Table( name = "builder_vault", indexes = {@Index(name = "ix_builder_vault_owner", columnList = "owner_id")}) public class VaultEntity
源码Source io/agentscope/builder/web/persistence/jpa/VaultEntity.java:28–115

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

Per-end-user credential vault referenced by sessions via vault_ids.

构造器摘要Constructor Summary

构造器Constructor说明Description
public VaultEntity()
初始化 `VaultEntity` 实例。
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 getVaultId()
获取 `getVaultId`。
Returns the vault id.
public void setVaultId(String vaultId)
设置 `setVaultId`。
Sets the vault id.
public String getOwnerId()
获取所有者标识。
Returns the owner id.
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
public String getDisplayName()
获取展示名称。
Returns the display name.
public void setDisplayName(String displayName)
设置展示名称。
Sets the display name.
public String getMetadataJson()
获取元数据 JSON。
Returns the metadata json.
public void setMetadataJson(String metadataJson)
设置元数据 JSON。
Sets the metadata json.
public long getCreatedAt()
获取已创建 At。
Returns the created at.
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
public void setUpdatedAt(long updatedAt)
设置已更新 At。
Sets the updated at.

构造器详情Constructor Detail

VaultEntity

public VaultEntity()

初始化 VaultEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/VaultEntity.java:58

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

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

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/VaultEntity.java:64–66

getVaultId

public String getVaultId()

获取 getVaultId。

Returns the vault id.

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

setVaultId

public void setVaultId(String vaultId)

设置 setVaultId。

Sets the vault id.

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

getOwnerId

public String getOwnerId()

获取所有者标识。

Returns the owner id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/VaultEntity.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/VaultEntity.java:80–82

getDisplayName

public String getDisplayName()

获取展示名称。

Returns the display name.

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

setDisplayName

public void setDisplayName(String displayName)

设置展示名称。

Sets the display name.

参数Parameters
名称Name类型Type说明Description
displayNameString展示名称(类型 `String`)。The display name.
源码Source io/agentscope/builder/web/persistence/jpa/VaultEntity.java:88–90

getMetadataJson

public String getMetadataJson()

获取元数据 JSON。

Returns the metadata json.

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

setMetadataJson

public void setMetadataJson(String metadataJson)

设置元数据 JSON。

Sets the metadata json.

参数Parameters
名称Name类型Type说明Description
metadataJsonString元数据 JSON(类型 `String`)。The metadata json.
源码Source io/agentscope/builder/web/persistence/jpa/VaultEntity.java:96–98

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

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

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/VaultEntity.java:104–106

getUpdatedAt

public long getUpdatedAt()

获取已更新 At。

Returns the updated at.

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

setUpdatedAt

public void setUpdatedAt(long updatedAt)

设置已更新 At。

Sets the updated at.

参数Parameters
名称Name类型Type说明Description
updatedAtlong已更新 At(类型 `long`)。The updated at.
源码Source io/agentscope/builder/web/persistence/jpa/VaultEntity.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.