This commit is contained in:
46
backend/app/subgraphs/news_analysis/__init__.py
Normal file
46
backend/app/subgraphs/news_analysis/__init__.py
Normal file
@@ -0,0 +1,46 @@
|
||||
"""
|
||||
资讯子图 - 完善版
|
||||
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"
|
||||
]
|
||||
Reference in New Issue
Block a user