Package io.agentscope.core.memory.mem0
Enum Class Mem0ApiType
- All Implemented Interfaces:
Serializable,Comparable<Mem0ApiType>,Constable
Enumeration of Mem0 API deployment types.
Mem0 provides two deployment options with different API endpoints and authentication:
- PLATFORM: Official cloud service with endpoints /v1/memories/ and /v2/memories/search/,
using
Authorization: Token <apiKey>header - SELF_HOSTED: Self-deployed service with endpoints /memories and /search,
using
X-API-Key: <apiKey>header
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlatform Mem0 (default) - official cloud service.Self-hosted Mem0 - user-deployed service. -
Method Summary
Modifier and TypeMethodDescriptionstatic Mem0ApiTypefromString(String value) Parses a string to Mem0ApiType (case-insensitive).static Mem0ApiTypeReturns the enum constant of this class with the specified name.static Mem0ApiType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLATFORM
Platform Mem0 (default) - official cloud service. -
SELF_HOSTED
Self-hosted Mem0 - user-deployed service.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Parses a string to Mem0ApiType (case-insensitive).- Parameters:
value- String value to parse- Returns:
- Corresponding Mem0ApiType, or PLATFORM if value is null/empty/invalid
-