类 ActingChunkEvent
java.lang.Object
io.agentscope.core.hook.HookEvent
io.agentscope.core.hook.ActingEvent
io.agentscope.core.hook.ActingChunkEvent
Event fired during tool execution streaming.
Modifiable: No (notification-only)
Context:
HookEvent.getAgent()- The agent instanceHookEvent.getMemory()- Agent's memoryActingEvent.getToolkit()- The toolkit instanceActingEvent.getToolUse()- The tool being executedgetChunk()- The streaming chunk from ToolEmitter
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
-
字段概要
从类继承的字段 io.agentscope.core.hook.ActingEvent
toolUse -
构造器概要
构造器构造器说明ActingChunkEvent(Agent agent, Toolkit toolkit, ToolUseBlock toolUse, ToolResultBlock chunk) Constructor for ActingChunkEvent. -
方法概要
从类继承的方法 io.agentscope.core.hook.ActingEvent
getToolkit, getToolUse从类继承的方法 io.agentscope.core.hook.HookEvent
getAgent, getMemory, getTimestamp, getType
-
构造器详细资料
-
ActingChunkEvent
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
Get the streaming chunk from ToolEmitter.- 返回:
- The chunk
-