类 PreCallEvent
java.lang.Object
io.agentscope.core.hook.HookEvent
io.agentscope.core.hook.PreCallEvent
Event fired before agent starts processing.
Modifiable: No (notification-only)
Context:
HookEvent.getAgent()- The agent instanceHookEvent.getMemory()- Agent's memory (includes input messages already added)
Use Cases:
- Log the start of agent execution
- Initialize execution-specific resources
- Track agent invocation metrics
-
构造器概要
构造器 -
方法概要
从类继承的方法 io.agentscope.core.hook.HookEvent
getAgent, getMemory, getTimestamp, getType
-
构造器详细资料
-
PreCallEvent
Constructor for PreCallEvent.- 参数:
agent- The agent instance (must not be null)- 抛出:
NullPointerException- if agent is null
-
-
方法详细资料
-
getInputMessages
-
setInputMessages
-