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 Elements
    Modifier and Type
    Required Element
    Description
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    The window of the chat memory.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Id of the chat memory window, defaults to Service.Named.DEFAULT_NAME.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Name qualifier of ChatMemoryStore, defaults to default of Lanchain4j (in-memory store).
  • Element Details

    • value

      int value
      Deprecated, 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 id
      Deprecated, for removal: This API element is subject to removal in a future version.
      Id of the chat memory window, defaults to Service.Named.DEFAULT_NAME.
      Returns:
      id of the chat memory window
      Default:
      "@default"
    • store

      String store
      Deprecated, for removal: This API element is subject to removal in a future version.
      Name qualifier of ChatMemoryStore, defaults to default of Lanchain4j (in-memory store).
      Returns:
      name qualifier of chat memory store
      Default:
      "@default"