Class AiServiceErrorEvent.AiServiceErrorEventBuilder
java.lang.Object
dev.langchain4j.observability.api.event.AiServiceEvent.Builder<AiServiceErrorEvent>
dev.langchain4j.observability.api.event.AiServiceErrorEvent.AiServiceErrorEventBuilder
- Enclosing interface:
AiServiceErrorEvent
public static class AiServiceErrorEvent.AiServiceErrorEventBuilder
extends AiServiceEvent.Builder<AiServiceErrorEvent>
Builder for
DefaultAiServiceErrorEvent instances.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCreates a builder initialized from an existingAiServiceErrorEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAiServiceErrorEvent.Sets the error.getError()invocationContext(InvocationContext invocationContext) Sets the invocation context.Methods inherited from class AiServiceEvent.Builder
invocationContext
-
Constructor Details
-
AiServiceErrorEventBuilder
protected AiServiceErrorEventBuilder() -
AiServiceErrorEventBuilder
Creates a builder initialized from an existingAiServiceErrorEvent.
-
-
Method Details
-
invocationContext
public AiServiceErrorEvent.AiServiceErrorEventBuilder invocationContext(InvocationContext invocationContext) Sets the invocation context.- Overrides:
invocationContextin classAiServiceEvent.Builder<AiServiceErrorEvent>
-
error
Sets the error. -
build
Builds aAiServiceErrorEvent.- Specified by:
buildin classAiServiceEvent.Builder<AiServiceErrorEvent>
-
getError
-