AS AgentScopeAPI 手册 / API Reference

WeixinLease

public record WeixinLease(String holderId, long generation)
源码Source io/agentscope/extensions/channel/weixin/WeixinLease.java:21–32

承载 Weixin Lease数据的记录类型。位于 io.agentscope.extensions.channel.weixin 包。核心成员包括 holderId、generation、WeixinLease。

Opaque account lease token used to fence stale Weixin consumers.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
holderIdString
执行 `holderId` 方法。
Performs the holder id operation.
generationlong
执行 `generation` 方法。
Performs the generation operation.

构造器摘要Constructor Summary

构造器Constructor说明Description
public WeixinLease(String holderId, long generation)
初始化 `WeixinLease` 实例。
Creates a new instance.

记录组件详情Record Component Detail

holderId

String holderId

执行 holderId 方法。

Performs the holder id operation.

源码Source io/agentscope/extensions/channel/weixin/WeixinLease.java:21–32

generation

long generation

执行 generation 方法。

Performs the generation operation.

源码Source io/agentscope/extensions/channel/weixin/WeixinLease.java:21–32

构造器详情Constructor Detail

WeixinLease

public WeixinLease(String holderId, long generation)

初始化 WeixinLease 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
holderIdStringholder 标识(类型 `String`)。The holder id.
generationlonggeneration(类型 `long`)。The generation.
源码Source io/agentscope/extensions/channel/weixin/WeixinLease.java:23–31
基于官方固定版本源码静态生成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.