AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.core.event

io.agentscope.core.event

package io.agentscope.core.event

io.agentscope.core.event 属于消息·事件·格式化,统一消息模型与协议转换。 该包共收录 35 个公开类型。

io.agentscope.core.event belongs to the Messages, events & formatting layer and contains 35 public types.

所属构件Artifacts agentscope-core

接口Interfaces

类型Type种类Kind说明Description
AgentEventEmitter接口interface
定义智能体事件 Emitter契约的接口。
Public interface for emitting `AgentEvent`s into the parent agent's `streamEvents()` event stream from within tool execution code.

类Classes

类型Type种类Kind说明Description
AgentEndEvent类class
智能体结束事件,描述执行过程中的事件。
Emitted when an agent finishes processing an invocation.
AgentEvent类class
智能体事件,描述执行过程中的事件。
Base class for all fine-grained agent events.
AgentResultEvent类class
智能体结果事件,描述执行过程中的事件。
Emitted when an agent successfully finishes processing an invocation, carrying the final result message.
AgentStartEvent类class
智能体启动事件,描述执行过程中的事件。
Emitted when an agent begins processing an invocation.
AllToolsDeniedEvent类class
所有工具已拒绝事件,描述执行过程中的事件。
Emitted during the acting phase when all tool calls from the most recent reasoning step were denied (by user HITL confirmation or by permission rules).
ConfirmResult类class
确认结果,在智能体、模型与前端之间传递结构化消息和事件。
Represents the result of a single user confirmation decision for a tool call.
CustomEvent类class
自定义事件,描述执行过程中的事件。
Generic extensible event for signals that don't fit a specific `AgentEvent` subtype.
DataBlockDeltaEvent类class
数据块增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
DataBlockEndEvent类class
数据块结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
DataBlockStartEvent类class
数据块启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ExceedMaxItersEvent类class
超出最大迭代次数事件,描述执行过程中的事件。
Emitted when the agent's ReAct loop exceeds the configured maximum iterations.
ExternalExecutionResultEvent类class
外部执行结果事件,描述执行过程中的事件。
Emitted after externally-executed tool results are provided back to the agent.
HintBlockEvent类class
Hint 块事件,描述执行过程中的事件。
One-shot hint block event.
ModelCallEndEvent类class
模型调用结束事件,描述执行过程中的事件。
Emitted when the agent finishes a model (LLM) call.
ModelCallStartEvent类class
模型调用启动事件,描述执行过程中的事件。
Emitted when the agent starts a model (LLM) call.
RequestStopEvent类class
请求停止事件,描述执行过程中的事件。
Requests the agent to pause execution after the current phase completes.
RequireExternalExecutionEvent类class
Require 外部执行事件,描述执行过程中的事件。
Emitted when tool calls require external (out-of-process) execution.
RequireUserConfirmEvent类class
Require 用户确认事件,描述执行过程中的事件。
Emitted when the agent requires user confirmation before executing tool calls (HITL).
SubagentExposedEvent类class
子智能体 Exposed 事件,描述执行过程中的事件。
Emitted when a spawned subagent is exposed as a user-addressable entry point via `agent_spawn(expose_to_user=true)`.
TextBlockDeltaEvent类class
文本块增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
TextBlockEndEvent类class
文本块结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
TextBlockStartEvent类class
文本块启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ThinkingBlockDeltaEvent类class
Thinking 块增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ThinkingBlockEndEvent类class
Thinking 块结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ThinkingBlockStartEvent类class
Thinking 块启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolCallDeltaEvent类class
工具调用增量事件,描述执行过程中的事件。
Emitted as tool call input arguments are streamed incrementally.
ToolCallEndEvent类class
工具调用结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolCallStartEvent类class
工具调用启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolResultDataDeltaEvent类class
工具结果数据增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolResultEndEvent类class
工具结果结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolResultStartEvent类class
工具结果启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolResultTextDeltaEvent类class
工具结果文本增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
UserConfirmResultEvent类class
用户确认结果事件,描述执行过程中的事件。
Emitted after the user has responded to a `RequireUserConfirmEvent`.

枚举Enums

类型Type种类Kind说明Description
AgentEventType枚举enum
定义智能体事件类型的枚举。
Fine-grained event types emitted during agent execution.
基于官方固定版本源码静态生成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.