V2.0 五大核心增强: 锚点定位/原生图表/插件架构/WebSocket/LLM智能

This commit is contained in:
2026-05-29 14:14:53 +08:00
parent 5546e5fca1
commit 8618867f92
51 changed files with 3368 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
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"