feat: 添加混合 Agent 路由架构
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m21s

This commit is contained in:
2026-04-26 17:37:57 +08:00
parent 7a769fab14
commit 87fb32a967
4 changed files with 707 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ from ..graph.graph_builder import GraphBuilder, GraphContext
from ..graph.graph_tools import AVAILABLE_TOOLS, TOOLS_BY_NAME
from ..model_services.chat_services import get_all_chat_services, LocalVLLMChatProvider
from .rag_initializer import init_rag_tool
from .intent_classifier import get_intent_classifier
from ..logger import info, warning
class AIAgentService:
@@ -18,6 +19,8 @@ class AIAgentService:
self.graphs = {}
self.tools = AVAILABLE_TOOLS.copy()
self.tools_by_name = TOOLS_BY_NAME.copy()
# 添加:意图分类器
self.intent_classifier = get_intent_classifier()
async def initialize(self):
# 1. 初始化 RAG 工具(如果需要)