Uses of Interface
dev.langchain4j.observability.api.event.AiServiceEvent
Packages that use AiServiceEvent
Package
Description
-
Uses of AiServiceEvent in dev.langchain4j.observability.api
Methods in dev.langchain4j.observability.api with type parameters of type AiServiceEventModifier and TypeMethodDescription<T extends AiServiceEvent>
voidAiServiceListenerRegistrar.fireEvent
(T event) Fires the given event to all registeredAiServiceListener
s.<T extends AiServiceEvent>
voidDefaultAiServiceListenerRegistrar.fireEvent
(T event) Fires the given event to all registeredAiServiceListener
s.<T extends AiServiceEvent>
voidAiServiceListenerRegistrar.register
(AiServiceListener<T> listener) Registers a listener to receiveAiServiceEvent
notifications.<T extends AiServiceEvent>
voidDefaultAiServiceListenerRegistrar.register
(AiServiceListener<T> listener) Registers a listener to receiveAiServiceEvent
notifications.<T extends AiServiceEvent>
voidAiServiceListenerRegistrar.unregister
(AiServiceListener<T> listener) Unregisters a previously registeredAiServiceListener
, stopping it from receiving furtherAiServiceEvent
notifications.<T extends AiServiceEvent>
voidDefaultAiServiceListenerRegistrar.unregister
(AiServiceListener<T> listener) Unregisters a previously registeredAiServiceListener
, stopping it from receiving furtherAiServiceEvent
notifications. -
Uses of AiServiceEvent in dev.langchain4j.observability.api.event
Classes in dev.langchain4j.observability.api.event with type parameters of type AiServiceEventModifier and TypeClassDescriptionstatic class
AiServiceEvent.Builder<T extends AiServiceEvent>
An abstract base class for building instances of types that extendAiServiceEvent
.Subinterfaces of AiServiceEvent in dev.langchain4j.observability.api.eventModifier and TypeInterfaceDescriptioninterface
Represents an event that occurs upon the completion of an invocation.interface
Represents an event that occurs when an AI Service invocation fails.interface
Invoked when response from aChatModel
is received.interface
Called when an LLM invocation has started.interface
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.interface
Represents an event that is triggered upon the execution of an input guardrail validation.interface
Represents an event executed during the output guardrail validation process.interface
Invoked after the tool is executed.Methods in dev.langchain4j.observability.api.event with type parameters of type AiServiceEventModifier and TypeMethodDescription<T extends AiServiceEvent>
Class<T> AiServiceEvent.eventClass()
Retrieves the class type of the event, representing the specific category of the AI Service invocation event.<T extends AiServiceEvent>
AiServiceEvent.Builder<T> AiServiceEvent.toBuilder()
Creates a new builder instance initialized with the properties of thisAiServiceEvent
. -
Uses of AiServiceEvent in dev.langchain4j.observability.api.listener
Classes in dev.langchain4j.observability.api.listener with type parameters of type AiServiceEventModifier and TypeInterfaceDescriptioninterface
AiServiceListener<T extends AiServiceEvent>
AAiServiceEvent
listener that listens for -
Uses of AiServiceEvent in dev.langchain4j.observability.event
Classes in dev.langchain4j.observability.event that implement AiServiceEventModifier and TypeClassDescriptionclass
class
Default implementation ofAiServiceCompletedEvent
.class
Default implementation ofAiServiceErrorEvent
.class
Default implementation ofAiServiceResponseReceivedEvent
.class
Default implementation ofAiServiceStartedEvent
.class
DefaultGuardrailExecutedEvent<P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,
R>, E extends GuardrailExecutedEvent<P, R, G>> Represents an event that is executed when a guardrail validation occurs.class
Default implementation ofInputGuardrailExecutedEvent
.class
Default implementation ofOutputGuardrailExecutedEvent
.class
Default implementation ofToolExecutedEvent
. -
Uses of AiServiceEvent in dev.langchain4j.service
Methods in dev.langchain4j.service with type parameters of type AiServiceEventModifier and TypeMethodDescription<I extends AiServiceEvent>
AiServices<T> AiServices.registerListener
(AiServiceListener<I> listener) Registers anAiServiceListener
listener for AI service events for this AI Service.<I extends AiServiceEvent>
AiServices<T> AiServices.unregisterListener
(AiServiceListener<I> listener) Unregisters anAiServiceListener
listener for AI service events for this AI Service.