Class CoherenceChatMemoryStore.Builder
java.lang.Object
dev.langchain4j.store.memory.chat.coherence.CoherenceChatMemoryStore.Builder
- Enclosing class:
CoherenceChatMemoryStore
A builder to create
CoherenceChatMemoryStore instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aCoherenceChatMemoryStorefrom the state in this builder.Set the name of theNamedMapthat will hold thedocument chunks.session(com.tangosol.net.Session session) Set theSessionto use to obtain the document chunkNamedMap.Set the name of theSessionto use to obtain the document chunkNamedMap.
-
Constructor Details
-
Builder
protected Builder()Create aCoherenceChatMemoryStore.Builder.
-
-
Method Details
-
name
Set the name of theNamedMapthat will hold thedocument chunks.- Parameters:
name- the name of theNamedMapthat will hold thedocument chunks- Returns:
- this builder for fluent method calls
-
session
Set the name of theSessionto use to obtain the document chunkNamedMap.- Parameters:
sessionName- the session name- Returns:
- this builder for fluent method calls
-
session
Set theSessionto use to obtain the document chunkNamedMap.- Parameters:
session- theSessionto use- Returns:
- this builder for fluent method calls
-
build
Build aCoherenceChatMemoryStorefrom the state in this builder.- Returns:
- a new instance of a
CoherenceChatMemoryStore
-