类 ActingEvent

java.lang.Object
io.agentscope.core.hook.HookEvent
io.agentscope.core.hook.ActingEvent
直接已知子类:
ActingChunkEvent, PostActingEvent, PreActingEvent

@Deprecated(forRemoval=true, since="2.0.0") public abstract sealed class ActingEvent extends HookEvent permits PreActingEvent, PostActingEvent, ActingChunkEvent
已过时, 待删除: 此 API 元素将从以后的版本中删除。
since 2.0.0. Use MiddlewareBase instead.
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:

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

    • toolUse

      protected ToolUseBlock toolUse
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
  • 构造器详细资料

    • ActingEvent

      protected ActingEvent(HookEventType type, Agent agent, Toolkit toolkit, ToolUseBlock toolUse)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      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()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      Get the toolkit instance.
      返回:
      The toolkit
    • getToolUse

      public final ToolUseBlock getToolUse()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      Get the tool being executed.
      返回:
      The tool use block