()
| 26 | |
| 27 | |
| 28 | def 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) |
nothing calls this directly
no test coverage detected