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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build aCoherenceChatMemoryStore
from the state in this builder.Set the name of theNamedMap
that will hold thedocument chunks
.session
(com.tangosol.net.Session session) Set theSession
to use to obtain the document chunkNamedMap
.Set the name of theSession
to use to obtain the document chunkNamedMap
.
-
Constructor Details
-
Builder
protected Builder()Create aCoherenceChatMemoryStore.Builder
.
-
-
Method Details
-
name
Set the name of theNamedMap
that will hold thedocument chunks
.- Parameters:
name
- the name of theNamedMap
that will hold thedocument chunks
- Returns:
- this builder for fluent method calls
-
session
Set the name of theSession
to use to obtain the document chunkNamedMap
.- Parameters:
sessionName
- the session name- Returns:
- this builder for fluent method calls
-
session
Set theSession
to use to obtain the document chunkNamedMap
.- Parameters:
session
- theSession
to use- Returns:
- this builder for fluent method calls
-
build
Build aCoherenceChatMemoryStore
from the state in this builder.- Returns:
- a new instance of a
CoherenceChatMemoryStore
-