"""Pinterest 并发生成流水线节点 0/3:初始化简报池(pinterest_init)。 创建 PinterestPipeline(简报池 + 后台并发生成线程),存 state["pinterest_pipeline"], 供 pinterest_analyze 推送简报、pinterest_finalize 收尾。 """ from typing import Any, Dict from graph.validate import with_fallback @with_fallback("pinterest_init") def pinterest_init_node(state: Dict[str, Any]) -> Dict[str, Any]: from graph.pinterest_pipeline import PinterestPipeline pipe = PinterestPipeline(state) return {"pinterest_pipeline": pipe}