refactor: 进一步重构agents目录结构 符合多agent架构

This commit is contained in:
yangshilin
2026-03-19 10:54:48 +08:00
parent c21cda3e78
commit 67fb5d2cb6
23 changed files with 98 additions and 167 deletions

View File

@@ -6,7 +6,7 @@ from app.features.user.models import User
def get_missing_profile_fields(user: User) -> list:
"""检查用户缺失的资料字段"""
from app.agents.prompts.profile_prompts import get_missing_profile_fields as _get_missing
from app.agents.chat.prompts_profile import get_missing_profile_fields as _get_missing
return _get_missing(
birth_year=user.birth_year,
birth_place=user.birth_place,

View File

@@ -10,7 +10,7 @@ from datetime import datetime, timezone
from fastapi import WebSocket, WebSocketDisconnect, status
from starlette.websockets import WebSocketState
from app.agents.prompts.profile_prompts import format_user_profile_context
from app.agents.chat.prompts_profile import format_user_profile_context
from app.core.db import AsyncSessionLocal
from app.core.security import verify_token
from app.features.conversation.models import Conversation, Segment