Annotation Interface MemoryId


@Retention(RUNTIME) @Target(PARAMETER) public @interface MemoryId
The value of a method parameter annotated with @MemoryId will be used to find the memory belonging to that user/conversation.

A parameter annotated with @MemoryId can be of any type, provided it has properly implemented equals() and hashCode() methods.

When MemoryId is used, the ChatMemoryProvider should be configured for the AI service.