Class RetrievalAugmentedEvent.RetrievalAugmentedEventBuilder
java.lang.Object
dev.langchain4j.observability.api.event.AiServiceEvent.Builder<RetrievalAugmentedEvent>
dev.langchain4j.observability.api.event.RetrievalAugmentedEvent.RetrievalAugmentedEventBuilder
- Enclosing interface:
RetrievalAugmentedEvent
public static class RetrievalAugmentedEvent.RetrievalAugmentedEventBuilder
extends AiServiceEvent.Builder<RetrievalAugmentedEvent>
Builder for
RetrievalAugmentedEvent instances.- Since:
- 1.23.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCreates a builder initialized from an existingRetrievalAugmentedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRetrievalAugmentedEvent.Returns the chat message set on this builder, ornullif it is not set.chatMessage(ChatMessage chatMessage) Sets the chat message given to the retrieval augmentor.contents()Returns the contents set on this builder, ornullif they are not set.Sets the retrieved contents.invocationContext(InvocationContext invocationContext) Sets the invocation context.Methods inherited from class AiServiceEvent.Builder
invocationContext
-
Constructor Details
-
RetrievalAugmentedEventBuilder
protected RetrievalAugmentedEventBuilder() -
RetrievalAugmentedEventBuilder
Creates a builder initialized from an existingRetrievalAugmentedEvent.
-
-
Method Details
-
invocationContext
public RetrievalAugmentedEvent.RetrievalAugmentedEventBuilder invocationContext(InvocationContext invocationContext) Sets the invocation context.- Overrides:
invocationContextin classAiServiceEvent.Builder<RetrievalAugmentedEvent>
-
chatMessage
Sets the chat message given to the retrieval augmentor. -
contents
Sets the retrieved contents. -
chatMessage
Returns the chat message set on this builder, ornullif it is not set. -
contents
-
build
Builds aRetrievalAugmentedEvent.- Specified by:
buildin classAiServiceEvent.Builder<RetrievalAugmentedEvent>
-