Package dev.langchain4j.observability.api.listener
@Experimental
@NullMarked
package dev.langchain4j.observability.api.listener
-
InterfacesClassDescriptionA listener for
AiServiceCompletedEvent
, which represents an event that occurs upon the completion of an AI Service invocation.A listener forAiServiceErrorEvent
, which represents an event that occurs when an AI Service invocation fails.AiServiceListener<T extends AiServiceEvent>AAiServiceEvent
listener that listens forA listener forAiServiceResponseReceivedEvent
, which represents an event that occurs when a response from a large language model (LLM) is received.A listener forAiServiceStartedEvent
, which represents an event that occurs when an AI Service invocation starts.GuardrailExecutedListener<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.A specialized listener interface for handling events of typeInputGuardrailExecutedEvent
, which are triggered upon the execution of input guardrail validations.An event listener specifically designed to handleOutputGuardrailExecutedEvent
.A listener forToolExecutedEvent
, which represents an event that occurs after a tool is executed within an AI Service invocation.