MCPcopy Create free account
hub / github.com/MemTensor/MemOS / test_general_mem_cube_config

Function test_general_mem_cube_config

tests/configs/test_mem_cube.py:28–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_general_mem_cube_config():
29 check_config_base_class(
30 GeneralMemCubeConfig,
31 factory_fields=["text_mem", "act_mem", "para_mem", "pref_mem"],
32 required_fields=[],
33 optional_fields=["config_filename", "user_id", "cube_id"],
34 reserved_fields=["model_schema"],
35 )
36
37 with open("examples/data/mem_cube_2/config.json") as f:
38 config_data = json.load(f)
39
40 check_config_instantiation_valid(
41 GeneralMemCubeConfig,
42 config_data,
43 )
44
45 config_data["text_mem"]["backend"] = "kv_cache" # Invalid backend for text_mem
46 check_config_instantiation_invalid(GeneralMemCubeConfig, config_data)

Callers

nothing calls this directly

Calls 5

check_config_base_classFunction · 0.90
openFunction · 0.50
loadMethod · 0.45

Tested by

no test coverage detected