Uses of Interface
dev.langchain4j.observability.api.listener.AiServiceListener
Packages that use AiServiceListener
Package
Description
-
Uses of AiServiceListener in dev.langchain4j.observability.api
Methods in dev.langchain4j.observability.api with parameters of type AiServiceListenerModifier and TypeMethodDescriptiondefault voidAiServiceListenerRegistrar.register(AiServiceListener<?>... listeners) Registers one or moreAiServiceListenerinstances to receiveAiServiceEventnotifications.<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.default voidAiServiceListenerRegistrar.unregister(AiServiceListener<?>... listeners) Unregisters one or moreAiServiceListenerinstances 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.Method parameters in dev.langchain4j.observability.api with type arguments of type AiServiceListenerModifier and TypeMethodDescriptiondefault voidAiServiceListenerRegistrar.register(Iterable<? extends AiServiceListener<?>> listeners) Registers a collection ofAiServiceListenerinstances to receiveAiServiceEventnotifications.default voidAiServiceListenerRegistrar.unregister(Iterable<? extends AiServiceListener<?>> listeners) Unregisters a collection ofAiServiceListenerinstances to receiveAiServiceEventnotifications. -
Uses of AiServiceListener in dev.langchain4j.observability.api.listener
Subinterfaces of AiServiceListener in dev.langchain4j.observability.api.listenerModifier and TypeInterfaceDescriptioninterfaceA listener forAiServiceCompletedEvent, which represents an event that occurs upon the completion of an AI Service invocation.interfaceA listener forAiServiceErrorEvent, which represents an event that occurs when an AI Service invocation fails.interfaceA listener forAiServiceResponseReceivedEvent, which represents an event that occurs when a response from a large language model (LLM) is received.interfaceA listener forAiServiceStartedEvent, which represents an event that occurs when an AI Service invocation starts.interfaceGuardrailExecutedListener<E extends GuardrailExecutedEvent<P,R, G>, P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P, R>> Represents a listener for events of typeGuardrailExecutedEvent, which are triggered when a guardrail validation is executed.interfaceA specialized listener interface for handling events of typeInputGuardrailExecutedEvent, which are triggered upon the execution of input guardrail validations.interfaceAn event listener specifically designed to handleOutputGuardrailExecutedEvent.interfaceA listener forToolExecutedEvent, which represents an event that occurs after a tool is executed within an AI Service invocation. -
Uses of AiServiceListener in dev.langchain4j.service
Methods in dev.langchain4j.service with parameters of type AiServiceListenerModifier and TypeMethodDescription<I extends AiServiceEvent>
AiServices<T> AiServices.registerListener(AiServiceListener<I> listener) Registers anAiServiceListenerlistener for AI service events for this AI Service.AiServices.registerListeners(AiServiceListener<?>... listeners) Registers one or more invocation event listeners to the AI service.<I extends AiServiceEvent>
AiServices<T> AiServices.unregisterListener(AiServiceListener<I> listener) Unregisters anAiServiceListenerlistener for AI service events for this AI Service.AiServices.unregisterListeners(AiServiceListener<?>... listeners) Unregisters one or more invocation event listeners from the AI service.Method parameters in dev.langchain4j.service with type arguments of type AiServiceListenerModifier and TypeMethodDescriptionAiServices.registerListeners(Collection<? extends AiServiceListener<?>> listeners) Registers one or more invocation event listeners to the AI service.AiServices.unregisterListeners(Collection<? extends AiServiceListener<?>> listeners) Unregisters one or more invocation event listeners to the AI service.