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