优化输出
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 6m6s

This commit is contained in:
2026-05-09 01:51:18 +08:00
parent b30f7b00a7
commit 4c119073bc
18 changed files with 973 additions and 2941 deletions

View File

@@ -6,8 +6,7 @@ News Analysis Subgraph Nodes - Using Common Tools
from typing import Dict, Any
from datetime import datetime
# 公共工具
from backend.app.core import MarkdownFormatter
from backend.app.core import get_formatter
from .state import (
NewsAnalysisState,
@@ -104,11 +103,12 @@ def generate_report(state: NewsAnalysisState) -> NewsAnalysisState:
def format_result(state: NewsAnalysisState) -> NewsAnalysisState:
"""
格式化结果节点(使用公共工具
格式化结果节点(使用全局 Formatter
"""
state.current_phase = "formatting"
md = MarkdownFormatter()
fmt = get_formatter()
md = fmt.md
output_lines = []
output_lines.append("┌───────────────────────────────────┐")