类 ActingChunkEvent


public final class ActingChunkEvent extends ActingEvent
Event fired during tool execution streaming.

Modifiable: No (notification-only)

Context:

Note: These chunks are emitted by tools via ToolEmitter. They are NOT sent to the LLM - only the final return value is sent.

Use Cases:

  • Display tool execution progress
  • Log intermediate tool outputs
  • Monitor long-running tool operations
  • 构造器详细资料

    • ActingChunkEvent

      public ActingChunkEvent(Agent agent, Toolkit toolkit, ToolUseBlock toolUse, ToolResultBlock chunk)
      Constructor for ActingChunkEvent.
      参数:
      agent - The agent instance (must not be null)
      toolkit - The toolkit instance (must not be null)
      toolUse - The tool being executed (must not be null)
      chunk - The streaming chunk from ToolEmitter (must not be null)
      抛出:
      NullPointerException - if agent, toolkit, toolUse, or chunk is null
  • 方法详细资料

    • getChunk

      public ToolResultBlock getChunk()
      Get the streaming chunk from ToolEmitter.
      返回:
      The chunk