类 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 元素将从以后的版本中删除。
Base class for tool execution (acting) related events.
This sealed class provides common context for all acting events:
getToolkit()- The toolkit instancegetToolUse()- The tool being executed
Subclasses represent different stages of tool execution:
PreActingEvent- Before tool executionPostActingEvent- After tool executionActingChunkEvent- During tool streaming
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedActingEvent(HookEventType type, Agent agent, Toolkit toolkit, ToolUseBlock toolUse) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for ActingEvent. -
方法概要
修饰符和类型方法说明final Toolkit已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the toolkit instance.final ToolUseBlock已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the tool being executed.从类继承的方法 io.agentscope.core.hook.HookEvent
appendSystemContent, appendSystemContent, getAgent, getMemory, getSystemMessage, getTimestamp, getType, setSystemMessage
-
字段详细资料
-
toolUse
已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
-
构造器详细资料
-
ActingEvent
已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for ActingEvent.- 参数:
type- The event type (must not be null)agent- The agent instance (must not be null)toolkit- The toolkit instancetoolUse- The tool being executed (can be null for empty events)
-
-
方法详细资料
-
getToolkit
已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the toolkit instance.- 返回:
- The toolkit
-
getToolUse
已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the tool being executed.- 返回:
- The tool use block
-
MiddlewareBaseinstead.