refactor: context_builder 按 slice 拆到 src/llm/slices/ 包
单文件拆分(仅搬迁无逻辑修改): - common.py 共享类型/头信息/_outcome/_is_stats_available - form.py form_slice + _get_form - h2h.py h2h_slice + _get_h2h - stats.py stats_slice(复用 form._get_form) - home_away.py home_away_slice + _get_home_away - standings.py standings_slice - aggregate.py build_context context_builder.py 改为纯 re-export 门面,公开签名不变。 同步修复测试 patch 目标(p0_home_away/h2h_perspective/multi_agent_cutoff) 与 regressions 源码断言(读 slices/*.py)。 全量测试 270 通过。
This commit is contained in:
@@ -206,7 +206,7 @@ class TestBacktestXgNotVisible:
|
||||
|
||||
header = _make_header(match_dt)
|
||||
|
||||
import src.llm.context_builder as cb
|
||||
import src.llm.slices.stats as cb
|
||||
|
||||
async def mock_get_form(db, team_id, before, *, limit=10):
|
||||
# before=cutoff(1月13日),比赛在1月15日,满足 before 条件
|
||||
|
||||
Reference in New Issue
Block a user