包package
io.agentscope.core.eventio.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.
接口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. |