Files
ailine/backend/app/agent_subgraphs/news_analysis/__init__.py
root a14744f18b
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m5s
feat: 完善词典子图,添加API调用和前端格式化工具
- 完善词典子图:添加生词本功能
- 创建API调用工具:dictionary_api
- 添加前端格式化展示工具:result_formatter.py
- 创建通讯录和资讯子图的基本结构
- 更新主图状态结构,添加MainGraphState
- 添加subgraph_builder.py用于子图集成
2026-04-25 18:29:23 +08:00

42 lines
668 B
Python

"""
资讯子图
News Analysis Subgraph Module
"""
from .state import (
NewsAnalysisState,
NewsAction,
NewsItem,
NewsSource
)
from .graph import build_news_analysis_subgraph
from .nodes import (
parse_intent,
query_news,
analyze_url,
extract_keywords,
generate_report,
format_result,
should_continue
)
__all__ = [
# State
"NewsAnalysisState",
"NewsAction",
"NewsItem",
"NewsSource",
# Graph
"build_news_analysis_subgraph",
# Nodes
"parse_intent",
"query_news",
"analyze_url",
"extract_keywords",
"generate_report",
"format_result",
"should_continue"
]