Storing & Retrieving Memory
Overview
Method: short_memory_create()
short_memory_create()user_uuid = "user123"
memory_context = {
"context_entity_id": "chatbot",
"context_id": "session1",
"memory_id": "msg001"
}
memory = {
"query_text": "Hello!",
"response_text": "Hi there! How can I help you?",
"time": "2025-02-05T12:00:00Z",
"cache_ttl": 3600
}
response = memory_lake.short_memory_create(user_uuid, memory_context, memory)
print(response)Retrieving Memory
Last updated