Configure MemOS

Set MemOS configuration.

POST
/
configure
{
  "code": 200,
  "message": "Operation successful",
  "data": null
}

Body

application/json
model_schema
string
default: NOT_SET

Schema for configuration. This value will be automatically set.

user_id
string
default: root

User ID for the MOS. This is used to distinguish between different users' memories.

session_id
string
default: 0ce84b9c-0615-4b9d-83dd-fba50537d5d3

Session ID for the MOS. This is used to distinguish between different dialogue

chat_model
object

Factory class for creating LLM configurations.

Show child attributes
mem_reader
object

Factory class for creating MemReader configurations.

Show child attributes
mem_scheduler
SchedulerConfigFactory·object | null

Memory scheduler configuration for managing memory operations

user_manager
object

Factory for user manager configurations.

Show child attributes
max_turns_window
number
default: 15

Maximum number of turns to keep in the conversation history

top_k
number
default: 5

Maximum number of memories to retrieve for each query

enable_textual_memory
boolean
default: true

Enable textual memory for the MemChat

enable_activation_memory
boolean
default: false

Enable activation memory for the MemChat

enable_parametric_memory
boolean
default: false

Enable parametric memory for the MemChat

enable_mem_scheduler
boolean
default: false

Enable memory scheduler for automated memory management

PRO_MODE
boolean
default: false

Enable PRO mode for complex query decomposition

Response

application/json

Successful Response

Response model for configuration endpoint.

code
number
default: 200

Response status code

Example: 200
message
string
required

Response message

Example: "Operation successful"
data
null

Response data