AS AgentScopeAPI 手册 / API Reference

UserMarketplaceEntity

@Entity @Table( name = "builder_user_marketplace", uniqueConstraints = @UniqueConstraint( name = "uk_user_marketplace", columnNames = {"user_id", "marketplace_id"}), indexes = {@Index(name = "ix_user_marketplace_user", columnList = "user_id")}) public class UserMarketplaceEntity
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:37–136

用户市场 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getId、getUserId、setUserId、getMarketplaceId、setMarketplaceId、getType。

Persistent representation of a single user-owned skill marketplace.

Differs from claw's marketplaces block in agentscope.json: in builder every marketplace belongs to exactly one user and is invisible to others. The (user_id, marketplace_id) pair is unique — a user cannot have two marketplaces with the same id, but two different users may reuse the same id without collision.

构造器摘要Constructor Summary

构造器Constructor说明Description
public UserMarketplaceEntity()
初始化 `UserMarketplaceEntity` 实例。
Creates a new instance.
public UserMarketplaceEntity(String userId, String marketplaceId, String type, String propertiesJson)
初始化 `UserMarketplaceEntity` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Long getId()
获取标识。
Returns the id.
public String getUserId()
获取用户标识。
Returns the user id.
public void setUserId(String userId)
设置用户标识。
Sets the user id.
public String getMarketplaceId()
获取市场标识。
Returns the marketplace id.
public void setMarketplaceId(String marketplaceId)
设置市场标识。
Sets the marketplace id.
public String getType()
获取类型。
Returns the type.
public void setType(String type)
设置类型。
Sets the type.
public String getPropertiesJson()
获取属性 JSON。
Returns the properties json.
public void setPropertiesJson(String propertiesJson)
设置属性 JSON。
Sets the properties json.
public Instant getCreatedAt()
获取已创建 At。
Returns the created at.
public void setCreatedAt(Instant createdAt)
设置已创建 At。
Sets the created at.
public Instant getUpdatedAt()
获取已更新 At。
Returns the updated at.
public void setUpdatedAt(Instant updatedAt)
设置已更新 At。
Sets the updated at.

构造器详情Constructor Detail

UserMarketplaceEntity

public UserMarketplaceEntity()

初始化 UserMarketplaceEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:75

UserMarketplaceEntity

public UserMarketplaceEntity(String userId, String marketplaceId, String type, String propertiesJson)

初始化 UserMarketplaceEntity 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
userIdString用户标识(类型 `String`)。The user id.
marketplaceIdString市场标识(类型 `String`)。The marketplace id.
typeString类型(类型 `String`)。The type.
propertiesJsonString属性 JSON(类型 `String`)。The properties json.
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:77–83

方法详情Method Detail

getId

public Long getId()

获取标识。

Returns the id.

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

getUserId

public String getUserId()

获取用户标识。

Returns the user id.

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

setUserId

public void setUserId(String userId)

设置用户标识。

Sets the user id.

参数Parameters
名称Name类型Type说明Description
userIdString用户标识(类型 `String`)。The user id.
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:93–95

getMarketplaceId

public String getMarketplaceId()

获取市场标识。

Returns the marketplace id.

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

setMarketplaceId

public void setMarketplaceId(String marketplaceId)

设置市场标识。

Sets the marketplace id.

参数Parameters
名称Name类型Type说明Description
marketplaceIdString市场标识(类型 `String`)。The marketplace id.
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:101–103

getType

public String getType()

获取类型。

Returns the type.

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

setType

public void setType(String type)

设置类型。

Sets the type.

参数Parameters
名称Name类型Type说明Description
typeString类型(类型 `String`)。The type.
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:109–111

getPropertiesJson

public String getPropertiesJson()

获取属性 JSON。

Returns the properties json.

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

setPropertiesJson

public void setPropertiesJson(String propertiesJson)

设置属性 JSON。

Sets the properties json.

参数Parameters
名称Name类型Type说明Description
propertiesJsonString属性 JSON(类型 `String`)。The properties json.
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:117–119

getCreatedAt

public Instant getCreatedAt()

获取已创建 At。

Returns the created at.

返回Returns Instant
返回Instant。Returns instant.
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:121–123

setCreatedAt

public void setCreatedAt(Instant createdAt)

设置已创建 At。

Sets the created at.

参数Parameters
名称Name类型Type说明Description
createdAtInstant已创建 At(类型 `Instant`)。The created at.
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:125–127

getUpdatedAt

public Instant getUpdatedAt()

获取已更新 At。

Returns the updated at.

返回Returns Instant
返回Instant。Returns instant.
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:129–131

setUpdatedAt

public void setUpdatedAt(Instant updatedAt)

设置已更新 At。

Sets the updated at.

参数Parameters
名称Name类型Type说明Description
updatedAtInstant已更新 At(类型 `Instant`)。The updated at.
源码Source io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:133–135
基于官方固定版本源码静态生成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.