Package com.tnsai.rag
Class ChatRetrievalContext.Builder
java.lang.Object
com.tnsai.rag.ChatRetrievalContext.Builder
- Enclosing class:
ChatRetrievalContext
Builder for optional, request-local chat context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()conversationId(String value) Sets the opaque identity of the conversation the turn belongs to.currentEpisode(String value) metadataFilters(Map<String, String> value) scope(RetrievalScope value) simulationState(String value) sourcePaths(Map<String, Path> value) Sets the run-time location of declared sources, by source name.sourceRevision(String value) turnMessage(String value) Sets the raw message of the turn; chat searches it instead of the message the provider renders.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scope
-
scope
-
runId
-
agentName
-
simulationState
-
currentEpisode
-
sourceRevision
-
cancellationToken
-
deadline
-
timeout
-
timeout
-
metadataFilters
-
turnMessage
Sets the raw message of the turn; chat searches it instead of the message the provider renders.- Parameters:
value- the turn message; not blank- Returns:
- this builder
- Since:
- 0.18.6
-
conversationId
Sets the opaque identity of the conversation the turn belongs to.- Parameters:
value- the conversation identity; not blank- Returns:
- this builder
- Since:
- 0.18.6
-
sourcePaths
Sets the run-time location of declared sources, by source name.- Parameters:
value- location by source name; copied- Returns:
- this builder
- Since:
- 0.18.6
-
build
-