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

io.agentscope.core.hook

package io.agentscope.core.hook

io.agentscope.core.hook 属于智能体运行时,推理、工具调用与会话执行。 该包共收录 19 个公开类型。

io.agentscope.core.hook belongs to the Agent runtime layer and contains 19 public types.

所属构件Artifacts agentscope-core

接口Interfaces

类型Type种类Kind说明Description
Hook接口interface
定义钩子契约的接口。
Hook interface for monitoring and intercepting agent execution.

类Classes

类型Type种类Kind说明Description
ActingChunkEvent类class
执行分块事件,描述执行过程中的事件。
Event fired during tool execution streaming.
ActingEvent类class
执行事件,描述执行过程中的事件。
Base class for tool execution (acting) related events.
ErrorEvent类class
错误事件,描述执行过程中的事件。
Event fired when an error occurs during agent execution.
HookEvent类class
所有钩子事件的基类。
Base class for all hook events.
LegacyHookDispatcher类class
Legacy 钩子调度器,驱动智能体的推理、工具调用与会话执行。
Encapsulates all legacy `HookEvent` construction and dispatch logic.
PostActingEvent类class
后置执行事件,描述执行过程中的事件。
Event fired after tool execution completes.
PostCallEvent类class
后置调用事件,描述执行过程中的事件。
Event fired after agent completes processing.
PostReasoningEvent类class
后置推理事件,描述执行过程中的事件。
Event fired after LLM reasoning completes.
PostSummaryEvent类class
后置摘要事件,描述执行过程中的事件。
Event fired after summary generation completes.
PreActingEvent类class
前置执行事件,描述执行过程中的事件。
Event fired before tool execution.
PreCallEvent类class
前置调用事件,描述执行过程中的事件。
Event fired before agent starts processing.
PreReasoningEvent类class
前置推理事件,描述执行过程中的事件。
Event fired before LLM reasoning.
PreSummaryEvent类class
前置摘要事件,描述执行过程中的事件。
Event fired before summary generation when max iterations is reached.
ReasoningChunkEvent类class
推理分块事件,描述执行过程中的事件。
Event fired during reasoning streaming.
ReasoningEvent类class
推理事件,描述执行过程中的事件。
Base class for reasoning-related events.
SummaryChunkEvent类class
摘要分块事件,描述执行过程中的事件。
Event fired during summary streaming.
SummaryEvent类class
摘要事件,描述执行过程中的事件。
Base class for summary-related events.

枚举Enums

类型Type种类Kind说明Description
HookEventType枚举enum
定义钩子事件类型的枚举。
Enum representing all hook event types.
基于官方固定版本源码静态生成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.