AS AgentScopeAPI 手册 / API Reference

WeixinInboundMapper

public final class WeixinInboundMapper
源码Source io/agentscope/extensions/channel/weixin/WeixinInboundMapper.java:28–81

Weixin 入站 Mapper,把智能体接入外部消息渠道与企业平台。位于 io.agentscope.extensions.channel.weixin 包。核心成员包括 map、messageId、WeixinInboundMapper。

Maps iLink user text messages. The current official plugin advertises direct chat only.

构造器摘要Constructor Summary

构造器Constructor说明Description
public WeixinInboundMapper(String channelId, String accountId, String selfId)
初始化 `WeixinInboundMapper` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Optional<InboundMessage> map(JsonNode m)
设置映射。
Performs the map operation.
public static Optional<String> messageId(JsonNode m)
static
设置消息标识。
Performs the message id operation.

构造器详情Constructor Detail

WeixinInboundMapper

public WeixinInboundMapper(String channelId, String accountId, String selfId)

初始化 WeixinInboundMapper 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
channelIdString渠道标识(类型 `String`)。The channel id.
accountIdStringaccount 标识(类型 `String`)。The account id.
selfIdString自身标识(类型 `String`)。The self id.
源码Source io/agentscope/extensions/channel/weixin/WeixinInboundMapper.java:33–37

方法详情Method Detail

map

public Optional<InboundMessage> map(JsonNode m)

设置映射。

Performs the map operation.

参数Parameters
名称Name类型Type说明Description
mJsonNodem(类型 `JsonNode`)。The m.
返回Returns Optional<InboundMessage>
返回可选。Returns optional.
源码Source io/agentscope/extensions/channel/weixin/WeixinInboundMapper.java:39–66

messageId

public static Optional<String> messageId(JsonNode m)
static

设置消息标识。

Performs the message id operation.

参数Parameters
名称Name类型Type说明Description
mJsonNodem(类型 `JsonNode`)。The m.
返回Returns Optional<String>
返回可选。Returns optional.
源码Source io/agentscope/extensions/channel/weixin/WeixinInboundMapper.java:68–71
基于官方固定版本源码静态生成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.