优化输出
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,9 @@ Contact 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 ContactState
from .state import ContactState, ContactAction, Contact
from .api_client import ContactAPIClient
@@ -121,11 +120,12 @@ def create_contact_nodes(contact_api: ContactAPIClient):
async def format_result(state: ContactState) -> ContactState:
"""
格式化结果节点(使用公共工具
格式化结果节点(使用全局 Formatter
"""
state.current_phase = "formatting"
md = MarkdownFormatter()
fmt = get_formatter()
md = fmt.md
output_lines = []
output_lines.append("┌───────────────────────────────────┐")