Spring AI Version: 1.0.0-RC1

chatMemory.get(conversationId) returns

[ { "messageType": "USER", "metadata": { "CassandraChatMemoryRepository_message_timestamp": 1747564565.737000000, "messageType": "USER" }, "media": [], "text": "SSE development using springboot?" }, { "messageType": "ASSISTANT", "metadata": { "CassandraChatMemoryRepository_message_timestamp": 1747564594.962000000, "messageType": "ASSISTANT" }, "toolCalls": [], "media": [], "text": "..." } ]

where

var chatMemory = MessageWindowChatMemory.builder() .chatMemoryRepository(this.cassandraChatMemoryRepository).build();

I did look into ai_chat_memory and found something different. By different I meant values of msg_timestamp have three more digits, similar to:

[{msg_timestamp:1747579713040,msg_type:'USER',msg_content:'Hello'}, {msg_timestamp:1747579718473,msg_type:'ASSISTANT',msg_content:'Hello'}]

@michaelsembwever

Comment From: michaelsembwever

ref: https://github.com/spring-projects/spring-ai/pull/3097#discussion_r2094480098

Comment From: michaelsembwever

By default the Instant is serialized as the epoch value (seconds and nanoseconds in a single number). ref: https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html