Package dev.langchain4j.observability.api.event
@Experimental
@NullMarked
package dev.langchain4j.observability.api.event
-
ClassDescriptionRepresents an event that occurs upon the completion of an invocation.Builder for
DefaultAiServiceCompletedEvent
instances.Represents an event that occurs when an AI Service invocation fails.Builder forDefaultAiServiceErrorEvent
instances.AiServiceEvent.Builder<T extends AiServiceEvent>An abstract base class for building instances of types that extendAiServiceEvent
.Invoked when response from aChatModel
is received.Builder forDefaultAiServiceResponseReceivedEvent
instances.Called when an LLM invocation has started.Builder forDefaultAiServiceStartedEvent
instances.GuardrailExecutedEvent<P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>> Represents an event that is executed when a guardrail validation occurs.GuardrailExecutedEvent.GuardrailExecutedEventBuilder<P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>, T extends GuardrailExecutedEvent<P, R, G>> Represents an event that is triggered upon the execution of an input guardrail validation.Builder forInputGuardrailExecutedEvent
instances.Represents an event executed during the output guardrail validation process.Builder forOutputGuardrailExecutedEvent
instances.Invoked after the tool is executed.