类 ActingEvent
java.lang.Object
io.agentscope.core.hook.HookEvent
io.agentscope.core.hook.ActingEvent
- 直接已知子类:
ActingChunkEvent,PostActingEvent,PreActingEvent
public abstract sealed class ActingEvent
extends HookEvent
permits PreActingEvent, PostActingEvent, ActingChunkEvent
Base class for tool execution (acting) related events.
This sealed class provides common context for all acting events:
getToolkit()- The toolkit instancegetToolUse()- The tool being executed
Subclasses represent different stages of tool execution:
PreActingEvent- Before tool executionPostActingEvent- After tool executionActingChunkEvent- During tool streaming
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedActingEvent(HookEventType type, Agent agent, Toolkit toolkit, ToolUseBlock toolUse) Constructor for ActingEvent. -
方法概要
修饰符和类型方法说明final ToolkitGet the toolkit instance.final ToolUseBlockGet the tool being executed.从类继承的方法 io.agentscope.core.hook.HookEvent
getAgent, getMemory, getTimestamp, getType
-
字段详细资料
-
toolUse
-
-
构造器详细资料
-
ActingEvent
Constructor for ActingEvent.- 参数:
type- The event type (must not be null)agent- The agent instance (must not be null)toolkit- The toolkit instancetoolUse- The tool being executed (can be null for empty events)
-
-
方法详细资料
-
getToolkit
Get the toolkit instance.- 返回:
- The toolkit
-
getToolUse
Get the tool being executed.- 返回:
- The tool use block
-