AS AgentScopeAPI 手册 / API Reference

DashScopePublicKeyResponse

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

DashScope Public 键响应,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.extensions.model.dashscope.dto 包。核心成员包括 getRequestId、setRequestId、getData、setData、getCode、setCode。

DashScope public key response DTO.

This class represents the response structure from DashScope's public key API.

Example JSON:

`{
"request_id": "xxx-xxx-xxx",
"data": {
"public_key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnojrB579xgPQN5f46SvoRAiQBPWBaPzWh7hp51fWI+OsQk7KqH0qMcw8i0eK5rfOvJIPujOQgnes1ph9/gKAst9NzXVIl9JJYUSPtzTvOabhp4yvS3KBf9g3xHYVjYgW33SOY74Ue/tgbCXn717rV6gXb4sVvq9XK/1BrDcGbEOQEZEgBTFkm/g3lpWLQtACwwqHffoA9eQtkkz15ZFKosAgbR8LedfIvxAl2zk15REzxXiRcFgc9/tLF0U1t2Sxt9FkQefxYwn6EZawTsRJvf4kqF3MaPdTcDbOp0iSNvCl2qzPSf/F+Oll2CUM1tFAEu81oa4l0WaDR3UtvqOtyQIDAQAB",
"public_key_id": "1"
}
}
`

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
PublicKeyData类class
Public 键数据,与模型服务通信并返回生成或向量化结果。
Public key data containing the key ID and key value.

构造器摘要Constructor Summary

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

方法摘要Method Summary

方法Method说明Description
public String getRequestId()
获取请求标识。
Returns the request id.
public void setRequestId(String requestId)
设置请求标识。
Sets the request id.
public PublicKeyData getData()
获取数据。
Returns the data.
public void setData(PublicKeyData data)
设置数据。
Sets the data.
public String getCode()
获取 `getCode`。
Returns the code.
public void setCode(String code)
设置 `setCode`。
Sets the code.
public String getMessage()
获取消息。
Returns the message.
public void setMessage(String message)
设置消息。
Sets the message.
public boolean isError()
判断是否错误。
Check if this response represents an error.

构造器详情Constructor Detail

DashScopePublicKeyResponse

public DashScopePublicKeyResponse()

初始化 DashScopePublicKeyResponse 实例。

Creates a new instance.

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

方法详情Method Detail

getRequestId

public String getRequestId()

获取请求标识。

Returns the request id.

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

setRequestId

public void setRequestId(String requestId)

设置请求标识。

Sets the request id.

参数Parameters
名称Name类型Type说明Description
requestIdString请求标识(类型 `String`)。The request id.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:62–64

getData

public PublicKeyData getData()

获取数据。

Returns the data.

返回Returns PublicKeyData
返回PublicKeyData。Returns public key data.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:66–68

setData

public void setData(PublicKeyData data)

设置数据。

Sets the data.

参数Parameters
名称Name类型Type说明Description
dataPublicKeyData数据(类型 `PublicKeyData`)。The data.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:70–72

getCode

public String getCode()

获取 getCode。

Returns the code.

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

setCode

public void setCode(String code)

设置 setCode。

Sets the code.

参数Parameters
名称Name类型Type说明Description
codeStringcode(类型 `String`)。The code.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:78–80

getMessage

public String getMessage()

获取消息。

Returns the message.

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

setMessage

public void setMessage(String message)

设置消息。

Sets the message.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:86–88

isError

public boolean isError()

判断是否错误。

Check if this response represents an error.

返回Returns boolean
返回布尔值,表示判断结果。true if the response contains an error code
源码Source io/agentscope/extensions/model/dashscope/dto/DashScopePublicKeyResponse.java:95–97

嵌套类详情Nested Class Detail

PublicKeyData

@JsonIgnoreProperties(ignoreUnknown = true) public static class PublicKeyData

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

Public key data containing the key ID and key value.

基于官方固定版本源码静态生成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.