Interrupt
record Interrupt( String id, String reason, String message, String toolCallId, Map<String, Object> responseSchema, String expiresAt, Map<String, Object> metadata)
源码Source
io/agentscope/core/agui/event/AguiEvent.java:1669–1695承载中断数据的记录类型。位于 io.agentscope.core.agui.event 包。核心成员包括 id、reason、message、toolCallId、responseSchema、expiresAt。
Represents an interrupt that occurred during agent execution, requiring user input to resolve before the agent can continue.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
id | String | 执行标识相关操作。 Performs the id operation. |
reason | String | 执行推理相关操作。 Performs the reason operation. |
message | String | 执行消息相关操作。 Performs the message operation. |
toolCallId | String | 执行工具调用标识相关操作。 Performs the tool call id operation. |
responseSchema | Map<String, Object> | 执行响应模式相关操作。 Performs the response schema operation. |
expiresAt | String | 执行过期 At相关操作。 Performs the expires at operation. |
metadata | Map<String, Object> | 执行元数据相关操作。 Performs the metadata operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public Interrupt(String id, String reason, String message, String toolCallId, Map<String, Object> responseSchema, String expiresAt, Map<String, Object> metadata) | 请求中断当前执行。 Creates a new instance. |
记录组件详情Record Component Detail
id
String id执行标识相关操作。
Performs the id operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:1669–1695reason
String reason执行推理相关操作。
Performs the reason operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:1669–1695message
String message执行消息相关操作。
Performs the message operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:1669–1695toolCallId
String toolCallId执行工具调用标识相关操作。
Performs the tool call id operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:1669–1695responseSchema
Map<String, Object> responseSchema执行响应模式相关操作。
Performs the response schema operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:1669–1695expiresAt
String expiresAt执行过期 At相关操作。
Performs the expires at operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:1669–1695metadata
Map<String, Object> metadata执行元数据相关操作。
Performs the metadata operation.
源码Source
io/agentscope/core/agui/event/AguiEvent.java:1669–1695构造器详情Constructor Detail
Interrupt
public Interrupt(String id, String reason, String message, String toolCallId, Map<String, Object> responseSchema, String expiresAt, Map<String, Object> metadata)
请求中断当前执行。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
reason | String | 原因(类型 `String`)。The reason. |
message | String | 消息(类型 `String`)。The message. |
toolCallId | String | 工具调用标识(类型 `String`)。The tool call id. |
responseSchema | Map<String, Object> | 响应模式(类型 `Map`)。The response schema. |
expiresAt | String | 过期 At(类型 `String`)。The expires at. |
metadata | Map<String, Object> | 元数据(类型 `Map`)。The metadata. |
源码Source
io/agentscope/core/agui/event/AguiEvent.java:1678–1694