FeishuChannelRegistry
public final class FeishuChannelRegistry
源码Source
io/agentscope/extensions/channel/feishu/FeishuChannelRegistry.java:26–50Feishu 渠道注册表,把智能体接入外部消息渠道与企业平台。位于 io.agentscope.extensions.channel.feishu 包。核心成员包括 instance、register、unregister、get。
Process-wide lookup table from channelId to FeishuChannel. Used by
FeishuCallbackController to dispatch URL-routed requests onto the correct channel,
mirroring the pattern in
WeComChannelRegistry.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static FeishuChannelRegistry instance()static | 返回实例。 Returns the process-wide singleton instance. |
public void register(FeishuChannel channel) | 设置注册。 Performs the register operation. |
public void unregister(String channelId) | 设置注销。 Performs the unregister operation. |
public FeishuChannel get(String channelId) | 按条件读取数据。 Performs the get operation. |
方法详情Method Detail
instance
public static FeishuChannelRegistry instance()
static
返回实例。
Returns the process-wide singleton instance.
FeishuChannelRegistry返回FeishuChannelRegistry。Returns feishu channel registry.
源码Source
io/agentscope/extensions/channel/feishu/FeishuChannelRegistry.java:35–37register
public void register(FeishuChannel channel)
设置注册。
Performs the register operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channel | FeishuChannel | 渠道(类型 `FeishuChannel`)。The channel. |
源码Source
io/agentscope/extensions/channel/feishu/FeishuChannelRegistry.java:39–41unregister
public void unregister(String channelId)
设置注销。
Performs the unregister operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channelId | String | 渠道标识(类型 `String`)。The channel id. |
源码Source
io/agentscope/extensions/channel/feishu/FeishuChannelRegistry.java:43–45get
public FeishuChannel get(String channelId)
按条件读取数据。
Performs the get operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channelId | String | 渠道标识(类型 `String`)。The channel id. |
FeishuChannel返回FeishuChannel。Returns feishu channel.
源码Source
io/agentscope/extensions/channel/feishu/FeishuChannelRegistry.java:47–49