Annotation Interface Ai.ChatMemoryWindow
- Enclosing class:
Ai
Annotation to specify a
MessageWindowChatMemory
for the service.
This annotation is mutually exclusive with Ai.ChatMemory
.-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionId of the chat memory window, defaults toService.Named.DEFAULT_NAME
.Name qualifier ofChatMemoryStore
, defaults to default of Lanchain4j (in-memory store).
-
Element Details
-
value
int valueThe window of the chat memory.- Returns:
- number of messages to keep in the chat window
-
id
String idId of the chat memory window, defaults toService.Named.DEFAULT_NAME
.- Returns:
- id of the chat memory window
- Default:
"@default"
-
store
String storeName qualifier ofChatMemoryStore
, defaults to default of Lanchain4j (in-memory store).- Returns:
- name qualifier of chat memory store
- Default:
"@default"
-