优化输出
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

@@ -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 = []
# 标题