Class AiServiceEvent.Builder<T extends AiServiceEvent>

java.lang.Object
dev.langchain4j.observability.api.event.AiServiceEvent.Builder<T>
Type Parameters:
T - the specific type of AiServiceEvent being built
Direct Known Subclasses:
AiServiceCompletedEvent.AiServiceCompletedEventBuilder, AiServiceErrorEvent.AiServiceErrorEventBuilder, AiServiceResponseReceivedEvent.AiServiceResponseReceivedEventBuilder, AiServiceStartedEvent.AiServiceStartedEventBuilder, GuardrailExecutedEvent.GuardrailExecutedEventBuilder, ToolExecutedEvent.ToolExecutedEventBuilder
Enclosing interface:
AiServiceEvent

public abstract static class AiServiceEvent.Builder<T extends AiServiceEvent> extends Object
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 Details

    • Builder

      protected Builder()
    • Builder

      protected Builder(T src)
  • Method Details