AS AgentScopeAPI 手册 / API Reference

PublicKeyData

@JsonIgnoreProperties(ignoreUnknown = true) public static class PublicKeyData
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:102–130

Public 键数据,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.dashscope.dto 包。核心成员包括 getPublicKey、setPublicKey、getPublicKeyId、setPublicKeyId、PublicKeyData。

Public key data containing the key ID and key value.

构造器摘要Constructor Summary

构造器Constructor说明Description
public PublicKeyData()
初始化 `PublicKeyData` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String getPublicKey()
获取 `getPublicKey`。
Returns the public key.
public void setPublicKey(String publicKey)
设置 `setPublicKey`。
Sets the public key.
public String getPublicKeyId()
获取 `getPublicKeyId`。
Returns the public key id.
public void setPublicKeyId(String publicKeyId)
设置 `setPublicKeyId`。
Sets the public key id.

构造器详情Constructor Detail

PublicKeyData

public PublicKeyData()

初始化 PublicKeyData 实例。

Creates a new instance.

源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:113

方法详情Method Detail

getPublicKey

public String getPublicKey()

获取 getPublicKey。

Returns the public key.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:115–117

setPublicKey

public void setPublicKey(String publicKey)

设置 setPublicKey。

Sets the public key.

参数Parameters
名称Name类型Type说明Description
publicKeyStringpublic 键(类型 `String`)。The public key.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:119–121

getPublicKeyId

public String getPublicKeyId()

获取 getPublicKeyId。

Returns the public key id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:123–125

setPublicKeyId

public void setPublicKeyId(String publicKeyId)

设置 setPublicKeyId。

Sets the public key id.

参数Parameters
名称Name类型Type说明Description
publicKeyIdStringpublic 键标识(类型 `String`)。The public key id.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:127–129
基于官方固定版本源码静态生成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.