PublicKeyData
@JsonIgnoreProperties(ignoreUnknown = true) public static class PublicKeyData
源码Source
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:102–130Public 键数据,与模型服务通信并返回生成或向量化结果。位于 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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:115–117setPublicKey
public void setPublicKey(String publicKey)
设置 setPublicKey。
Sets the public key.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
publicKey | String | public 键(类型 `String`)。The public key. |
源码Source
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:119–121getPublicKeyId
public String getPublicKeyId()
获取 getPublicKeyId。
Returns the public key id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:123–125setPublicKeyId
public void setPublicKeyId(String publicKeyId)
设置 setPublicKeyId。
Sets the public key id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
publicKeyId | String | public 键标识(类型 `String`)。The public key id. |
源码Source
io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:127–129