66from pydantic import ConfigDict , Field , field_validator , model_validator
77
88from memos .configs .base import BaseConfig
9- from memos .mem_scheduler .modules .schemas import (
9+ from memos .mem_scheduler .modules .misc import DictConversionMixin
10+ from memos .mem_scheduler .schemas .general_schemas import (
1011 BASE_DIR ,
1112 DEFAULT_ACT_MEM_DUMP_PATH ,
1213 DEFAULT_CONSUME_INTERVAL_SECONDS ,
1314 DEFAULT_THREAD__POOL_MAX_WORKERS ,
14- DictConversionMixin ,
1515)
1616
1717
@@ -21,6 +21,7 @@ class BaseSchedulerConfig(BaseConfig):
2121 top_k : int = Field (
2222 default = 10 , description = "Number of top candidates to consider in initial retrieval"
2323 )
24+ # TODO: The 'top_n' field is deprecated and will be removed in future versions.
2425 top_n : int = Field (default = 5 , description = "Number of final results to return after processing" )
2526 enable_parallel_dispatch : bool = Field (
2627 default = True , description = "Whether to enable parallel message processing using thread pool"
@@ -48,7 +49,7 @@ class GeneralSchedulerConfig(BaseSchedulerConfig):
4849 default = 300 , description = "Interval in seconds for updating activation memory"
4950 )
5051 context_window_size : int | None = Field (
51- default = 5 , description = "Size of the context window for conversation history"
52+ default = 10 , description = "Size of the context window for conversation history"
5253 )
5354 act_mem_dump_path : str | None = Field (
5455 default = DEFAULT_ACT_MEM_DUMP_PATH , # Replace with DEFAULT_ACT_MEM_DUMP_PATH
0 commit comments