Interface ToolExecutedEventListener
- All Superinterfaces:
AiServiceListener<ToolExecutedEvent>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ToolExecutedEventListener
extends AiServiceListener<ToolExecutedEvent>
A listener for
ToolExecutedEvent
, which represents an event
that occurs after a tool is executed within an AI Service invocation.
This interface extends AiServiceListener
, specializing it
for handling events specifically related to tool executions.
Classes implementing this interface should handle scenarios where a tool
is executed during an AI Service invocation. These events may occur multiple times
within a single invocation, and they include details about the tool execution
request and the corresponding execution result.-
Method Summary
Modifier and TypeMethodDescriptiondefault Class
<ToolExecutedEvent> Retrieves the class object representing the type ofAiServiceEvent
that this listener listens for.Methods inherited from interface AiServiceListener
onEvent
-
Method Details
-
getEventClass
Description copied from interface:AiServiceListener
Retrieves the class object representing the type ofAiServiceEvent
that this listener listens for.- Specified by:
getEventClass
in interfaceAiServiceListener<ToolExecutedEvent>
- Returns:
- the
Class
object of the event type that this listener is associated with
-