AS AgentScopeAPI 手册 / API Reference

MarketplaceConfigEntry

@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class MarketplaceConfigEntry
源码Source io/agentscope/builder/runtime/config/MarketplaceConfigEntry.java:33–60

市场配置条目,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.runtime.config 包。核心成员包括 getType、setType、getProperties、setProperty。

Marketplace configuration carrier — a type discriminator ("git" / "nacos") plus an open bag of type-specific properties. Unlike claw's variant, builder does not persist this in agentscope.json; instead each user's marketplaces are stored as JPA rows (see UserMarketplaceEntity) and rehydrated into this DTO at the persistence boundary.

方法摘要Method Summary

方法Method说明Description
public String getType()
获取类型。
Returns the type.
public void setType(String type)
设置类型。
Sets the type.
public Map<String, Object> getProperties()
获取属性。
Returns the properties.
public void setProperty(String key, Object value)
设置属性。
Sets the property.

方法详情Method Detail

getType

public String getType()

获取类型。

Returns the type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/runtime/config/MarketplaceConfigEntry.java:42–44

setType

public void setType(String type)

设置类型。

Sets the type.

参数Parameters
名称Name类型Type说明Description
typeString类型(类型 `String`)。The type.
源码Source io/agentscope/builder/runtime/config/MarketplaceConfigEntry.java:46–48

getProperties

public Map<String, Object> getProperties()

获取属性。

Returns the properties.

返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/builder/runtime/config/MarketplaceConfigEntry.java:50–53

setProperty

public void setProperty(String key, Object value)

设置属性。

Sets the property.

参数Parameters
名称Name类型Type说明Description
keyString键(类型 `String`)。The key.
valueObject值(类型 `Object`)。The value.
源码Source io/agentscope/builder/runtime/config/MarketplaceConfigEntry.java:55–59
基于官方固定版本源码静态生成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.