AS AgentScopeAPI 手册 / API Reference

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
idString
执行标识相关操作。
Performs the id operation.
reasonString
执行推理相关操作。
Performs the reason operation.
messageString
执行消息相关操作。
Performs the message operation.
toolCallIdString
执行工具调用标识相关操作。
Performs the tool call id operation.
responseSchemaMap<String, Object>
执行响应模式相关操作。
Performs the response schema operation.
expiresAtString
执行过期 At相关操作。
Performs the expires at operation.
metadataMap<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–1695

reason

String reason

执行推理相关操作。

Performs the reason operation.

源码Source io/agentscope/core/agui/event/AguiEvent.java:1669–1695

message

String message

执行消息相关操作。

Performs the message operation.

源码Source io/agentscope/core/agui/event/AguiEvent.java:1669–1695

toolCallId

String toolCallId

执行工具调用标识相关操作。

Performs the tool call id operation.

源码Source io/agentscope/core/agui/event/AguiEvent.java:1669–1695

responseSchema

Map<String, Object> responseSchema

执行响应模式相关操作。

Performs the response schema operation.

源码Source io/agentscope/core/agui/event/AguiEvent.java:1669–1695

expiresAt

String expiresAt

执行过期 At相关操作。

Performs the expires at operation.

源码Source io/agentscope/core/agui/event/AguiEvent.java:1669–1695

metadata

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
idString标识(类型 `String`)。The id.
reasonString原因(类型 `String`)。The reason.
messageString消息(类型 `String`)。The message.
toolCallIdString工具调用标识(类型 `String`)。The tool call id.
responseSchemaMap<String, Object>响应模式(类型 `Map`)。The response schema.
expiresAtString过期 At(类型 `String`)。The expires at.
metadataMap<String, Object>元数据(类型 `Map`)。The metadata.
源码Source io/agentscope/core/agui/event/AguiEvent.java:1678–1694
基于官方固定版本源码静态生成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.