Class ContentRetrieverRequestContext.Builder
java.lang.Object
dev.langchain4j.rag.content.retriever.listener.ContentRetrieverRequestContext.Builder
- Enclosing class:
ContentRetrieverRequestContext
Builder for
ContentRetrieverRequestContext.- Since:
- 1.11.0
-
Method Summary
Modifier and TypeMethodDescriptionattributes(Map<Object, Object> attributes) build()contentRetriever(ContentRetriever contentRetriever) invocationId(UUID invocationId) Sets the id of the AI Service invocation in which the call is made, seeContentRetrieverRequestContext.invocationId()of the context.
-
Method Details
-
query
-
contentRetriever
-
attributes
-
invocationId
Sets the id of the AI Service invocation in which the call is made, seeContentRetrieverRequestContext.invocationId()of the context. LangChain4j sets it for the listeners; set it yourself only when you create the context yourself.- Since:
- 1.24.0
-
build
-