Class ChatEvent.BeforeToolExecutionEvent
java.lang.Object
io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent
io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent.BeforeToolExecutionEvent
- Enclosing class:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent
ChatEvent.AccumulatedResponseEvent, ChatEvent.BeforeToolExecutionEvent, ChatEvent.ChatCompletedEvent, ChatEvent.ChatEventType, ChatEvent.ContentFetchedEvent, ChatEvent.PartialResponseEvent, ChatEvent.PartialThinkingEvent, ChatEvent.ToolExecutedEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBeforeToolExecutionEvent
(dev.langchain4j.agent.tool.ToolExecutionRequest request) Constructs a new BeforeToolExecutionEvent with the given tool execution request. -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.agent.tool.ToolExecutionRequest
Returns the tool execution request that is about to be executed.Methods inherited from class io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent
getEventType
-
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
-