ChannelConfigEntry
@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class ChannelConfigEntry
io/agentscope/builder/runtime/config/ChannelConfigEntry.java:54–195渠道配置条目,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.runtime.config 包。核心成员包括 getType、setType、getOwnerId、setOwnerId、getProperties、setProperties。
Per-channel section in agentscope.json under channels.<channelId>.
Defines routing configuration for a channel adapter. The built-in chatui channel is
automatically created from this entry if no programmatic channel registration exists for it.
For other channel types, this entry provides the ChannelConfig routing rules that are
applied at bootstrap time.
Example
`"channels": {
"chatui": {
"defaultAgentId": "main",
"dmScope": "PER_PEER"
},
"slack": {
"defaultAgentId": "support",
"dmScope": "PER_PEER"
}
}
`
方法摘要Method Summary
方法详情Method Detail
getType
public String getType()
获取类型。
Returns the type.
Stringio/agentscope/builder/runtime/config/ChannelConfigEntry.java:112–114setType
public void setType(String type)
设置类型。
Sets the type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
type | String | 类型(类型 `String`)。The type. |
io/agentscope/builder/runtime/config/ChannelConfigEntry.java:116–118getOwnerId
public String getOwnerId()
获取所有者标识。
Returns the owner id.
Stringio/agentscope/builder/runtime/config/ChannelConfigEntry.java:120–122setOwnerId
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
io/agentscope/builder/runtime/config/ChannelConfigEntry.java:124–126getProperties
public Map<String, Object> getProperties()
获取属性。
Returns the properties.
Map<String, Object>io/agentscope/builder/runtime/config/ChannelConfigEntry.java:128–130setProperties
public void setProperties(Map<String, Object> properties)
设置属性。
Sets the properties.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
properties | Map<String, Object> | 属性(类型 `Map`)。The properties. |
io/agentscope/builder/runtime/config/ChannelConfigEntry.java:132–134getDefaultAgentId
public String getDefaultAgentId()
获取默认智能体标识。
Returns the default agent id.
Stringio/agentscope/builder/runtime/config/ChannelConfigEntry.java:136–138setDefaultAgentId
public void setDefaultAgentId(String defaultAgentId)
设置默认智能体标识。
Sets the default agent id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
defaultAgentId | String | 默认智能体标识(类型 `String`)。The default agent id. |
io/agentscope/builder/runtime/config/ChannelConfigEntry.java:140–142getDmScope
public String getDmScope()
获取Dm 范围。
Returns the dm scope.
Stringio/agentscope/builder/runtime/config/ChannelConfigEntry.java:144–146setDmScope
public void setDmScope(String dmScope)
设置Dm 范围。
Sets the dm scope.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
dmScope | String | dm 范围(类型 `String`)。The dm scope. |
io/agentscope/builder/runtime/config/ChannelConfigEntry.java:148–150getDisabled
public Boolean getDisabled()
获取已禁用。
Returns the disabled.
Booleanio/agentscope/builder/runtime/config/ChannelConfigEntry.java:152–154setDisabled
public void setDisabled(Boolean disabled)
设置已禁用。
Sets the disabled.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
disabled | Boolean | 已禁用(类型 `Boolean`)。The disabled. |
io/agentscope/builder/runtime/config/ChannelConfigEntry.java:156–158getBindings
public List<BindingConfigEntry> getBindings()
获取 getBindings。
Returns the bindings.
List<BindingConfigEntry>io/agentscope/builder/runtime/config/ChannelConfigEntry.java:160–162setBindings
public void setBindings(List<BindingConfigEntry> bindings)
设置 setBindings。
Sets the bindings.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
bindings | List<BindingConfigEntry> | bindings(类型 `List`)。The bindings. |
io/agentscope/builder/runtime/config/ChannelConfigEntry.java:164–166toChannelConfig
public ChannelConfig toChannelConfig(String channelId)
设置到渠道配置。
Converts this entry into a ChannelConfig for the given channel id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channelId | String | 渠道标识(类型 `String`)。The channel id. |
ChannelConfigio/agentscope/builder/runtime/config/ChannelConfigEntry.java:169–194