Class CassandraChatMemoryConfig.Builder
java.lang.Object
org.springframework.ai.chat.memory.CassandraChatMemoryConfig.Builder
- Enclosing class:
- CassandraChatMemoryConfig
-
Method Summary
Modifier and TypeMethodDescriptionaddContactPoint
(InetSocketAddress contactPoint) build()
withChatExchangeToPrimaryKeyTranslator
(CassandraChatMemoryConfig.SessionIdToPrimaryKeysTranslator primaryKeyTranslator) withClusteringKeys
(List<CassandraChatMemoryConfig.SchemaColumn> clusteringKeys) withCqlSession
(com.datastax.oss.driver.api.core.CqlSession session) withKeyspaceName
(String keyspace) withLocalDatacenter
(String localDC) withPartitionKeys
(List<CassandraChatMemoryConfig.SchemaColumn> partitionKeys) withTableName
(String table) withTimeToLive
(Duration timeToLive) How long are messages kept forwithUserColumnName
(String name)
-
Method Details
-
withCqlSession
public CassandraChatMemoryConfig.Builder withCqlSession(com.datastax.oss.driver.api.core.CqlSession session) -
addContactPoint
-
withLocalDatacenter
-
withKeyspaceName
-
withTableName
-
withPartitionKeys
public CassandraChatMemoryConfig.Builder withPartitionKeys(List<CassandraChatMemoryConfig.SchemaColumn> partitionKeys) -
withClusteringKeys
public CassandraChatMemoryConfig.Builder withClusteringKeys(List<CassandraChatMemoryConfig.SchemaColumn> clusteringKeys) -
withAssistantColumnName
-
withUserColumnName
-
withTimeToLive
How long are messages kept for -
disallowSchemaChanges
-
withChatExchangeToPrimaryKeyTranslator
public CassandraChatMemoryConfig.Builder withChatExchangeToPrimaryKeyTranslator(CassandraChatMemoryConfig.SessionIdToPrimaryKeysTranslator primaryKeyTranslator) -
build
-