AgentscopeConfig
@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class AgentscopeConfig
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:31–105用于${cwd}/.agentscope/agentscope.json的根文档。位于 io.agentscope.builder.runtime.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 Detail
getSchema
public String getSchema()
获取模式。
Returns the schema.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:66–68setSchema
public void setSchema(String schema)
设置模式。
Sets the schema.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
schema | String | 模式定义(类型 `String`)。The schema. |
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:70–72getMain
public String getMain()
获取主。
Returns the main.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:74–76setMain
public void setMain(String main)
设置主。
Sets the main.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
main | String | 主(类型 `String`)。The main. |
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:78–80getAgents
public Map<String, AgentConfigEntry> getAgents()
获取智能体。
Returns the agents.
Map<String, AgentConfigEntry>返回映射。Returns map.
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:82–84setAgents
public void setAgents(Map<String, AgentConfigEntry> agents)
设置智能体。
Sets the agents.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agents | Map<String, AgentConfigEntry> | 智能体(类型 `Map`)。The agents. |
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:86–88getChannels
public Map<String, ChannelConfigEntry> getChannels()
获取渠道。
Returns the channels.
Map<String, ChannelConfigEntry>返回映射。Returns map.
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:90–92setChannels
public void setChannels(Map<String, ChannelConfigEntry> channels)
设置渠道。
Sets the channels.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channels | Map<String, ChannelConfigEntry> | 渠道(类型 `Map`)。The channels. |
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:94–96getSession
public SessionLifecycleConfig getSession()
获取会话。
Returns the session.
SessionLifecycleConfig返回SessionLifecycleConfig。Returns session lifecycle config.
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:98–100setSession
public void setSession(SessionLifecycleConfig session)
设置会话。
Sets the session.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
session | SessionLifecycleConfig | 会话(类型 `SessionLifecycleConfig`)。The session. |
源码Source
io/agentscope/builder/runtime/config/AgentscopeConfig.java:102–104