astock-agent/backend/app/llm/strategy_config.py
2026-06-01 21:29:26 +08:00

26 lines
708 B
Python

"""策略配置 stub
策略参数现在直接写在 strategy_selector.py 中。
此模块仅保留 ensure_default_configs (main.py 启动调用) 和
load_active_strategy_profile (selector 调用) 的兼容接口。
"""
import logging
logger = logging.getLogger(__name__)
async def ensure_default_configs() -> None:
"""兼容接口 — 启动时不再需要写策略配置到数据库。"""
pass
async def load_active_strategy_profile(profile):
"""直接返回规则 profile,不再从数据库加载配置覆盖。"""
return profile
async def get_prompt_content(prompt_key: str, default: str) -> str:
"""直接返回默认 prompt,不再从数据库加载。"""
return default