Package io.agentscope.core.memory.mem0
Class Mem0SearchResult
java.lang.Object
io.agentscope.core.memory.mem0.Mem0SearchResult
Represents a single memory search result from Mem0 v2 API.
Each search result contains:
- The memory text content
- Unique identifier for the memory
- User identifier
- Metadata associated with the memory
- Categories for classification
- Immutability flag
- Optional expiration date
- Creation and update timestamps
Results are typically ordered by relevance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getScore()Gets the relevance score.Gets the structured temporal attributes.voidsetCategories(List<String> categories) voidsetCreatedAt(OffsetDateTime createdAt) voidsetExpirationDate(OffsetDateTime expirationDate) voidvoidsetImmutable(Boolean immutable) voidvoidsetMetadata(Map<String, Object> metadata) voidSets the relevance score.voidsetStructuredAttributes(Map<String, Object> structuredAttributes) Sets the structured temporal attributes.voidsetUpdatedAt(OffsetDateTime updatedAt) voidtoString()
-
Constructor Details
-
Mem0SearchResult
public Mem0SearchResult()Default constructor for Jackson.
-
-
Method Details
-
getId
-
setId
-
getMemory
-
setMemory
-
getUserId
-
setUserId
-
getMetadata
-
setMetadata
-
getCategories
-
setCategories
-
getImmutable
-
setImmutable
-
getExpirationDate
-
setExpirationDate
-
getCreatedAt
-
setCreatedAt
-
getUpdatedAt
-
setUpdatedAt
-
getScore
Gets the relevance score.- Returns:
- The relevance score
-
setScore
Sets the relevance score.- Parameters:
score- The relevance score
-
getStructuredAttributes
Gets the structured temporal attributes.- Returns:
- The structured attributes map
-
setStructuredAttributes
Sets the structured temporal attributes.- Parameters:
structuredAttributes- The structured attributes map
-
toString
-