WeixinChannelProperties
public record WeixinChannelProperties( String accountId, String baseUrl, String ilinkUserId, String channelVersion, String botAgent, int longPollTimeoutMs, int requestTimeoutMs, int maxBackoffMs, int leaseMs, int dispatchTimeoutMs)
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83承载 Weixin 渠道属性数据的记录类型。位于 io.agentscope.extensions.channel.weixin 包。核心成员包括 accountId、baseUrl、ilinkUserId、channelVersion、botAgent、longPollTimeoutMs。
Provider configuration for one Personal Weixin Channel instance.
requestTimeoutMs bounds the control calls, while longPollTimeoutMs bounds the
getupdates long poll — the provider holds that request open, so the client derives a
longer deadline for it (see WeixinOutboundClient.timeoutFor).
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
accountId | String | 执行 `accountId` 方法。 Performs the account id operation. |
baseUrl | String | 执行基类 URL相关操作。 Performs the base url operation. |
ilinkUserId | String | 执行 `ilinkUserId` 方法。 Performs the ilink user id operation. |
channelVersion | String | 执行渠道版本相关操作。 Performs the channel version operation. |
botAgent | String | 执行 `botAgent` 方法。 Performs the bot agent operation. |
longPollTimeoutMs | int | 执行 `longPollTimeoutMs` 方法。 Performs the long poll timeout ms operation. |
requestTimeoutMs | int | 执行请求超时 Ms相关操作。 Performs the request timeout ms operation. |
maxBackoffMs | int | 执行最大退避 Ms相关操作。 Performs the max backoff ms operation. |
leaseMs | int | 执行 `leaseMs` 方法。 Performs the lease ms operation. |
dispatchTimeoutMs | int | 执行 `dispatchTimeoutMs` 方法。 Performs the dispatch timeout ms operation. |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
DEFAULT_BASE_URLstaticfinal | String | 默认基类 URL字段。 The DEFAULT BASE URL field. |
构造器摘要Constructor Summary
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static WeixinChannelProperties from(String channelId, Map<String, Object> raw)static | 创建并返回实例。 Creates and returns an instance. |
记录组件详情Record Component Detail
accountId
String accountId执行 accountId 方法。
Performs the account id operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83baseUrl
String baseUrl执行基类 URL相关操作。
Performs the base url operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83ilinkUserId
String ilinkUserId执行 ilinkUserId 方法。
Performs the ilink user id operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83channelVersion
String channelVersion执行渠道版本相关操作。
Performs the channel version operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83botAgent
String botAgent执行 botAgent 方法。
Performs the bot agent operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83longPollTimeoutMs
int longPollTimeoutMs执行 longPollTimeoutMs 方法。
Performs the long poll timeout ms operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83requestTimeoutMs
int requestTimeoutMs执行请求超时 Ms相关操作。
Performs the request timeout ms operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83maxBackoffMs
int maxBackoffMs执行最大退避 Ms相关操作。
Performs the max backoff ms operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83leaseMs
int leaseMs执行 leaseMs 方法。
Performs the lease ms operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83dispatchTimeoutMs
int dispatchTimeoutMs执行 dispatchTimeoutMs 方法。
Performs the dispatch timeout ms operation.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:28–83字段详情Field Detail
DEFAULT_BASE_URL
public static final String DEFAULT_BASE_URL
默认基类 URL字段。声明为 public static final String DEFAULT_BASE_URL。
The DEFAULT BASE URL field.
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:39构造器详情Constructor Detail
WeixinChannelProperties
public WeixinChannelProperties(String accountId, String baseUrl, String ilinkUserId, String channelVersion, String botAgent, int longPollTimeoutMs, int requestTimeoutMs, int maxBackoffMs, int leaseMs, int dispatchTimeoutMs)
初始化 WeixinChannelProperties 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
accountId | String | account 标识(类型 `String`)。The account id. |
baseUrl | String | 基类 URL(类型 `String`)。The base url. |
ilinkUserId | String | ilink 用户标识(类型 `String`)。The ilink user id. |
channelVersion | String | 渠道版本(类型 `String`)。The channel version. |
botAgent | String | bot 智能体(类型 `String`)。The bot agent. |
longPollTimeoutMs | int | long Poll 超时 Ms(类型 `int`)。The long poll timeout ms. |
requestTimeoutMs | int | 请求超时 Ms(类型 `int`)。The request timeout ms. |
maxBackoffMs | int | 最大退避 Ms(类型 `int`)。The max backoff ms. |
leaseMs | int | lease Ms(类型 `int`)。The lease ms. |
dispatchTimeoutMs | int | dispatch 超时 Ms(类型 `int`)。The dispatch timeout ms. |
io/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:41–51方法详情Method Detail
from
public static WeixinChannelProperties from(String channelId, Map<String, Object> raw)
创建并返回实例。
Creates and returns an instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channelId | String | 渠道标识(类型 `String`)。The channel id. |
raw | Map<String, Object> | 原始(类型 `Map`)。The raw. |
WeixinChannelPropertiesio/agentscope/extensions/channel/weixin/WeixinChannelProperties.java:53–67