Class DefaultAiServiceRequestIssuedEvent
java.lang.Object
dev.langchain4j.observability.event.AbstractAiServiceEvent
dev.langchain4j.observability.event.DefaultAiServiceRequestIssuedEvent
- All Implemented Interfaces:
AiServiceEvent, AiServiceRequestIssuedEvent
public class DefaultAiServiceRequestIssuedEvent
extends AbstractAiServiceEvent
implements AiServiceRequestIssuedEvent
Default implementation of
AiServiceRequestIssuedEvent.-
Nested Class Summary
Nested classes/interfaces inherited from interface AiServiceEvent
AiServiceEvent.Builder<T>Nested classes/interfaces inherited from interface AiServiceRequestIssuedEvent
AiServiceRequestIssuedEvent.AiServiceRequestIssuedEventBuilder -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAiServiceRequestIssuedEvent(AiServiceRequestIssuedEvent.AiServiceRequestIssuedEventBuilder builder) -
Method Summary
Modifier and TypeMethodDescriptionrequest()Retrieves the chat request from the AI Service invocation event.Methods inherited from class AbstractAiServiceEvent
invocationContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AiServiceEvent
invocationContextMethods inherited from interface AiServiceRequestIssuedEvent
eventClass, toBuilder
-
Constructor Details
-
DefaultAiServiceRequestIssuedEvent
public DefaultAiServiceRequestIssuedEvent(AiServiceRequestIssuedEvent.AiServiceRequestIssuedEventBuilder builder)
-
-
Method Details
-
request
Description copied from interface:AiServiceRequestIssuedEventRetrieves the chat request from the AI Service invocation event.- Specified by:
requestin interfaceAiServiceRequestIssuedEvent- Returns:
- the
ChatRequestobject containing the request sent to the LLM.
-