content: /*
   * Copyright 2025 the original author or authors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      https://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package io.agentscope.runtime.engine.memory.dto;
  
  import com.fasterxml.jackson.annotation.JsonProperty;
  import java.util.List;
  import java.util.Map;
  
  public class MemoryItem {
      
      @JsonProperty("id")
      private String id;
      
      @JsonProperty("user_id")
      private String userId;
      
      @JsonProperty("session_id")
      private String sessionId;
      
      @JsonProperty("type")
      private String type;
      
      @JsonProperty("content")
      private List<ContentItem> content;
      
      @JsonProperty("metadata")
      private Map<String, Object> metadata;
      
      @JsonProperty("timestamp")
      private long timestamp;
      
      public MemoryItem() {
          this.timestamp = System.currentTimeMillis();
      }
      
      public String getId() {
          return id;
      }
      
      public void setId(String id) {
          this.id = id;
      }
      
      public String getUserId() {
          return userId;
      }
      
      public void setUserId(String userId) {
          this.userId = userId;
      }
      
      public String getSessionId() {
          return sessionId;
      }
      
      public void setSessionId(String sessionId) {
          this.sessionId = sessionId;
      }
      
      public String getType() {
          return type;
      }
      
      public void setType(String type) {
          this.type = type;
      }
      
      public List<ContentItem> getContent() {
          return content;
      }
      
      public void setContent(List<ContentItem> content) {
          this.content = content;
      }
      
      public Map<String, Object> getMetadata() {
          return metadata;
      }
      
      public void setMetadata(Map<String, Object> metadata) {
          this.metadata = metadata;
      }
      
      public long getTimestamp() {
          return timestamp;
      }
      
      public void setTimestamp(long timestamp) {
          this.timestamp = timestamp;
      }
  }
  