类 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:

Subclasses represent different stages of tool execution:

另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • ActingEvent

      protected ActingEvent(HookEventType type, Agent agent, Toolkit toolkit, ToolUseBlock toolUse)
      Constructor for ActingEvent.
      参数:
      type - The event type (must not be null)
      agent - The agent instance (must not be null)
      toolkit - The toolkit instance
      toolUse - The tool being executed (can be null for empty events)
  • 方法详细资料

    • getToolkit

      public final Toolkit getToolkit()
      Get the toolkit instance.
      返回:
      The toolkit
    • getToolUse

      public final ToolUseBlock getToolUse()
      Get the tool being executed.
      返回:
      The tool use block