refactor: 重命名 agent_chat 模块为 agent

This commit is contained in:
qzl
2026-03-02 11:13:20 +08:00
parent 2ac56e5084
commit 99d540a18d
57 changed files with 11175 additions and 74 deletions
+4 -4
View File
@@ -10,13 +10,13 @@ from playwright.sync_api import sync_playwright
import uvicorn
from app import app
from v1.agent_chat.dependencies import get_agent_chat_service
from v1.agent_chat.schemas import (
from v1.agent.dependencies import get_agent_service
from v1.agent.schemas import (
AgentChatEvent,
AgentChatRunRequest,
AgentChatRunResponse,
)
from v1.agent_chat.service import AgentChatService
from v1.agent.service import AgentChatService
class FakeE2EAgentChatService(AgentChatService):
@@ -66,7 +66,7 @@ def _start_server(host: str, port: int):
def test_agent_chat_flow_e2e() -> None:
app.dependency_overrides[get_agent_chat_service] = lambda: FakeE2EAgentChatService()
app.dependency_overrides[get_agent_service] = lambda: FakeE2EAgentChatService()
host = "127.0.0.1"
port = _find_free_port()
server, thread = _start_server(host, port)
@@ -5,7 +5,7 @@ from decimal import Decimal
from uuid import UUID
from models.agent_chat_session import AgentChatSession, AgentChatSessionStatus
from v1.agent_chat.service import select_recent_session
from v1.agent.service import select_recent_session
def test_recent_session_home_default_selection() -> None: