类 PreCallEvent

java.lang.Object
io.agentscope.core.hook.HookEvent
io.agentscope.core.hook.PreCallEvent

public final class PreCallEvent extends HookEvent
Event fired before agent starts processing.

Modifiable: No (notification-only)

Context:

Use Cases:

  • Log the start of agent execution
  • Initialize execution-specific resources
  • Track agent invocation metrics
  • 构造器详细资料

    • PreCallEvent

      public PreCallEvent(Agent agent, List<Msg> inputMessages)
      Constructor for PreCallEvent.
      参数:
      agent - The agent instance (must not be null)
      抛出:
      NullPointerException - if agent is null
  • 方法详细资料

    • getInputMessages

      public List<Msg> getInputMessages()
    • setInputMessages

      public void setInputMessages(List<Msg> inputMessages)