Class ChatEvent.BeforeToolExecutionEvent

java.lang.Object
io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent
io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent.BeforeToolExecutionEvent
Enclosing class:
ChatEvent

public static class ChatEvent.BeforeToolExecutionEvent extends ChatEvent
Event emitted when a tool is about to be executed during a chat conversation. This event is triggered before the tool execution begins, allowing for monitoring, logging, or preparation steps before the actual tool invocation.
  • Constructor Details

    • BeforeToolExecutionEvent

      public BeforeToolExecutionEvent(dev.langchain4j.agent.tool.ToolExecutionRequest request)
      Constructs a new BeforeToolExecutionEvent with the given tool execution request.
      Parameters:
      request - the tool execution request that is about to be executed
  • Method Details

    • getRequest

      public dev.langchain4j.agent.tool.ToolExecutionRequest getRequest()
      Returns the tool execution request that is about to be executed.
      Returns:
      the tool execution request