mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 03:49:21 +08:00
feat: 引入antdesignxvue
This commit is contained in:
@@ -11,6 +11,7 @@ from application.session_service import SessionService
|
||||
from config.settings import Settings
|
||||
from domain.models import Actor, ChatMessage, MessageRole
|
||||
from domain.ports import ChatStreamer, MessageRepository, SessionRepository
|
||||
from infrastructure.builtin_tools import builtin_tools
|
||||
from infrastructure.mcp_client import load_mcp_tools
|
||||
|
||||
|
||||
@@ -55,9 +56,11 @@ class ChatService:
|
||||
actor, thread_id=thread_id, text=text
|
||||
)
|
||||
memory_lines = await self._memory.lines_for_prompt(actor)
|
||||
tools = await load_mcp_tools(
|
||||
mcp_tools = await load_mcp_tools(
|
||||
self._settings, company_id=actor.company_id, user_id=actor.user_id
|
||||
)
|
||||
# 本地时间工具始终挂上,不依赖 MCP 是否可用
|
||||
tools = [*builtin_tools(), *mcp_tools]
|
||||
|
||||
history = await self._messages.list_recent(
|
||||
actor.company_id,
|
||||
|
||||
Reference in New Issue
Block a user