WeixinInboundMapper
public final class WeixinInboundMapper
源码Source
io/agentscope/extensions/channel/weixin/WeixinInboundMapper.java:28–81Weixin 入站 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 |
|---|---|---|
channelId | String | 渠道标识(类型 `String`)。The channel id. |
accountId | String | account 标识(类型 `String`)。The account id. |
selfId | String | 自身标识(类型 `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 |
|---|---|---|
m | JsonNode | m(类型 `JsonNode`)。The m. |
Optional<InboundMessage>返回可选。Returns optional.
源码Source
io/agentscope/extensions/channel/weixin/WeixinInboundMapper.java:39–66messageId
public static Optional<String> messageId(JsonNode m)
static
设置消息标识。
Performs the message id operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
m | JsonNode | m(类型 `JsonNode`)。The m. |
Optional<String>返回可选。Returns optional.
源码Source
io/agentscope/extensions/channel/weixin/WeixinInboundMapper.java:68–71