AguiResume
public class AguiResume
io/agentscope/core/agui/model/AguiResume.java:33–129AGUI 恢复,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.agui.model 包。核心成员包括 getInterruptId、getStatus、getPayload、isResolved、isCancelled、toString。
Represents one official AG-UI resume response for a previous interrupt.
Resume entries are sent on the next RunAgentInput for the same thread and are
correlated with the interrupted run by interruptId.
Important distinction: A user response that explicitly denies the request
(e.g., { "approved": false }) is still considered resolved,
not cancelled. The cancelled status is reserved for cases
where the user provides no meaningful input and the payload is omitted.
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
STATUS_RESOLVEDstaticfinal | String | 状态已解析字段。 The STATUS RESOLVED field. |
STATUS_CANCELLEDstaticfinal | String | 状态已取消字段。 The STATUS CANCELLED field. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AguiResume(String interruptId, String status, Object payload) | 创建新的AG-UI 恢复条目。 Creates a new AG-UI resume entry. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getInterruptId() | 获取中断标识。 Get the interrupt ID this resume entry answers. |
public String getStatus() | 获取恢复状态。 Get the resume status. |
public Object getPayload() | 获取恢复负载。 Get the resume payload. |
public boolean isResolved() | 判断是否已解析。 Check whether this resume entry resolved the interrupt. |
public boolean isCancelled() | 判断是否已取消。 Check whether this resume entry cancelled the interrupt. |
public String toString() | 返回 `toString` 结果。 Returns the to string. |
public boolean equals(Object o) | 设置该参数。 Performs the equals operation. |
public int hashCode() | 返回 `hashCode` 结果。 Returns the hash code. |
字段详情Field Detail
STATUS_RESOLVED
public static final String STATUS_RESOLVED
状态已解析字段。声明为 public static final String STATUS_RESOLVED。
The STATUS RESOLVED field.
io/agentscope/core/agui/model/AguiResume.java:35STATUS_CANCELLED
public static final String STATUS_CANCELLED
状态已取消字段。声明为 public static final String STATUS_CANCELLED。
The STATUS CANCELLED field.
io/agentscope/core/agui/model/AguiResume.java:36构造器详情Constructor Detail
AguiResume
public AguiResume(String interruptId, String status, Object payload)
创建新的AG-UI 恢复条目。
Creates a new AG-UI resume entry.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
interruptId | String | 中断标识来自`RunFinished.outcome.interrupts[]`。The interrupt ID from `RunFinished.outcome.interrupts[]` |
status | String | 状态(类型 `String`)。The resume status, usually `resolved` or `cancelled` |
payload | Object | 负载(类型 `Object`)。Optional response payload for resolved interrupts |
io/agentscope/core/agui/model/AguiResume.java:49–57方法详情Method Detail
getInterruptId
public String getInterruptId()
获取中断标识。
Get the interrupt ID this resume entry answers.
Stringio/agentscope/core/agui/model/AguiResume.java:64–66getStatus
public String getStatus()
获取恢复状态。
Get the resume status.
Stringio/agentscope/core/agui/model/AguiResume.java:73–75getPayload
public Object getPayload()
获取恢复负载。
Get the resume payload.
Objectio/agentscope/core/agui/model/AguiResume.java:82–84isResolved
public boolean isResolved()
判断是否已解析。
Check whether this resume entry resolved the interrupt.
booleanio/agentscope/core/agui/model/AguiResume.java:91–93isCancelled
public boolean isCancelled()
判断是否已取消。
Check whether this resume entry cancelled the interrupt.
booleanio/agentscope/core/agui/model/AguiResume.java:100–102toString
public String toString()
返回 toString 结果。
Returns the to string.
Stringio/agentscope/core/agui/model/AguiResume.java:104–113equals
public boolean equals(Object o)
设置该参数。
Performs the equals operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
o | Object | o(类型 `Object`)。The o. |
booleanio/agentscope/core/agui/model/AguiResume.java:115–123hashCode
public int hashCode()
返回 hashCode 结果。
Returns the hash code.
intio/agentscope/core/agui/model/AguiResume.java:125–128