AS AgentScopeAPI 手册 / API Reference
功能域Functional domain

渠道与平台集成Channels & integrations

企业微信、飞书、钉钉、GitHub/GitLab、CopilotKit、Nacos、RocketMQ、对象存储等外部平台适配。关注鉴权、幂等、回调和消息格式转换。Adapters for WeCom, Feishu, DingTalk, GitHub/GitLab, CopilotKit, Nacos, RocketMQ and object storage, with auth, idempotency and callbacks.

154类型总数types total
47Python
107Java
3学习锚点learning anchors

心智模型Mental model

平台集成层把智能体接入企业消息渠道和基础设施:钉钉、飞书、Discord、消息队列、对象存储与 API 网关。Platform integration connects agents to enterprise channels and infrastructure: DingTalk, Feishu, Discord, messaging queues, object storage and gateways.

先学什么What to learn first

  • 渠道回调必须验签、去重并快速 ACK,重活异步处理。Channel callbacks must verify signatures, deduplicate and ACK fast; do heavy work asynchronously.
  • 渠道消息与内部 Msg 之间需要可靠的映射和 id 关联。Maintain reliable mapping and id correlation between channel messages and internal Msg.
  • 限流与重试策略要服从各平台配额。Rate limits and retries must respect each platform's quotas.

生产常见坑Production pitfalls

  • 同步处理渠道回调导致平台超时重推,产生重复回复。Synchronous callback handling triggers platform retries and duplicate replies.
  • 未做消息幂等,机器人重复应答。No idempotency causes repeated bot responses.

进入对应闯关单元Practice this domain →

域内图谱Domain map

点击节点打开 API 页面;拖拽平移,滚轮缩放。Click a node to open its API page. Drag to pan, scroll to zoom.

Python Java

Python API 集Python API set 47

归入本功能域的全部 Python 公开类型,按所属包分组。Every public Python type classified into this domain, grouped by owning package.

agentscope.app.channel27
BindingStateclass绑定状态,把智能体接入外部消息渠道与企业平台。
BindingStepclass绑定步骤,把智能体接入外部消息渠道与企业平台。
ChannelBaseclass平台渠道的抽象基类。
ChannelBase.Configclass配置,保存相关配置项。
ChannelBase.Credentialsclass凭证,把智能体接入外部消息渠道与企业平台。
ChannelCapabilityclass渠道能力,把智能体接入外部消息渠道与企业平台。
ChannelClientsclass渠道客户端,封装与远端服务的连接和调用。
ChannelConfirmationResultEventclass渠道确认结果事件,描述执行过程中的事件。
ChannelErrorclass渠道错误,把智能体接入外部消息渠道与企业平台。
ChannelEventclass渠道事件,描述执行过程中的事件。
ChannelGatewayclass渠道网关,把智能体接入外部消息渠道与企业平台。
ChannelHeartbeatclass渠道心跳,把智能体接入外部消息渠道与企业平台。
ChannelLifecycleDispatcherclass渠道生命周期调度器,把智能体接入外部消息渠道与企业平台。
ChannelStatusclass渠道状态,把智能体接入外部消息渠道与企业平台。
ChannelTypeRegistryclass渠道类型注册表,把智能体接入外部消息渠道与企业平台。
ChannelTypeSchemaclass渠道类型模式,把智能体接入外部消息渠道与企业平台。
ChatKindclass聊天种类,把智能体接入外部消息渠道与企业平台。
CredentialBindingBaseclass凭证绑定基类,把智能体接入外部消息渠道与企业平台。
DingTalkChannelclassDingTalk 渠道,把智能体接入外部消息渠道与企业平台。
DingTalkChannel.Configclass配置,保存相关配置项。
DingTalkChannel.Credentialsclass凭证,把智能体接入外部消息渠道与企业平台。
DiscordChannelclassDiscord 渠道,把智能体接入外部消息渠道与企业平台。
DiscordChannel.Configclass配置,保存相关配置项。
DiscordChannel.Credentialsclass凭证,把智能体接入外部消息渠道与企业平台。
FeishuChannelclassFeishu 渠道,把智能体接入外部消息渠道与企业平台。
FeishuChannel.Configclass配置,保存相关配置项。
FeishuChannel.Credentialsclass凭证,把智能体接入外部消息渠道与企业平台。
agentscope.app.hub11
ClawSkillHubclassClaw 技能中心,把智能体接入外部消息渠道与企业平台。
GitHubMCPHubclassGitHub MCP 中心,把智能体接入外部消息渠道与企业平台。
HubBaseclass中心基类,把智能体接入外部消息渠道与企业平台。
HubErrorclass中心错误,把智能体接入外部消息渠道与企业平台。
MCPCardclassMCP 卡片,把智能体接入外部消息渠道与企业平台。
MCPHubBaseclassMCP 中心基类,把智能体接入外部消息渠道与企业平台。
MCPHubPageclassMCP 中心页码,把智能体接入外部消息渠道与企业平台。
SkillArchiveclass技能归档,把智能体接入外部消息渠道与企业平台。
SkillCardclass技能卡片,把智能体接入外部消息渠道与企业平台。
SkillHubBaseclass技能中心基类,把智能体接入外部消息渠道与企业平台。
SkillHubPageclass技能中心页码,把智能体接入外部消息渠道与企业平台。
agentscope.app.access5
DenyAllResourceAccessPolicyclass拒绝所有资源访问策略,把智能体接入外部消息渠道与企业平台。
ResourceAccessPolicyBaseclass资源访问策略基类,把智能体接入外部消息渠道与企业平台。
ResourceKindclass资源种类,把智能体接入外部消息渠道与企业平台。
ResourcePermissionclass资源权限,把智能体接入外部消息渠道与企业平台。
ResourceRefclass资源引用,把智能体接入外部消息渠道与企业平台。
agentscope.app.message_bus4
InMemoryMessageBusclassIn 记忆消息总线,把智能体接入外部消息渠道与企业平台。
MessageBusclass消息总线,把智能体接入外部消息渠道与企业平台。
MessageBusKeysclass消息总线密钥,把智能体接入外部消息渠道与企业平台。
RedisMessageBusclassRedis 消息总线,把智能体接入外部消息渠道与企业平台。

Java API 集Java API set 107

归入本功能域的全部 Java 公开类型,按包分组并标注构件。Every public Java type classified into this domain, grouped by package with its artifact.

io.agentscope.extensions.channel.weixin17
JsonNodeResponserecordagentscope-extensions-channel-weixin承载 JSON 节点响应数据的记录类型。
WeixinChannelclassagentscope-extensions-channel-weixinWeixin 渠道,把智能体接入外部消息渠道与企业平台。
WeixinChannelPropertiesrecordagentscope-extensions-channel-weixin承载 Weixin 渠道属性数据的记录类型。
WeixinCredentialProviderinterfaceagentscope-extensions-channel-weixin定义 Weixin 凭证提供者契约的接口。
WeixinCredentialRejectedExceptionclassagentscope-extensions-channel-weixinWeixin 凭证已拒绝异常,表示执行过程中的错误。
WeixinCredentialsrecordagentscope-extensions-channel-weixin承载 Weixin 凭证数据的记录类型。
WeixinInboundMapperclassagentscope-extensions-channel-weixinWeixin 入站 Mapper,把智能体接入外部消息渠道与企业平台。
WeixinInboxClaimrecordagentscope-extensions-channel-weixin承载 Weixin 收件箱 Claim数据的记录类型。
WeixinInboxMessagerecordagentscope-extensions-channel-weixin承载 Weixin 收件箱消息数据的记录类型。
WeixinLeaserecordagentscope-extensions-channel-weixin承载 Weixin Lease数据的记录类型。
WeixinLoginChallengerecordagentscope-extensions-channel-weixin承载 Weixin Login Challenge数据的记录类型。
WeixinLoginClientclassagentscope-extensions-channel-weixinWeixin Login 客户端,封装与远端服务的连接和调用。
WeixinLoginSessionrecordagentscope-extensions-channel-weixin承载 Weixin Login 会话数据的记录类型。
WeixinLoginSteprecordagentscope-extensions-channel-weixin承载 Weixin Login 步骤数据的记录类型。
WeixinOutboundClientclassagentscope-extensions-channel-weixinWeixin 出站客户端,封装与远端服务的连接和调用。
WeixinRuntimeListenerinterfaceagentscope-extensions-channel-weixin定义 Weixin 运行时监听器契约的接口。
WeixinStateStoreinterfaceagentscope-extensions-channel-weixin定义 Weixin 状态存储契约的接口。
io.agentscope.extensions.channel.dingtalk9
DingTalkAccessTokenProviderclassagentscope-extensions-channel-dingtalkDingTalk 访问令牌提供者,把智能体接入外部消息渠道与企业平台。
DingTalkCallbackControllerclassagentscope-extensions-channel-dingtalkDingTalk 回调控制器,把智能体接入外部消息渠道与企业平台。
DingTalkCallbackCryptoclassagentscope-extensions-channel-dingtalkDingTalk 回调 Crypto,把智能体接入外部消息渠道与企业平台。
DingTalkChannelclassagentscope-extensions-channel-dingtalkDingTalk 渠道,把智能体接入外部消息渠道与企业平台。
DingTalkChannelPropertiesrecordagentscope-extensions-channel-dingtalk承载 DingTalk 渠道属性数据的记录类型。
DingTalkChannelRegistryclassagentscope-extensions-channel-dingtalkDingTalk 渠道注册表,把智能体接入外部消息渠道与企业平台。
DingTalkInboundMapperclassagentscope-extensions-channel-dingtalkDingTalk 入站 Mapper,把智能体接入外部消息渠道与企业平台。
DingTalkOutboundClientclassagentscope-extensions-channel-dingtalkDingTalk 出站客户端,封装与远端服务的连接和调用。
DingTalkStreamClientclassagentscope-extensions-channel-dingtalkDingTalk 流客户端,封装与远端服务的连接和调用。
io.agentscope.examples.copilotkit.a2ui8
A2uiComposerclassagentscope-copilotkitA 2 ui Composer,把智能体接入外部消息渠道与企业平台。
A2uiModelClientinterfaceagentscope-copilotkit定义 A 2 ui 模型客户端契约的接口。
A2uiOperationsclassagentscope-copilotkitA 2 ui Operations,把智能体接入外部消息渠道与企业平台。
A2uiSchemaSourceinterfaceagentscope-copilotkit定义 A 2 ui 模式来源契约的接口。
A2uiSurfacerecordagentscope-copilotkit承载 A 2 ui Surface数据的记录类型。
BundledA2uiSchemaSourceclassagentscope-copilotkitBundled A 2 ui 模式来源,把智能体接入外部消息渠道与企业平台。
DashScopeA2uiModelClientclassagentscope-copilotkitDashScope A 2 ui 模型客户端,封装与远端服务的连接和调用。
WorkbenchCatalogclassagentscope-copilotkitWorkbench 目录,把智能体接入外部消息渠道与企业平台。
io.agentscope.extensions.channel.feishu8
FeishuAccessTokenProviderclassagentscope-extensions-channel-feishuFeishu 访问令牌提供者,把智能体接入外部消息渠道与企业平台。
FeishuCallbackControllerclassagentscope-extensions-channel-feishuFeishu 回调控制器,把智能体接入外部消息渠道与企业平台。
FeishuChannelclassagentscope-extensions-channel-feishuFeishu 渠道,把智能体接入外部消息渠道与企业平台。
FeishuChannelPropertiesrecordagentscope-extensions-channel-feishu承载 Feishu 渠道属性数据的记录类型。
FeishuChannelRegistryclassagentscope-extensions-channel-feishuFeishu 渠道注册表,把智能体接入外部消息渠道与企业平台。
FeishuCryptoclassagentscope-extensions-channel-feishuFeishu Crypto,把智能体接入外部消息渠道与企业平台。
FeishuInboundMapperclassagentscope-extensions-channel-feishuFeishu 入站 Mapper,把智能体接入外部消息渠道与企业平台。
FeishuOutboundClientclassagentscope-extensions-channel-feishuFeishu 出站客户端,封装与远端服务的连接和调用。
io.agentscope.extensions.channel.github8
GitHubBotIdentityResolverclassagentscope-extensions-channel-githubGitHub Bot 身份解析器,把智能体接入外部消息渠道与企业平台。
GitHubChannelclassagentscope-extensions-channel-githubGitHub 渠道,把智能体接入外部消息渠道与企业平台。
GitHubChannelPropertiesrecordagentscope-extensions-channel-github承载 GitHub 渠道属性数据的记录类型。
GitHubChannelRegistryclassagentscope-extensions-channel-githubGitHub 渠道注册表,把智能体接入外部消息渠道与企业平台。
GitHubInboundMapperclassagentscope-extensions-channel-githubGitHub 入站 Mapper,把智能体接入外部消息渠道与企业平台。
GitHubOutboundClientclassagentscope-extensions-channel-githubGitHub 出站客户端,封装与远端服务的连接和调用。
GitHubSignatureVerifierclassagentscope-extensions-channel-githubGitHub Signature 校验器,把智能体接入外部消息渠道与企业平台。
GitHubWebhookControllerclassagentscope-extensions-channel-githubGitHub Webhook 控制器,把智能体接入外部消息渠道与企业平台。
io.agentscope.extensions.channel.wecom8
WeComAccessTokenProviderclassagentscope-extensions-channel-wecomWeCom 访问令牌提供者,把智能体接入外部消息渠道与企业平台。
WeComCallbackControllerclassagentscope-extensions-channel-wecomWeCom 回调控制器,把智能体接入外部消息渠道与企业平台。
WeComChannelclassagentscope-extensions-channel-wecomWeCom 渠道,把智能体接入外部消息渠道与企业平台。
WeComChannelPropertiesrecordagentscope-extensions-channel-wecom承载 WeCom 渠道属性数据的记录类型。
WeComChannelRegistryclassagentscope-extensions-channel-wecomWeCom 渠道注册表,把智能体接入外部消息渠道与企业平台。
WeComCryptoclassagentscope-extensions-channel-wecomWeCom Crypto,把智能体接入外部消息渠道与企业平台。
WeComInboundMapperclassagentscope-extensions-channel-wecomWeCom 入站 Mapper,把智能体接入外部消息渠道与企业平台。
WeComOutboundClientclassagentscope-extensions-channel-wecomWeCom 出站客户端,封装与远端服务的连接和调用。
io.agentscope.extensions.channel.common7
AccessTokenStoreinterfaceagentscope-extensions-channel-common定义访问令牌存储契约的接口。
BotLoopGuardclassagentscope-extensions-channel-commonBot 循环守卫,把智能体接入外部消息渠道与企业平台。
CachedAccessTokenrecordagentscope-extensions-channel-common承载已缓存访问令牌数据的记录类型。
ChannelMediaMetadataclassagentscope-extensions-channel-common渠道 Media 元数据,把智能体接入外部消息渠道与企业平台。
IdempotencyStoreclassagentscope-extensions-channel-commonIdempotency 存储,负责持久化与读取数据。
InboundEventDeduplicatorinterfaceagentscope-extensions-channel-common定义入站事件 Deduplicator契约的接口。
InMemoryAccessTokenStoreclassagentscope-extensions-channel-commonIn 记忆访问令牌存储,负责持久化与读取数据。
io.agentscope.extensions.channel.gitlab7
GitLabBotIdentityResolverclassagentscope-extensions-channel-gitlabGitLab Bot 身份解析器,把智能体接入外部消息渠道与企业平台。
GitLabChannelclassagentscope-extensions-channel-gitlabGitLab 渠道,把智能体接入外部消息渠道与企业平台。
GitLabChannelPropertiesrecordagentscope-extensions-channel-gitlab承载 GitLab 渠道属性数据的记录类型。
GitLabChannelRegistryclassagentscope-extensions-channel-gitlabGitLab 渠道注册表,把智能体接入外部消息渠道与企业平台。
GitLabInboundMapperclassagentscope-extensions-channel-gitlabGitLab 入站 Mapper,把智能体接入外部消息渠道与企业平台。
GitLabOutboundClientclassagentscope-extensions-channel-gitlabGitLab 出站客户端,封装与远端服务的连接和调用。
GitLabWebhookControllerclassagentscope-extensions-channel-gitlabGitLab Webhook 控制器,把智能体接入外部消息渠道与企业平台。
io.agentscope.extensions.cos7
Builderclassagentscope-extensions-cos构建器,用于构建并配置目标实例。
Builderclassagentscope-extensions-cos构建器,用于构建并配置目标实例。
CosAgentStateStoreclassagentscope-extensions-cosCOS 智能体状态存储,负责持久化与读取数据。
CosBaseStoreclassagentscope-extensions-cosCOS 基类存储,负责持久化与读取数据。
CosDistributedStoreclassagentscope-extensions-cosCOS 分布式存储,负责持久化与读取数据。
CosRemoteSnapshotClientclassagentscope-extensions-cosCOS 远程快照客户端,封装与远端服务的连接和调用。
CosSnapshotSpecclassagentscope-extensions-cosCOS 快照规格,把智能体接入外部消息渠道与企业平台。
io.agentscope.extensions.oss7
Builderclassagentscope-extensions-oss构建器,用于构建并配置目标实例。
Builderclassagentscope-extensions-oss构建器,用于构建并配置目标实例。
OssAgentStateStoreclassagentscope-extensions-ossOSS 智能体状态存储,负责持久化与读取数据。
OssBaseStoreclassagentscope-extensions-ossOSS 基类存储,负责持久化与读取数据。
OssDistributedStoreclassagentscope-extensions-ossOSS 分布式存储,负责持久化与读取数据。
OssRemoteSnapshotClientclassagentscope-extensions-ossOSS 远程快照客户端,封装与远端服务的连接和调用。
OssSnapshotSpecclassagentscope-extensions-ossOSS 快照规格,把智能体接入外部消息渠道与企业平台。
io.agentscope.examples.copilotkit.service6
AgentEventAguiReplayerclassagentscope-copilotkit智能体事件 AGUI Replayer,把智能体接入外部消息渠道与企业平台。
CopilotKitRuntimeServiceclassagentscope-copilotkitCopilotKit 运行时服务,把智能体接入外部消息渠道与企业平台。
DemoThreadStoreclassagentscope-copilotkitDemo 会话线程存储,负责持久化与读取数据。
InMemoryAgentEventStoreclassagentscope-copilotkitIn 记忆智能体事件存储,负责持久化与读取数据。
PersistingAgentEventEnricherclassagentscope-copilotkitPersisting 智能体事件 Enricher,把智能体接入外部消息渠道与企业平台。
StoredAgentEventrecordagentscope-copilotkit承载已存储智能体事件数据的记录类型。
io.agentscope.examples.copilotkit.workbench6
RefundOrderToolclassagentscope-copilotkitRefund 顺序工具,封装可被智能体调用的能力。
WorkbenchAguiEventConverterclassagentscope-copilotkitWorkbench AGUI 事件转换器,把智能体接入外部消息渠道与企业平台。
WorkbenchEventMiddlewareclassagentscope-copilotkitWorkbench 事件中间件,在智能体执行流程中提供横切扩展。
WorkbenchStateclassagentscope-copilotkitWorkbench 状态,把智能体接入外部消息渠道与企业平台。
WorkbenchStateRegistryclassagentscope-copilotkitWorkbench 状态注册表,把智能体接入外部消息渠道与企业平台。
WorkbenchToolsclassagentscope-copilotkitWorkbench 工具,封装可被智能体调用的能力。
io.agentscope.extensions.higress5
HigressMcpClientBuilderclassagentscope-extensions-higressHigress MCP 客户端构建器,用于构建并配置目标实例。
HigressMcpClientWrapperclassagentscope-extensions-higressHigress MCP 客户端包装器,把智能体接入外部消息渠道与企业平台。
HigressToolkitclassagentscope-extensions-higressHigress 工具包,把智能体接入外部消息渠道与企业平台。
HigressToolSearchResultclassagentscope-extensions-higressHigress 工具搜索结果,把智能体接入外部消息渠道与企业平台。
ToolInforecordagentscope-extensions-higress承载工具信息数据的记录类型。
io.agentscope.examples.copilotkit.config2
AgentConfigurationclassagentscope-copilotkit智能体配置,保存相关配置项。
CopilotKitRouteConfigurationclassagentscope-copilotkitCopilotKit 路由配置,保存相关配置项。
io.agentscope.core.nacos.prompt1
NacosPromptListenerclassagentscope-extensions-nacos-promptNacos 提示词监听器,把智能体接入外部消息渠道与企业平台。
io.agentscope.examples.copilotkit1
CopilotKitExampleApplicationclassagentscope-copilotkitCopilotKit Example 应用,把智能体接入外部消息渠道与企业平台。

Python ↔ Java 对照Python ↔ Java

Python

Java

ChannelWorkBridgeChannelConfigEntryNacosAgentRegistry

两套实现共享同一概念模型,但在并发(async/await 与 Reactor)、打包(wheel 模块与 Maven 构件)和生命周期 API 上存在差异。需要精确签名时请使用 API 全景。The two implementations follow the same conceptual model but differ in concurrency (async/await vs Reactor), packaging (wheel modules vs Maven artifacts) and lifecycle APIs. Use the full API map to locate exact signatures.

打开 API 全景Open full API map →

基于官方固定版本源码静态生成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.