Error
public class Error
源码Source
io/agentscope/runtime/engine/schemas/Error.java:24–46错误,承载智能体的部署、调度与服务化运行。位于 io.agentscope.runtime.engine.schemas 包。核心成员包括 getCode、setCode、getMessage、setMessage。
Error information in events.
方法摘要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/engine/schemas/Error.java:31–33setCode
public void setCode(String code)
设置 setCode。
Sets the code.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
code | String | code(类型 `String`)。The code. |
源码Source
io/agentscope/runtime/engine/schemas/Error.java:35–37getMessage
public String getMessage()
获取消息。
Returns the message.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/engine/schemas/Error.java:39–41setMessage
public void setMessage(String message)
设置消息。
Sets the message.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
源码Source
io/agentscope/runtime/engine/schemas/Error.java:43–45