Class ChatEvent.ToolExecutedEvent

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

public static class ChatEvent.ToolExecutedEvent extends ChatEvent
Event emitted when a tool has been executed during a chat conversation. Tools are functions that the AI can call to perform specific actions or retrieve information during the conversation.
  • Constructor Details

    • ToolExecutedEvent

      public ToolExecutedEvent(dev.langchain4j.service.tool.ToolExecution execution)
      Constructs a new ToolExecutedEvent with the given tool execution details.
      Parameters:
      execution - the tool execution information including the tool name, arguments, and execution result
  • Method Details

    • getExecution

      public dev.langchain4j.service.tool.ToolExecution getExecution()
      Returns the tool execution details.
      Returns:
      the tool execution information