POD 趋势感知 Agent:缓存热点模式 + 三图合成 + 热点去重/风格去重 + review 兜底
- 缓存热点批量流程(有采集缓存不触发 Google) - 简报不足直接从采集缓存生成(轻量补齐) - 三图合成(模特/印花/底图)+ 底图压缩 <2MB - 热点去重→风格去重自动切换 + 不适合类目 review 兜底 - 透明背景(background=transparent)+ 提示词清洗(敏感词/背景描述) - 任务前 basemap 校验 + 模板国家校验 + 模特任务级分配
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
"""静态策略:直接使用 configs/countries/<country>.yaml 里写死的种子词,不做任何动态生成。"""
|
||||
from typing import Any, Dict, List
|
||||
|
||||
from .base import SeedStrategy
|
||||
|
||||
|
||||
class StaticStrategy(SeedStrategy):
|
||||
name = "static"
|
||||
|
||||
def resolve(
|
||||
self,
|
||||
country: str,
|
||||
cc: Dict[str, Any],
|
||||
context: Dict[str, Any],
|
||||
llm_backend: Any = None,
|
||||
) -> Dict[str, Any]:
|
||||
style = list((cc.get("style", {}) or {}).get("seeds", []) or [])
|
||||
related = list((cc.get("related", {}) or {}).get("seed_keywords", []) or [])
|
||||
return {
|
||||
"style_seeds": style,
|
||||
"related_seeds": related,
|
||||
"dynamic": False,
|
||||
}
|
||||
Reference in New Issue
Block a user