AS AgentScopeAPI 手册 / API Reference

GitHubChannelRegistry

public final class GitHubChannelRegistry
源码Source io/agentscope/extensions/channel/github/GitHubChannelRegistry.java:24–48

GitHub 渠道注册表,把智能体接入外部消息渠道与企业平台。位于 io.agentscope.extensions.channel.github 包。核心成员包括 instance、register、unregister、get。

Process-wide lookup table from channelId to GitHubChannel instance. Used by GitHubWebhookController to dispatch URL-routed requests onto the correct channel.

方法摘要Method Summary

方法Method说明Description
public static GitHubChannelRegistry instance()
static
返回实例。
Returns the process-wide singleton instance.
public void register(GitHubChannel channel)
设置注册。
Performs the register operation.
public void unregister(String channelId)
设置注销。
Performs the unregister operation.
public GitHubChannel get(String channelId)
按条件读取数据。
Performs the get operation.

方法详情Method Detail

instance

public static GitHubChannelRegistry instance()
static

返回实例。

Returns the process-wide singleton instance.

返回Returns GitHubChannelRegistry
返回GitHubChannelRegistry。Returns github channel registry.
源码Source io/agentscope/extensions/channel/github/GitHubChannelRegistry.java:33–35

register

public void register(GitHubChannel channel)

设置注册。

Performs the register operation.

参数Parameters
名称Name类型Type说明Description
channelGitHubChannel渠道(类型 `GitHubChannel`)。The channel.
源码Source io/agentscope/extensions/channel/github/GitHubChannelRegistry.java:37–39

unregister

public void unregister(String channelId)

设置注销。

Performs the unregister operation.

参数Parameters
名称Name类型Type说明Description
channelIdString渠道标识(类型 `String`)。The channel id.
源码Source io/agentscope/extensions/channel/github/GitHubChannelRegistry.java:41–43

get

public GitHubChannel get(String channelId)

按条件读取数据。

Performs the get operation.

参数Parameters
名称Name类型Type说明Description
channelIdString渠道标识(类型 `String`)。The channel id.
返回Returns GitHubChannel
返回GitHubChannel。Returns github channel.
源码Source io/agentscope/extensions/channel/github/GitHubChannelRegistry.java:45–47
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.