Annotation Interface Ai.ChatMemoryWindow
- Enclosing class:
Ai
@Target(TYPE)
@Retention(RUNTIME)
@Deprecated(since="4.4.0",
forRemoval=true)
public static @interface Ai.ChatMemoryWindow
Deprecated, for removal: This API element is subject to removal in a future version.
Annotation to specify a
MessageWindowChatMemory for the service.
This annotation is mutually exclusive with Ai.ChatMemory.-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionintDeprecated, for removal: This API element is subject to removal in a future version.The window of the chat memory. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Id of the chat memory window, defaults toService.Named.DEFAULT_NAME.Deprecated, for removal: This API element is subject to removal in a future version.Name qualifier ofChatMemoryStore, defaults to default of Lanchain4j (in-memory store).
-
Element Details
-
value
int valueDeprecated, for removal: This API element is subject to removal in a future version.The window of the chat memory.- Returns:
- number of messages to keep in the chat window
-
id
String idDeprecated, for removal: This API element is subject to removal in a future version.Id of the chat memory window, defaults toService.Named.DEFAULT_NAME.- Returns:
- id of the chat memory window
- Default:
"@default"
-
store
String storeDeprecated, for removal: This API element is subject to removal in a future version.Name qualifier ofChatMemoryStore, defaults to default of Lanchain4j (in-memory store).- Returns:
- name qualifier of chat memory store
- Default:
"@default"
-
Ai.ChatMemoryProviderinstead.