AS AgentScopeAPI 手册 / API Reference

Error

@JsonIgnoreProperties(ignoreUnknown = true) public class Error
源码Source io/agentscope/runtime/protocol/responseapi/model/Error.java:21–41

错误,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.runtime.protocol.responseapi.model 包。核心成员包括 getCode、setCode、getMessage、setMessage。

A class in io.agentscope.runtime.protocol.responseapi.model that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.protocol.responseapi.model.

方法摘要Method Summary

方法Method说明Description
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.

方法详情Method Detail

getCode

public String getCode()

获取 getCode。

Returns the code.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/responseapi/model/Error.java:26–28

setCode

public void setCode(String code)

设置 setCode。

Sets the code.

参数Parameters
名称Name类型Type说明Description
codeStringcode(类型 `String`)。The code.
源码Source io/agentscope/runtime/protocol/responseapi/model/Error.java:30–32

getMessage

public String getMessage()

获取消息。

Returns the message.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/responseapi/model/Error.java:34–36

setMessage

public void setMessage(String message)

设置消息。

Sets the message.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
源码Source io/agentscope/runtime/protocol/responseapi/model/Error.java:38–40
基于官方固定版本源码静态生成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.