project_name: "宏观经济月度分析报告" version: "2.0" template: "macro_analysis_template.pptx" output_dir: "../output" params: default_year: 2026 default_quarter: "Q2" theme: "professional" global_context: report_month: "2026-05" author: "宏观研究组" anchors: - name: "text_report_period" type: "text_replace" template: "宏观经济月度分析 - {report_month}" - name: "text_llm_summary" type: "ai_text_generate" prompt_template: | 基于以下数据:{all_data} 请用专业分析师的口吻总结本月市场趋势,限200字以内。 - name: "chart_gdp" type: "native_chart_update" plugin: "gdp_chart" chart_type: "line" fallback: "gdp_fallback.png" - name: "chart_cpi" type: "native_chart_update" plugin: "cpi_chart" chart_type: "line_markers" - name: "chart_employment" type: "native_chart_update_or_image" script: "scripts/employment_table.py" chart_type: "column" - name: "table_trade" type: "native_table_update" connector: "sql" query: "SELECT month, exports, imports FROM trade_data WHERE year = {params.year}" slide_conditions: - slide_anchor: "slide_risk_warning" condition: "unemployment_rate > 5.1" action: "show" alternate: "hide" - condition: "{gdp_growth} < 5.0" action: "insert_slide" template: "templates/slowdown_warning.pptx" position: 5 connectors: mysql_stats: type: "mysql" host: "localhost" port: 3306 database: "macro_stats" username: "readonly" api_nbs: type: "rest_api" base_url: "https://api.stats.gov.cn/v1/" timeout: 30 ai: provider: "mock" api_key: "" model: "qwen-turbo" cache_ttl: 3600 scheduler: cron: "0 8 1 * *" notify_channels: - type: "wechat_work" webhook: "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx" logging: level: "INFO" file: "../logs/ppt_generator_v2.log" rotation: "10 MB"