Interface AiServiceErrorEvent
- All Superinterfaces:
AiServiceEvent
- All Known Implementing Classes:
DefaultAiServiceErrorEvent
Represents an event that occurs when an AI Service invocation fails.
This interface extends
AiServiceEvent
to include additional information
about the error that caused the failure.
Implementers of this interface can provide details about the failure, including the
associated Throwable
, which can be used for debugging or logging purposes.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Builder forDefaultAiServiceErrorEvent
instances.Nested classes/interfaces inherited from interface AiServiceEvent
AiServiceEvent.Builder<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
error()
Retrieves theThrowable
representing the error associated with the AI Service invocation failure.default Class
<AiServiceErrorEvent> Retrieves the class type of the event, representing the specific category of the AI Service invocation event.Creates a new builder instance initialized with the properties of thisAiServiceEvent
.Methods inherited from interface AiServiceEvent
invocationContext
-
Method Details
-
error
-
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
-
builder
-