Files
pod_trend_agent/graph/__init__.py
T
3218485270 f493bde8a9 POD 趋势感知 Agent:缓存热点模式 + 三图合成 + 热点去重/风格去重 + review 兜底
- 缓存热点批量流程(有采集缓存不触发 Google)
- 简报不足直接从采集缓存生成(轻量补齐)
- 三图合成(模特/印花/底图)+ 底图压缩 <2MB
- 热点去重→风格去重自动切换 + 不适合类目 review 兜底
- 透明背景(background=transparent)+ 提示词清洗(敏感词/背景描述)
- 任务前 basemap 校验 + 模板国家校验 + 模特任务级分配
2026-08-22 14:14:01 +08:00

14 lines
711 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""POD 热点抓取 AgentLangGraph 工程化版本)。
架构:
- graph/state.py : 共享状态 AgentState
- graph/validate.py : 节点级兜底(with_fallback+ 数据校验
- graph/sources/ : 数据源可插拔(GoogleTrends / Pinterest ...
- graph/llms/ : LLM 后端可插拔(Mock / OpenAI 兼容 ...
- graph/nodes/ : 6 个流水线节点(fetch/filter/score/screen/prompt_build/compose
- graph/agent.py : 构建并编译 StateGraph,提供 run_country()
每个国家独立处理:prompts/<country>/ 放该国专属提示词与审美规则,
output/<country>/ 放该国产物。节点全部带兜底,单点失败不影响整图。
"""