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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/protocol/responseapi/model/Error.java:26–28setCode
public void setCode(String code)
设置 setCode。
Sets the code.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
code | String | code(类型 `String`)。The code. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/Error.java:30–32getMessage
public String getMessage()
获取消息。
Returns the message.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/protocol/responseapi/model/Error.java:34–36setMessage
public void setMessage(String message)
设置消息。
Sets the message.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/Error.java:38–40