This commit is contained in:
@@ -7,10 +7,7 @@ from typing import Dict, Any, List
|
||||
from datetime import datetime
|
||||
import random
|
||||
|
||||
# 公共工具
|
||||
from backend.app.core import (
|
||||
MarkdownFormatter
|
||||
)
|
||||
from backend.app.core import get_formatter
|
||||
|
||||
from .state import (
|
||||
DictionaryState,
|
||||
@@ -172,12 +169,12 @@ def add_to_word_book(state: DictionaryState) -> DictionaryState:
|
||||
|
||||
def format_result(state: DictionaryState) -> DictionaryState:
|
||||
"""
|
||||
格式化结果节点(使用公共工具)
|
||||
生成友好的 Markdown 输出
|
||||
格式化结果节点(使用全局 Formatter)
|
||||
"""
|
||||
state.current_phase = "formatting"
|
||||
|
||||
md = MarkdownFormatter()
|
||||
|
||||
fmt = get_formatter()
|
||||
md = fmt.md
|
||||
output_lines = []
|
||||
|
||||
# 标题
|
||||
|
||||
Reference in New Issue
Block a user