|
@@ -122,6 +122,7 @@ _CONFIG_FILES = {
|
|
|
"rule-packs": "product_documents/规则包/douyin_rule_packs.v1.json",
|
|
"rule-packs": "product_documents/规则包/douyin_rule_packs.v1.json",
|
|
|
"walk-strategy": "product_documents/抖音游走策略/douyin_walk_strategy.v1.json",
|
|
"walk-strategy": "product_documents/抖音游走策略/douyin_walk_strategy.v1.json",
|
|
|
"query-prompts": "product_documents/配置/query_prompts.v1.json",
|
|
"query-prompts": "product_documents/配置/query_prompts.v1.json",
|
|
|
|
|
+ "walk-policy": "tech_documents/数据接口与来源/walk_policy.json",
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -154,6 +155,12 @@ def get_config_query_prompts() -> ConfigFileResponse:
|
|
|
return _config_file_response("query-prompts")
|
|
return _config_file_response("query-prompts")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+@app.get("/config/walk-policy", response_model=ConfigFileResponse)
|
|
|
|
|
+def get_config_walk_policy() -> ConfigFileResponse:
|
|
|
|
|
+ # 返回原始 JSON 不解包 {value,provenance,tbd}:展示层保留拍板留痕,解包由前端做。
|
|
|
|
|
+ return _config_file_response("walk-policy")
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@app.get("/runs/{run_id}/dashboard", response_model=DashboardResponse)
|
|
@app.get("/runs/{run_id}/dashboard", response_model=DashboardResponse)
|
|
|
def get_run_dashboard(run_id: str) -> DashboardResponse:
|
|
def get_run_dashboard(run_id: str) -> DashboardResponse:
|
|
|
_ensure_web_run_exists(run_id)
|
|
_ensure_web_run_exists(run_id)
|