AS AgentScopeAPI 手册 / API Reference

AguiInterruptConstants

public final class AguiInterruptConstants
源码Source io/agentscope/core/agui/AguiInterruptConstants.java:19–46

AGUI 中断 Constants,在智能体、模型与前端之间传递结构化消息和事件。位于 io.agentscope.core.agui 包。核心成员包括 TOOL_CALL_INTERRUPT_REASON、INPUT_REQUIRED_INTERRUPT_REASON、METADATA_AGENTSCOPE_INTERRUPT_KIND、INTERRUPT_KIND_PERMISSION_CONFIRM、METADATA_TOOL_NAME、METADATA_TOOL_INPUT。

Constants for AG-UI interrupt reasons and AgentScope interrupt metadata.

字段摘要Field Summary

字段Field类型Type说明Description
TOOL_CALL_INTERRUPT_REASON
staticfinal
String
工具调用中断推理字段。
AG-UI interrupt reason for tool-bound decisions.
INPUT_REQUIRED_INTERRUPT_REASON
staticfinal
String
输入必填中断推理字段。
AG-UI interrupt reason for structured input requests.
METADATA_AGENTSCOPE_INTERRUPT_KIND
staticfinal
String
元数据 AGENTSCOPE 中断种类字段。
Interrupt metadata key: AgentScope-specific interrupt kind.
INTERRUPT_KIND_PERMISSION_CONFIRM
staticfinal
String
中断种类权限确认字段。
Interrupt metadata value for permission-mode tool confirmations.
METADATA_TOOL_NAME
staticfinal
String
元数据工具名称字段。
Interrupt metadata key: the tool name.
METADATA_TOOL_INPUT
staticfinal
String
元数据工具输入字段。
Interrupt metadata key: the parsed tool arguments.
METADATA_TOOL_CONTENT
staticfinal
String
元数据工具内容字段。
Interrupt metadata key: the tool arguments serialized as a JSON-object string.
METADATA_REPLY_ID
staticfinal
String
元数据回复标识字段。
Interrupt metadata key: the originating reply id.

字段详情Field Detail

TOOL_CALL_INTERRUPT_REASON

public static final String TOOL_CALL_INTERRUPT_REASON
staticfinal

工具调用中断推理字段。声明为 public static final String TOOL_CALL_INTERRUPT_REASON。

AG-UI interrupt reason for tool-bound decisions.

源码Source io/agentscope/core/agui/AguiInterruptConstants.java:24

INPUT_REQUIRED_INTERRUPT_REASON

public static final String INPUT_REQUIRED_INTERRUPT_REASON
staticfinal

输入必填中断推理字段。声明为 public static final String INPUT_REQUIRED_INTERRUPT_REASON。

AG-UI interrupt reason for structured input requests.

源码Source io/agentscope/core/agui/AguiInterruptConstants.java:27

METADATA_AGENTSCOPE_INTERRUPT_KIND

public static final String METADATA_AGENTSCOPE_INTERRUPT_KIND
staticfinal

元数据 AGENTSCOPE 中断种类字段。声明为 public static final String METADATA_AGENTSCOPE_INTERRUPT_KIND。

Interrupt metadata key: AgentScope-specific interrupt kind.

源码Source io/agentscope/core/agui/AguiInterruptConstants.java:30

INTERRUPT_KIND_PERMISSION_CONFIRM

public static final String INTERRUPT_KIND_PERMISSION_CONFIRM
staticfinal

中断种类权限确认字段。声明为 public static final String INTERRUPT_KIND_PERMISSION_CONFIRM。

Interrupt metadata value for permission-mode tool confirmations.

源码Source io/agentscope/core/agui/AguiInterruptConstants.java:33

METADATA_TOOL_NAME

public static final String METADATA_TOOL_NAME
staticfinal

元数据工具名称字段。声明为 public static final String METADATA_TOOL_NAME。

Interrupt metadata key: the tool name.

源码Source io/agentscope/core/agui/AguiInterruptConstants.java:36

METADATA_TOOL_INPUT

public static final String METADATA_TOOL_INPUT
staticfinal

元数据工具输入字段。声明为 public static final String METADATA_TOOL_INPUT。

Interrupt metadata key: the parsed tool arguments.

源码Source io/agentscope/core/agui/AguiInterruptConstants.java:39

METADATA_TOOL_CONTENT

public static final String METADATA_TOOL_CONTENT
staticfinal

元数据工具内容字段。声明为 public static final String METADATA_TOOL_CONTENT。

Interrupt metadata key: the tool arguments serialized as a JSON-object string.

源码Source io/agentscope/core/agui/AguiInterruptConstants.java:42

METADATA_REPLY_ID

public static final String METADATA_REPLY_ID
staticfinal

元数据回复标识字段。声明为 public static final String METADATA_REPLY_ID。

Interrupt metadata key: the originating reply id.

源码Source io/agentscope/core/agui/AguiInterruptConstants.java:45
基于官方固定版本源码静态生成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.