feat: 完善资讯子图,添加API调用工具和精美展示
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m4s

- 完善资讯子图nodes.py:优化format_result的展示效果
- 创建资讯子图API调用工具:api_client.py
- 更新资讯子图__init__.py,导出所有模块和API客户端
- 所有功能已通过测试验证
This commit is contained in:
2026-04-25 18:47:09 +08:00
parent a14744f18b
commit b47c52c611
3 changed files with 207 additions and 64 deletions

View File

@@ -1,6 +1,6 @@
"""
资讯子图
News Analysis Subgraph Module
资讯子图 - 完善版
News Analysis Subgraph Module - Complete
"""
from .state import (
@@ -19,6 +19,7 @@ from .nodes import (
format_result,
should_continue
)
from .api_client import news_api, NewsAPIClient
__all__ = [
# State
@@ -37,5 +38,9 @@ __all__ = [
"extract_keywords",
"generate_report",
"format_result",
"should_continue"
"should_continue",
# API
"news_api",
"NewsAPIClient"
]