AgentscopeConfig
@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class AgentscopeConfig
源码Source
io/agentscope/harness/coding/config/AgentscopeConfig.java:32–90用于${cwd}/.agentscope/agentscope.json的根文档。位于 io.agentscope.harness.coding.config 包。核心成员包括 getSchema、setSchema、getMain、setMain、getAgents、setAgents。
Root document for ${cwd}/.agentscope/agentscope.json.
Shape is intentionally similar to OpenClaw's top-level config: a main entry id, an
agents map keyed by agent id, and an optional channels map keyed by channel id.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getSchema() | 获取模式。 Returns the schema. |
public void setSchema(String schema) | 设置模式。 Sets the schema. |
public String getMain() | 获取主。 Returns the main. |
public void setMain(String main) | 设置主。 Sets the main. |
public Map<String, AgentConfigEntry> getAgents() | 获取智能体。 Returns the agents. |
public void setAgents(Map<String, AgentConfigEntry> agents) | 设置智能体。 Sets the agents. |
public Map<String, ChannelConfigEntry> getChannels() | 获取渠道。 Returns the channels. |
public void setChannels(Map<String, ChannelConfigEntry> channels) | 设置渠道。 Sets the channels. |
方法详情Method Detail
getSchema
public String getSchema()
获取模式。
Returns the schema.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/coding/config/AgentscopeConfig.java:59–61setSchema
public void setSchema(String schema)
设置模式。
Sets the schema.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
schema | String | 模式定义(类型 `String`)。The schema. |
源码Source
io/agentscope/harness/coding/config/AgentscopeConfig.java:63–65getMain
public String getMain()
获取主。
Returns the main.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/coding/config/AgentscopeConfig.java:67–69setMain
public void setMain(String main)
设置主。
Sets the main.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
main | String | 主(类型 `String`)。The main. |
源码Source
io/agentscope/harness/coding/config/AgentscopeConfig.java:71–73getAgents
public Map<String, AgentConfigEntry> getAgents()
获取智能体。
Returns the agents.
Map<String, AgentConfigEntry>返回映射。Returns map.
源码Source
io/agentscope/harness/coding/config/AgentscopeConfig.java:75–77setAgents
public void setAgents(Map<String, AgentConfigEntry> agents)
设置智能体。
Sets the agents.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agents | Map<String, AgentConfigEntry> | 智能体(类型 `Map`)。The agents. |
源码Source
io/agentscope/harness/coding/config/AgentscopeConfig.java:79–81getChannels
public Map<String, ChannelConfigEntry> getChannels()
获取渠道。
Returns the channels.
Map<String, ChannelConfigEntry>返回映射。Returns map.
源码Source
io/agentscope/harness/coding/config/AgentscopeConfig.java:83–85setChannels
public void setChannels(Map<String, ChannelConfigEntry> channels)
设置渠道。
Sets the channels.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channels | Map<String, ChannelConfigEntry> | 渠道(类型 `Map`)。The channels. |
源码Source
io/agentscope/harness/coding/config/AgentscopeConfig.java:87–89