Interface ToolExecutedEvent
- All Superinterfaces:
AiServiceEvent
- All Known Implementing Classes:
DefaultToolExecutedEvent
Invoked after the tool is executed.
It is important to note that this can be invoked multiple times within a single AI Service invocation.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface AiServiceEvent
AiServiceEvent.Builder<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a new builder instance for constructing aToolExecutedEvent
.default Class
<ToolExecutedEvent> Retrieves the class type of the event, representing the specific category of the AI Service invocation event.request()
Gets theToolExecutionRequest
that initiated the tool execution.Gets the result of the tool executionCreates a new builder instance initialized with the properties of thisAiServiceEvent
.Methods inherited from interface AiServiceEvent
invocationContext
-
Method Details
-
request
ToolExecutionRequest request()Gets theToolExecutionRequest
that initiated the tool execution. -
resultText
String resultText()Gets the result of the tool execution -
builder
Creates a new builder instance for constructing aToolExecutedEvent
. -
eventClass
Description copied from interface:AiServiceEvent
Retrieves the class type of the event, representing the specific category of the AI Service invocation event.- Specified by:
eventClass
in interfaceAiServiceEvent
-
toBuilder
Description copied from interface:AiServiceEvent
Creates a new builder instance initialized with the properties of thisAiServiceEvent
. This allows modification of the existing properties and reconstruction of the event.- Specified by:
toBuilder
in interfaceAiServiceEvent
-