Class AiServiceEvent.Builder<T extends AiServiceEvent>
java.lang.Object
dev.langchain4j.observability.api.event.AiServiceEvent.Builder<T>
- Type Parameters:
T
- the specific type ofAiServiceEvent
being built
- Direct Known Subclasses:
AiServiceCompletedEvent.AiServiceCompletedEventBuilder, AiServiceErrorEvent.AiServiceErrorEventBuilder, AiServiceResponseReceivedEvent.AiServiceResponseReceivedEventBuilder, AiServiceStartedEvent.AiServiceStartedEventBuilder, GuardrailExecutedEvent.GuardrailExecutedEventBuilder, ToolExecutedEvent.ToolExecutedEventBuilder
- Enclosing interface:
AiServiceEvent
An abstract base class for building instances of types that extend
AiServiceEvent
.
This class provides a fluent interface for setting properties necessary
for constructing an AiServiceEvent
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract T
build()
invocationContext
(InvocationContext invocationContext)
-
Constructor Details
-
Builder
protected Builder() -
Builder
-
-
Method Details
-
invocationContext
-
invocationContext
-
build
-