diff --git a/backend/app/agent/__init__.py b/backend/app/agent/__init__.py index a5e2eba..3877d7f 100644 --- a/backend/app/agent/__init__.py +++ b/backend/app/agent/__init__.py @@ -2,6 +2,6 @@ Agent 子模块 """ -from .service import AIAgentService +from .agent_service import AIAgentService __all__ = ["AIAgentService"] diff --git a/backend/app/main_graph/nodes/rag_nodes.py b/backend/app/main_graph/nodes/rag_nodes.py index deeb949..06c0421 100644 --- a/backend/app/main_graph/nodes/rag_nodes.py +++ b/backend/app/main_graph/nodes/rag_nodes.py @@ -12,7 +12,7 @@ from typing import Dict, Any, Optional from datetime import datetime from app.main_graph.state import MainGraphState, ErrorRecord, ErrorSeverity -from .retry_utils import ( +from app.main_graph.utils.retry_utils import ( RetryConfig, RAG_RETRY_CONFIG, create_retry_wrapper_for_node diff --git a/backend/app/main_graph/nodes/react_nodes.py b/backend/app/main_graph/nodes/react_nodes.py index a55c4a8..196546b 100644 --- a/backend/app/main_graph/nodes/react_nodes.py +++ b/backend/app/main_graph/nodes/react_nodes.py @@ -23,7 +23,7 @@ from app.core.intent import ( ) from app.core.state_base import StateUtils from app.main_graph.state import MainGraphState, ErrorRecord, ErrorSeverity -from .retry_utils import ( +from app.main_graph.utils.retry_utils import ( RetryConfig, SUBGRAPH_RETRY_CONFIG ) diff --git a/backend/app/main_graph/utils/main_graph_builder.py b/backend/app/main_graph/utils/main_graph_builder.py index 9df544f..081d316 100644 --- a/backend/app/main_graph/utils/main_graph_builder.py +++ b/backend/app/main_graph/utils/main_graph_builder.py @@ -7,7 +7,7 @@ from app.main_graph.graph import StateGraph, START, END from typing import Dict, Any from app.main_graph.state import MainGraphState, CurrentAction -from .react_nodes import ( +from app.main_graph.nodes.react_nodes import ( init_state_node, react_reason_node, web_search_node, # ⭐ 新增 @@ -15,7 +15,7 @@ from .react_nodes import ( final_response_node, route_by_reasoning ) -from .rag_nodes import rag_retrieve_node +from app.main_graph.nodes.rag_nodes import rag_retrieve_node from app.subgraphs.contact import build_contact_subgraph from app.subgraphs.dictionary import build_dictionary_subgraph from app.subgraphs.news_analysis import build_news_analysis_subgraph