BindingConfigEntry
@JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class BindingConfigEntry
io/agentscope/builder/runtime/config/BindingConfigEntry.java:58–227绑定配置条目,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.runtime.config 包。核心成员包括 getAgentId、setAgentId、getPeer、setPeer、getParentPeer、setParentPeer。
JSON-serializable counterpart of ChannelBinding.
Field order corresponds to the OpenClaw routing priority tiers evaluated by io.agentscope.harness.agent.gateway.channel.ChannelRouter:
-
#peer -
#parentPeer -
#guild+#roles -
#guildalone -
#team -
#account -
#channel
The most specific non-null field determines the tier at which this binding is evaluated.
#agentId is required; #sessionScope optionally overrides the channel-level DM
scope for sessions created by this binding.
Example JSON
`{
"agentId": "support",
"guild": "ws-alpha",
"roles": ["staff"],
"sessionScope": "PER_PEER"
}
`
方法摘要Method Summary
方法详情Method Detail
getAgentId
public String getAgentId()
获取智能体标识。
Returns the agent id.
Stringio/agentscope/builder/runtime/config/BindingConfigEntry.java:98–100setAgentId
public void setAgentId(String agentId)
设置智能体标识。
Sets the agent id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentId | String | 智能体标识(类型 `String`)。The agent id. |
io/agentscope/builder/runtime/config/BindingConfigEntry.java:102–104getPeer
public String getPeer()
获取对端。
Returns the peer.
Stringio/agentscope/builder/runtime/config/BindingConfigEntry.java:106–108setPeer
public void setPeer(String peer)
设置对端。
Sets the peer.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
peer | String | 对端(类型 `String`)。The peer. |
io/agentscope/builder/runtime/config/BindingConfigEntry.java:110–112getParentPeer
public String getParentPeer()
获取父级对端。
Returns the parent peer.
Stringio/agentscope/builder/runtime/config/BindingConfigEntry.java:114–116setParentPeer
public void setParentPeer(String parentPeer)
设置父级对端。
Sets the parent peer.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
parentPeer | String | 父级对端(类型 `String`)。The parent peer. |
io/agentscope/builder/runtime/config/BindingConfigEntry.java:118–120getGuild
public String getGuild()
获取 getGuild。
Returns the guild.
Stringio/agentscope/builder/runtime/config/BindingConfigEntry.java:122–124setGuild
public void setGuild(String guild)
设置 setGuild。
Sets the guild.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
guild | String | guild(类型 `String`)。The guild. |
io/agentscope/builder/runtime/config/BindingConfigEntry.java:126–128getRoles
public List<String> getRoles()
获取 getRoles。
Returns the roles.
List<String>io/agentscope/builder/runtime/config/BindingConfigEntry.java:130–132setRoles
public void setRoles(List<String> roles)
设置 setRoles。
Sets the roles.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
roles | List<String> | roles(类型 `List`)。The roles. |
io/agentscope/builder/runtime/config/BindingConfigEntry.java:134–136getTeam
public String getTeam()
获取团队。
Returns the team.
Stringio/agentscope/builder/runtime/config/BindingConfigEntry.java:138–140setTeam
public void setTeam(String team)
设置团队。
Sets the team.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
team | String | 团队(类型 `String`)。The team. |
io/agentscope/builder/runtime/config/BindingConfigEntry.java:142–144getAccount
public String getAccount()
获取 getAccount。
Returns the account.
Stringio/agentscope/builder/runtime/config/BindingConfigEntry.java:146–148setAccount
public void setAccount(String account)
设置 setAccount。
Sets the account.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
account | String | account(类型 `String`)。The account. |
io/agentscope/builder/runtime/config/BindingConfigEntry.java:150–152getChannel
public String getChannel()
获取渠道。
Returns the channel.
Stringio/agentscope/builder/runtime/config/BindingConfigEntry.java:154–156setChannel
public void setChannel(String channel)
设置渠道。
Sets the channel.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channel | String | 渠道(类型 `String`)。The channel. |
io/agentscope/builder/runtime/config/BindingConfigEntry.java:158–160getSessionScope
public String getSessionScope()
获取会话范围。
Returns the session scope.
Stringio/agentscope/builder/runtime/config/BindingConfigEntry.java:162–164setSessionScope
public void setSessionScope(String sessionScope)
设置会话范围。
Sets the session scope.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionScope | String | 会话范围(类型 `String`)。The session scope. |
io/agentscope/builder/runtime/config/BindingConfigEntry.java:166–168toBinding
public ChannelBinding toBinding()
转换此条目到运行时ChannelBinding。
Converts this entry to a runtime ChannelBinding.
ChannelBindingIllegalArgumentException可能抛出 `IllegalArgumentException`。if `agentId` is missing or blank
io/agentscope/builder/runtime/config/BindingConfigEntry.java:179–203fromBinding
public static BindingConfigEntry fromBinding(ChannelBinding b)
设置来自绑定。
Inverse helper: build a BindingConfigEntry from a runtime ChannelBinding.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
b | ChannelBinding | b(类型 `ChannelBinding`)。The b. |
BindingConfigEntryio/agentscope/builder/runtime/config/BindingConfigEntry.java:206–222