This commit is contained in:
@@ -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("┌───────────────────────────────────┐")
|
||||
|
||||
Reference in New Issue
Block a user