Schemas
ChatRequest
ChatRequest
- objectExample:
{"user_id":"user123","query":"What is the latest update?"}
Properties:user_id
mixedUser IdUser ID for the requestExample:"user123"
query
stringRequiredQueryChat query message.Example:"What is the latest update?"
ChatResponse
ChatResponse
Response model for chat operations.
- objectExample:
{"code":200,"message":"Operation successful","data":"string"}
Properties:code
integerCodeResponse status codeExample:200
message
stringRequiredMessageResponse messageExample:"Operation successful"
data
mixedDataResponse dataExample:"string"
ConfigResponse
ConfigResponse
Response model for configuration endpoint.
- objectExample:
{"code":200,"message":"Operation successful","data":null}
Properties:code
integerCodeResponse status codeExample:200
message
stringRequiredMessageResponse messageExample:"Operation successful"
data
nullDataResponse dataExample:null
CubeShare
CubeShare
- objectExample:
{"user_id":"user123","target_user_id":"user456"}
Properties:user_id
mixedUser IdUser ID for the requestExample:"user123"
target_user_id
stringRequiredTarget User IdTarget user ID to share withExample:"user456"
HTTPValidationError
HTTPValidationError
- objectExample:
{"detail":[{"loc":["string"],"msg":"string","type":"string"}]}
Properties:detail
arrayDetailExample:[{"loc":["string"],"msg":"string","type":"string"}]
Items:- objectValidationErrorExample:
{"loc":["string"],"msg":"string","type":"string"}
LLMConfigFactory
LLMConfigFactory
Factory class for creating LLM configurations.
- objectExample:
{"model_schema":"NOT_SET","backend":"string","config":{}}
Additional Properties:false
Properties:model_schema
stringModel SchemaSchema for configuration. This value will be automatically set.Example:"NOT_SET"
backend
stringRequiredBackendBackend for LLMExample:"string"
config
objectRequiredConfigConfiguration for the LLM backendExample:{}
Additional Properties:true
MOSConfig
MOSConfig
- objectExample:
{"model_schema":"NOT_SET","user_id":"root","session_id":"0ce84b9c-0615-4b9d-83dd-fba50537d5d3","chat_model":{"model_schema":"NOT_SET","backend":"string","config":{}},"mem_reader":{"model_schema":"NOT_SET","backend":"string","config":{}},"mem_scheduler":{"model_schema":"NOT_SET","backend":"string","config":{}},"user_manager":{"backend":"sqlite","config":{}},"max_turns_window":15,"top_k":5,"enable_textual_memory":true,"enable_activation_memory":false,"enable_parametric_memory":false,"enable_mem_scheduler":false,"PRO_MODE":false}
Additional Properties:false
Properties:model_schema
stringModel SchemaSchema for configuration. This value will be automatically set.Example:"NOT_SET"
user_id
stringUser IdUser ID for the MOS. This is used to distinguish between different users' memories.Example:"root"
session_id
stringSession IdSession ID for the MOS. This is used to distinguish between different dialogueExample:"0ce84b9c-0615-4b9d-83dd-fba50537d5d3"
chat_model
objectLLMConfigFactoryFactory class for creating LLM configurations.Example:{"model_schema":"NOT_SET","backend":"string","config":{}}
Additional Properties:false
mem_reader
objectMemReaderConfigFactoryFactory class for creating MemReader configurations.Example:{"model_schema":"NOT_SET","backend":"string","config":{}}
Additional Properties:false
mem_scheduler
mixedMemory scheduler configuration for managing memory operationsExample:{"model_schema":"NOT_SET","backend":"string","config":{}}
user_manager
objectUserManagerConfigFactoryFactory for user manager configurations.Example:{"backend":"sqlite","config":{}}
max_turns_window
integerMax Turns WindowMaximum number of turns to keep in the conversation historyExample:15
top_k
integerTop KMaximum number of memories to retrieve for each queryExample:5
enable_textual_memory
booleanEnable Textual MemoryEnable textual memory for the MemChatExample:true
enable_activation_memory
booleanEnable Activation MemoryEnable activation memory for the MemChatExample:false
enable_parametric_memory
booleanEnable Parametric MemoryEnable parametric memory for the MemChatExample:false
enable_mem_scheduler
booleanEnable Mem SchedulerEnable memory scheduler for automated memory managementExample:false
PRO_MODE
booleanPro ModeEnable PRO mode for complex query decompositionExample:false
MemCubeRegister
MemCubeRegister
- objectExample:
{"user_id":"user123","mem_cube_name_or_path":"/path/to/cube","mem_cube_id":"cube123"}
Properties:user_id
mixedUser IdUser ID for the requestExample:"user123"
mem_cube_name_or_path
stringRequiredMem Cube Name Or PathName or path of the MemCube to register.Example:"/path/to/cube"
mem_cube_id
mixedMem Cube IdID for the MemCubeExample:"cube123"
MemReaderConfigFactory
MemReaderConfigFactory
Factory class for creating MemReader configurations.
- objectExample:
{"model_schema":"NOT_SET","backend":"string","config":{}}
Additional Properties:false
Properties:model_schema
stringModel SchemaSchema for configuration. This value will be automatically set.Example:"NOT_SET"
backend
stringRequiredBackendBackend for MemReaderExample:"string"
config
objectRequiredConfigConfiguration for the MemReader backendExample:{}
Additional Properties:true
MemoryCreate
MemoryCreate
- objectExample:
{"user_id":"user123","messages":[{"content":"Hello","role":"user"}],"mem_cube_id":"cube123","memory_content":"This is a memory content","doc_path":"/path/to/document.txt"}
Properties:user_id
mixedUser IdUser ID for the requestExample:"user123"
messages
mixedMessagesList of messages to store.Example:[{"content":"Hello","role":"user"}]
mem_cube_id
mixedMem Cube IdID of the memory cubeExample:"cube123"
memory_content
mixedMemory ContentContent to store as memoryExample:"This is a memory content"
doc_path
mixedDoc PathPath to document to storeExample:"/path/to/document.txt"
MemoryResponse
MemoryResponse
Response model for memory operations.
- objectExample:
{"code":200,"message":"Operation successful","data":{}}
Properties:code
integerCodeResponse status codeExample:200
message
stringRequiredMessageResponse messageExample:"Operation successful"
data
mixedDataResponse dataExample:{}
Message
Message
- objectExample:
{"role":"user","content":"Hello, how can I help you?"}
Properties:role
stringRequiredRoleRole of the message (user or assistant).Example:"user"
content
stringRequiredContentMessage content.Example:"Hello, how can I help you?"
SchedulerConfigFactory
SchedulerConfigFactory
Factory class for creating scheduler configurations.
- objectExample:
{"model_schema":"NOT_SET","backend":"string","config":{}}
Additional Properties:false
Properties:model_schema
stringModel SchemaSchema for configuration. This value will be automatically set.Example:"NOT_SET"
backend
stringRequiredBackendBackend for schedulerExample:"string"
config
objectRequiredConfigConfiguration for the scheduler backendExample:{}
Additional Properties:true
SearchRequest
SearchRequest
- objectExample:
{"user_id":"user123","query":"How to implement a feature?","install_cube_ids":["cube123","cube456"]}
Properties:user_id
mixedUser IdUser ID for the requestExample:"user123"
query
stringRequiredQuerySearch query.Example:"How to implement a feature?"
install_cube_ids
mixedInstall Cube IdsList of cube IDs to search inExample:["cube123","cube456"]
SearchResponse
SearchResponse
Response model for search operations.
- objectExample:
{"code":200,"message":"Operation successful","data":{}}
Properties:code
integerCodeResponse status codeExample:200
message
stringRequiredMessageResponse messageExample:"Operation successful"
data
mixedDataResponse dataExample:{}
SimpleResponse
SimpleResponse
Simple response model for operations without data return.
- objectExample:
{"code":200,"message":"Operation successful","data":null}
Properties:code
integerCodeResponse status codeExample:200
message
stringRequiredMessageResponse messageExample:"Operation successful"
data
nullDataResponse dataExample:null
UserCreate
UserCreate
- objectExample:
{"user_id":"user123","user_name":"john_doe","role":"user"}
Properties:user_id
stringRequiredUser IdUser IDExample:"user123"
user_name
mixedUser NameName of the userExample:"john_doe"
role
stringRoleRole of the userExample:"user"
UserListResponse
UserListResponse
Response model for user list operations.
- objectExample:
{"code":200,"message":"Operation successful","data":[null]}
Properties:code
integerCodeResponse status codeExample:200
message
stringRequiredMessageResponse messageExample:"Operation successful"
data
mixedDataResponse dataExample:[null]
UserManagerConfigFactory
UserManagerConfigFactory
Factory for user manager configurations.
- objectExample:
{"backend":"sqlite","config":{}}
Properties:backend
stringBackendBackend for user managerExample:"sqlite"
config
objectConfigConfiguration for the user manager backendExample:{}
Additional Properties:true
UserResponse
UserResponse
Response model for user operations.
- objectExample:
{"code":200,"message":"Operation successful","data":{}}
Properties:code
integerCodeResponse status codeExample:200
message
stringRequiredMessageResponse messageExample:"Operation successful"
data
mixedDataResponse dataExample:{}
ValidationError
ValidationError
- objectExample:
{"loc":["string"],"msg":"string","type":"string"}
Properties:loc
arrayRequiredLocationExample:["string"]
Items:- mixedExample:
"string"
msg
stringRequiredMessageExample:"string"
type
stringRequiredError TypeExample:"string"