Enum Class Mem0ApiType

java.lang.Object
java.lang.Enum<Mem0ApiType>
io.agentscope.core.memory.mem0.Mem0ApiType
All Implemented Interfaces:
Serializable, Comparable<Mem0ApiType>, Constable

public enum Mem0ApiType extends Enum<Mem0ApiType>
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
  • Enum Constant Details

    • PLATFORM

      public static final Mem0ApiType PLATFORM
      Platform Mem0 (default) - official cloud service.
    • SELF_HOSTED

      public static final Mem0ApiType SELF_HOSTED
      Self-hosted Mem0 - user-deployed service.
  • Method Details

    • values

      public static Mem0ApiType[] 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

      public static Mem0ApiType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromString

      public static Mem0ApiType fromString(String value)
      Parses a string to Mem0ApiType (case-insensitive).
      Parameters:
      value - String value to parse
      Returns:
      Corresponding Mem0ApiType, or PLATFORM if value is null/empty/invalid