java.lang.Object
com.alibaba.dashscope.applications.agentstudio.common.FlattenResultBase
com.alibaba.dashscope.applications.agentstudio.model.Memory

public class Memory extends FlattenResultBase
One text document inside a memory store, addressed by path.

content appears only in retrieve responses and in list responses with view="full"; create and update never return it. contentSha256 identifies the content revision — pass it back to memories().update() for optimistic concurrency (a mismatch returns 409 memory_precondition_failed_error).

  • Constructor Details

    • Memory

      public Memory()
  • Method Details

    • getId

      public String getId()
    • getType

      public String getType()
    • getMemoryStoreId

      public String getMemoryStoreId()
    • getPath

      public String getPath()
    • getContent

      public String getContent()
    • getContentSha256

      public String getContentSha256()
    • getContentSizeBytes

      public Long getContentSizeBytes()
    • getMemoryVersionId

      public String getMemoryVersionId()
    • getCreatedAt

      public String getCreatedAt()
    • getUpdatedAt

      public String getUpdatedAt()
    • setId

      public void setId(String id)
    • setType

      public void setType(String type)
    • setMemoryStoreId

      public void setMemoryStoreId(String memoryStoreId)
    • setPath

      public void setPath(String path)
    • setContent

      public void setContent(String content)
    • setContentSha256

      public void setContentSha256(String contentSha256)
    • setContentSizeBytes

      public void setContentSizeBytes(Long contentSizeBytes)
    • setMemoryVersionId

      public void setMemoryVersionId(String memoryVersionId)
    • setCreatedAt

      public void setCreatedAt(String createdAt)
    • setUpdatedAt

      public void setUpdatedAt(String updatedAt)
    • toString

      public String toString()
      Overrides:
      toString in class FlattenResultBase
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class FlattenResultBase
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class FlattenResultBase
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class FlattenResultBase