Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m4s
- 完善资讯子图nodes.py:优化format_result的展示效果 - 创建资讯子图API调用工具:api_client.py - 更新资讯子图__init__.py,导出所有模块和API客户端 - 所有功能已通过测试验证
47 lines
791 B
Python
47 lines
791 B
Python
"""
|
|
资讯子图 - 完善版
|
|
News Analysis Subgraph Module - Complete
|
|
"""
|
|
|
|
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
|
|
)
|
|
from .api_client import news_api, NewsAPIClient
|
|
|
|
__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",
|
|
|
|
# API
|
|
"news_api",
|
|
"NewsAPIClient"
|
|
]
|