refactor: 客服agent结构调整重构

This commit is contained in:
2026-09-11 14:14:06 +08:00
parent 8644aaf76c
commit b1b764eac9
5 changed files with 4 additions and 7 deletions
+2 -4
View File
@@ -3,10 +3,8 @@
"""
from fastapi import APIRouter
from api.routers import auth
from api.routers import customer_agent
from api.routers import knowledge
from api.routers import auth, product, questionnaire
from api.chat import customer_agent, knowledge
from api.routers import product, questionnaire
from api.routers import account, auth, holdings, purchase, redeem
api_router = APIRouter()
+1 -1
View File
@@ -5,7 +5,7 @@ from types import SimpleNamespace
import httpx
from fastapi import FastAPI
from api.routers.customer_agent import router
from api.chat.customer_agent import router
from rag.intent import Intent
from service.customer_agent.chat import AnonymousCustomerAgent
from agent.customer_agent.session import AnonymousSessionService
+1 -2
View File
@@ -1,9 +1,8 @@
import tempfile
import unittest
from types import SimpleNamespace
from unittest.mock import AsyncMock
from api.routers.knowledge import (
from api.chat.knowledge import (
confirm_document_upload,
delete_document,
get_document,