2024-11-25 16:27:34 +08:00
|
|
|
from typing import Union
|
|
|
|
|
|
|
|
|
|
from rdagent.core.conf import ExtendedBaseSettings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CoSTEERSettings(ExtendedBaseSettings):
|
|
|
|
|
"""CoSTEER settings, this setting is supposed not to be used directly!!!"""
|
|
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
|
env_prefix = "CoSTEER_"
|
|
|
|
|
|
|
|
|
|
coder_use_cache: bool = False
|
|
|
|
|
"""Indicates whether to use cache for the coder"""
|
|
|
|
|
|
|
|
|
|
max_loop: int = 10
|
|
|
|
|
"""Maximum number of task implementation loops"""
|
|
|
|
|
|
|
|
|
|
fail_task_trial_limit: int = 20
|
|
|
|
|
|
2025-07-16 14:30:17 +08:00
|
|
|
v1_query_former_trace_limit: int = 3
|
|
|
|
|
v1_query_similar_success_limit: int = 3
|
2024-11-25 16:27:34 +08:00
|
|
|
|
|
|
|
|
v2_query_component_limit: int = 1
|
|
|
|
|
v2_query_error_limit: int = 1
|
2025-07-16 14:30:17 +08:00
|
|
|
v2_query_former_trace_limit: int = 3
|
2024-11-25 16:27:34 +08:00
|
|
|
v2_add_fail_attempt_to_latest_successful_execution: bool = False
|
|
|
|
|
v2_error_summary: bool = False
|
|
|
|
|
v2_knowledge_sampler: float = 1.0
|
|
|
|
|
|
|
|
|
|
knowledge_base_path: Union[str, None] = None
|
|
|
|
|
"""Path to the knowledge base"""
|
|
|
|
|
|
|
|
|
|
new_knowledge_base_path: Union[str, None] = None
|
|
|
|
|
"""Path to the new knowledge base"""
|
|
|
|
|
|
2025-07-31 13:06:28 +08:00
|
|
|
enable_filelock: bool = False
|
|
|
|
|
filelock_path: Union[str, None] = None
|
|
|
|
|
|
2025-07-29 14:59:38 +08:00
|
|
|
max_seconds_multiplier: int = 10**6
|
2025-02-26 18:36:51 +08:00
|
|
|
|
2024-11-25 16:27:34 +08:00
|
|
|
|
|
|
|
|
CoSTEER_SETTINGS = CoSTEERSettings()
|