Interface ChatMemoryConfig
@ConfigRoot(phase=RUN_TIME)
@ConfigMapping(prefix="quarkus.langchain4j.chat-memory")
public interface ChatMemoryConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionConfigures aspects of theMessageWindowChatMemorywhich is the defaultChatMemorysetup by the extension.Configures aspects of theTokenWindowChatMemorywhich is enabled if thequarkus.langchain4j.chat-memory.typeconfiguration property is set totoken-windowand if no nd no bean of typeChatMemoryProvideris present in the application.
-
Method Details
-
memoryWindow
ChatMemoryConfig.MemoryWindow memoryWindow()Configures aspects of theMessageWindowChatMemorywhich is the defaultChatMemorysetup by the extension. This only has effect ifquarkus.langchain4j.chat-memory.typehas not been configured (or is configured tomemory-window) and no bean of typeChatMemoryProvideris present in the application. -
tokenWindow
ChatMemoryConfig.TokenWindow tokenWindow()Configures aspects of theTokenWindowChatMemorywhich is enabled if thequarkus.langchain4j.chat-memory.typeconfiguration property is set totoken-windowand if no nd no bean of typeChatMemoryProvideris present in the application.
-