类 ActingChunkEvent
java.lang.Object
io.agentscope.core.hook.HookEvent
io.agentscope.core.hook.ActingEvent
io.agentscope.core.hook.ActingChunkEvent
已过时, 待删除: 此 API 元素将从以后的版本中删除。
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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for ActingChunkEvent. -
方法概要
从类继承的方法 io.agentscope.core.hook.ActingEvent
getToolkit, getToolUse从类继承的方法 io.agentscope.core.hook.HookEvent
appendSystemContent, appendSystemContent, getAgent, getMemory, getSystemMessage, getTimestamp, getType, setSystemMessage
-
构造器详细资料
-
ActingChunkEvent
已过时, 待删除: 此 API 元素将从以后的版本中删除。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
已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the streaming chunk from ToolEmitter.- 返回:
- The chunk
-
MiddlewareBaseinstead.