Interface ChatMemoryConfig
@ConfigRoot(phase=RUN_TIME)
@ConfigMapping(prefix="quarkus.langchain4j.chat-memory")
public interface ChatMemoryConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionConfigures aspects of theMessageWindowChatMemory
which is the defaultChatMemory
setup by the extension.Configures aspects of theTokenWindowChatMemory
which is enabled if thequarkus.langchain4j.chat-memory.type
configuration property is set totoken-window
and if no nd no bean of typeChatMemoryProvider
is present in the application.
-
Method Details
-
memoryWindow
ChatMemoryConfig.MemoryWindow memoryWindow()Configures aspects of theMessageWindowChatMemory
which is the defaultChatMemory
setup by the extension. This only has effect ifquarkus.langchain4j.chat-memory.type
has not been configured (or is configured tomemory-window
) and no bean of typeChatMemoryProvider
is present in the application. -
tokenWindow
ChatMemoryConfig.TokenWindow tokenWindow()Configures aspects of theTokenWindowChatMemory
which is enabled if thequarkus.langchain4j.chat-memory.type
configuration property is set totoken-window
and if no nd no bean of typeChatMemoryProvider
is present in the application.
-