AS AgentScopeAPI 手册 / API Reference

WeixinCredentialProvider

@FunctionalInterface public interface WeixinCredentialProvider
源码Source io/agentscope/extensions/channel/weixin/WeixinCredentialProvider.java:21–35

定义 Weixin 凭证提供者契约的接口。位于 io.agentscope.extensions.channel.weixin 包。核心成员包括 current、fixed。

Supplies the current iLink credentials to a running Weixin channel.

方法摘要Method Summary

方法Method说明Description
public WeixinCredentials current()
返回当前。
Returns the current.
static public WeixinCredentialProvider fixed(String botToken)
static
设置该参数。
Performs the fixed operation.
static public WeixinCredentialProvider fixed(WeixinCredentials credentials)
static
设置该参数。
Performs the fixed operation.

方法详情Method Detail

current

public WeixinCredentials current()

返回当前。

Returns the current.

返回Returns WeixinCredentials
返回WeixinCredentials。Returns weixin credentials.
源码Source io/agentscope/extensions/channel/weixin/WeixinCredentialProvider.java:24

fixed

static public WeixinCredentialProvider fixed(String botToken)
static

设置该参数。

Performs the fixed operation.

参数Parameters
名称Name类型Type说明Description
botTokenStringbot 令牌(类型 `String`)。The bot token.
返回Returns WeixinCredentialProvider
返回WeixinCredentialProvider。Returns weixin credential provider.
源码Source io/agentscope/extensions/channel/weixin/WeixinCredentialProvider.java:26–29

fixed

static public WeixinCredentialProvider fixed(WeixinCredentials credentials)
static

设置该参数。

Performs the fixed operation.

参数Parameters
名称Name类型Type说明Description
credentialsWeixinCredentials凭证(类型 `WeixinCredentials`)。The credentials.
返回Returns WeixinCredentialProvider
返回WeixinCredentialProvider。Returns weixin credential provider.
源码Source io/agentscope/extensions/channel/weixin/WeixinCredentialProvider.java:31–34
基于官方固定版本源码静态生成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.