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 registeredAiServiceListeners.<T extends AiServiceEvent>
voidDefaultAiServiceListenerRegistrar.fireEvent(T event) Fires the given event to all registeredAiServiceListeners.<T extends AiServiceEvent>
voidAiServiceListenerRegistrar.register(AiServiceListener<T> listener) Registers a listener to receiveAiServiceEventnotifications.<T extends AiServiceEvent>
voidDefaultAiServiceListenerRegistrar.register(AiServiceListener<T> listener) Registers a listener to receiveAiServiceEventnotifications.<T extends AiServiceEvent>
voidAiServiceListenerRegistrar.unregister(AiServiceListener<T> listener) Unregisters a previously registeredAiServiceListener, stopping it from receiving furtherAiServiceEventnotifications.<T extends AiServiceEvent>
voidDefaultAiServiceListenerRegistrar.unregister(AiServiceListener<T> listener) Unregisters a previously registeredAiServiceListener, stopping it from receiving furtherAiServiceEventnotifications. -
Uses of AiServiceEvent in dev.langchain4j.observability.api.event
Classes in dev.langchain4j.observability.api.event with type parameters of type AiServiceEventModifier and TypeClassDescriptionstatic classAiServiceEvent.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 TypeInterfaceDescriptioninterfaceRepresents an event that occurs upon the completion of an invocation.interfaceRepresents an event that occurs when an AI Service invocation fails.interfaceInvoked when response from aChatModelis received.interfaceCalled when an LLM invocation has started.interfaceGuardrailExecutedEvent<P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>> Represents an event that is executed when a guardrail validation occurs.interfaceRepresents an event that is triggered upon the execution of an input guardrail validation.interfaceRepresents an event executed during the output guardrail validation process.interfaceInvoked 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 TypeInterfaceDescriptioninterfaceAiServiceListener<T extends AiServiceEvent>AAiServiceEventlistener that listens for -
Uses of AiServiceEvent in dev.langchain4j.observability.event
Classes in dev.langchain4j.observability.event that implement AiServiceEventModifier and TypeClassDescriptionclassclassDefault implementation ofAiServiceCompletedEvent.classDefault implementation ofAiServiceErrorEvent.classDefault implementation ofAiServiceResponseReceivedEvent.classDefault implementation ofAiServiceStartedEvent.classDefaultGuardrailExecutedEvent<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.classDefault implementation ofInputGuardrailExecutedEvent.classDefault implementation ofOutputGuardrailExecutedEvent.classDefault 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 anAiServiceListenerlistener for AI service events for this AI Service.<I extends AiServiceEvent>
AiServices<T> AiServices.unregisterListener(AiServiceListener<I> listener) Unregisters anAiServiceListenerlistener for AI service events for this AI Service.