mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 07:09:20 +08:00
feat: 工具调用改为独立 SSE 事件并以中文状态条展示
This commit is contained in:
@@ -212,6 +212,8 @@ apps/agent/
|
|||||||
| GET | `/memories` | 查看自己的记忆条目(可透明) |
|
| GET | `/memories` | 查看自己的记忆条目(可透明) |
|
||||||
| DELETE | `/memories/{id}` | 用户删除某条记忆 |
|
| DELETE | `/memories/{id}` | 用户删除某条记忆 |
|
||||||
|
|
||||||
|
SSE 事件:`token`(正文,可落库)/ `tool`(`{phase,name,label}` 状态条,不进正文)/ `done` / `error`。工具名经 `agent/tools/labels.py` 映射为中文 label。
|
||||||
|
|
||||||
公司 LLM 配置在 **Server**:`GET/PUT /api/company/agent-llm-settings`(不经 Agent)。
|
公司 LLM 配置在 **Server**:`GET/PUT /api/company/agent-llm-settings`(不经 Agent)。
|
||||||
|
|
||||||
鉴权:`Authorization: Bearer <用户 JWT>`;Agent 用与 server 共享的 `JWT_SECRET` 校验 HS512。JWT:`sub` = userId,claim `companyId` 等与 Java `JwtUtils` 一致。
|
鉴权:`Authorization: Bearer <用户 JWT>`;Agent 用与 server 共享的 `JWT_SECRET` 校验 HS512。JWT:`sub` = userId,claim `companyId` 等与 Java `JwtUtils` 一致。
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
"""工具名 → 用户可见中文状态文案(不暴露内部 name)。"""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
_LABELS: dict[str, str] = {
|
||||||
|
"memory_search": "检索记忆",
|
||||||
|
"memory_load": "载入记忆",
|
||||||
|
"memory_save": "保存记忆",
|
||||||
|
"get_current_time": "确认业务日期",
|
||||||
|
"catalog_search": "查找店铺/商品",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def tool_status_label(name: str) -> str:
|
||||||
|
"""将工具名映射为前端状态条文案。"""
|
||||||
|
key = (name or "").strip()
|
||||||
|
if not key:
|
||||||
|
return "处理中"
|
||||||
|
if key in _LABELS:
|
||||||
|
return _LABELS[key]
|
||||||
|
lower = key.lower()
|
||||||
|
if lower.startswith("catalog_"):
|
||||||
|
return "查找店铺/商品"
|
||||||
|
if "order" in lower or "sales" in lower or "bi_" in lower or "stat" in lower:
|
||||||
|
return "查询经营数据"
|
||||||
|
return "查询经营数据"
|
||||||
@@ -57,8 +57,24 @@ async def chat_stream(
|
|||||||
|
|
||||||
async def gen():
|
async def gen():
|
||||||
try:
|
try:
|
||||||
async for chunk in svc.stream_chat(actor, thread_id, body.content):
|
async for event in svc.stream_chat(actor, thread_id, body.content):
|
||||||
yield {"event": "token", "data": json.dumps({"text": chunk}, ensure_ascii=False)}
|
if event.kind == "token" and event.text:
|
||||||
|
yield {
|
||||||
|
"event": "token",
|
||||||
|
"data": json.dumps({"text": event.text}, ensure_ascii=False),
|
||||||
|
}
|
||||||
|
elif event.kind == "tool":
|
||||||
|
yield {
|
||||||
|
"event": "tool",
|
||||||
|
"data": json.dumps(
|
||||||
|
{
|
||||||
|
"phase": event.phase,
|
||||||
|
"name": event.name,
|
||||||
|
"label": event.label,
|
||||||
|
},
|
||||||
|
ensure_ascii=False,
|
||||||
|
),
|
||||||
|
}
|
||||||
yield {"event": "done", "data": "{}"}
|
yield {"event": "done", "data": "{}"}
|
||||||
except LookupError as e:
|
except LookupError as e:
|
||||||
yield {"event": "error", "data": json.dumps({"message": str(e)}, ensure_ascii=False)}
|
yield {"event": "error", "data": json.dumps({"message": str(e)}, ensure_ascii=False)}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ from application.llm_settings_service import LlmRuntimeService
|
|||||||
from application.memory_service import MemoryService
|
from application.memory_service import MemoryService
|
||||||
from application.session_service import SessionService
|
from application.session_service import SessionService
|
||||||
from config.settings import Settings
|
from config.settings import Settings
|
||||||
from domain.models import Actor, ChatMessage, MessageRole
|
from domain.models import Actor, ChatMessage, MessageRole, StreamEvent
|
||||||
from domain.ports import ChatStreamer, MessageRepository, SessionRepository
|
from domain.ports import ChatStreamer, MessageRepository, SessionRepository
|
||||||
|
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ class ChatService:
|
|||||||
|
|
||||||
async def stream_chat(
|
async def stream_chat(
|
||||||
self, actor: Actor, thread_id: str, content: str
|
self, actor: Actor, thread_id: str, content: str
|
||||||
) -> AsyncIterator[str]:
|
) -> AsyncIterator[StreamEvent]:
|
||||||
text = (content or "").strip()
|
text = (content or "").strip()
|
||||||
if not text:
|
if not text:
|
||||||
raise ValueError("消息不能为空")
|
raise ValueError("消息不能为空")
|
||||||
@@ -85,7 +85,7 @@ class ChatService:
|
|||||||
await self._session_repo.update(session)
|
await self._session_repo.update(session)
|
||||||
|
|
||||||
parts: list[str] = []
|
parts: list[str] = []
|
||||||
async for chunk in self._streamer.stream_reply(
|
async for event in self._streamer.stream_reply(
|
||||||
llm=llm,
|
llm=llm,
|
||||||
history=history,
|
history=history,
|
||||||
user_text=text,
|
user_text=text,
|
||||||
@@ -93,8 +93,9 @@ class ChatService:
|
|||||||
memory_count=memory_count,
|
memory_count=memory_count,
|
||||||
memory_just_saved=just_saved,
|
memory_just_saved=just_saved,
|
||||||
):
|
):
|
||||||
parts.append(chunk)
|
if event.kind == "token" and event.text:
|
||||||
yield chunk
|
parts.append(event.text)
|
||||||
|
yield event
|
||||||
|
|
||||||
full = "".join(parts).strip() or "(模型未返回内容)"
|
full = "".join(parts).strip() or "(模型未返回内容)"
|
||||||
a_seq = await self._messages.next_seq(actor.company_id, actor.user_id, thread_id)
|
a_seq = await self._messages.next_seq(actor.company_id, actor.user_id, thread_id)
|
||||||
|
|||||||
@@ -104,3 +104,22 @@ class LlmRuntimeConfig:
|
|||||||
api_key: str
|
api_key: str
|
||||||
model: str
|
model: str
|
||||||
extra_headers: dict[str, str] = field(default_factory=dict)
|
extra_headers: dict[str, str] = field(default_factory=dict)
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass(frozen=True)
|
||||||
|
class StreamEvent:
|
||||||
|
"""流式片段:正文 token 或工具状态(工具状态不进落库正文)。"""
|
||||||
|
|
||||||
|
kind: str # token | tool
|
||||||
|
text: str | None = None
|
||||||
|
phase: str | None = None # start | end
|
||||||
|
name: str | None = None
|
||||||
|
label: str | None = None
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def token(text: str) -> StreamEvent:
|
||||||
|
return StreamEvent(kind="token", text=text)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def tool(*, phase: str, name: str, label: str) -> StreamEvent:
|
||||||
|
return StreamEvent(kind="tool", phase=phase, name=name, label=label)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from typing import Any, AsyncIterator
|
from typing import Any, AsyncIterator
|
||||||
|
|
||||||
from domain.models import ChatMessage, LlmRuntimeConfig, Session, UserMemory
|
from domain.models import ChatMessage, LlmRuntimeConfig, Session, StreamEvent, UserMemory
|
||||||
|
|
||||||
|
|
||||||
class SessionRepository(ABC):
|
class SessionRepository(ABC):
|
||||||
@@ -92,4 +92,4 @@ class ChatStreamer(ABC):
|
|||||||
tools: list[Any] | None = None,
|
tools: list[Any] | None = None,
|
||||||
memory_count: int = 0,
|
memory_count: int = 0,
|
||||||
memory_just_saved: str | None = None,
|
memory_just_saved: str | None = None,
|
||||||
) -> AsyncIterator[str]: ...
|
) -> AsyncIterator[StreamEvent]: ...
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ from typing import Any, AsyncIterator
|
|||||||
from langchain_core.messages import AIMessage, HumanMessage, SystemMessage, ToolMessage
|
from langchain_core.messages import AIMessage, HumanMessage, SystemMessage, ToolMessage
|
||||||
from langchain_openai import ChatOpenAI
|
from langchain_openai import ChatOpenAI
|
||||||
|
|
||||||
from domain.models import ChatMessage, LlmRuntimeConfig, MessageRole
|
from agent.tools.labels import tool_status_label
|
||||||
|
from domain.models import ChatMessage, LlmRuntimeConfig, MessageRole, StreamEvent
|
||||||
from domain.ports import ChatStreamer
|
from domain.ports import ChatStreamer
|
||||||
|
|
||||||
_BASE_SYSTEM = (
|
_BASE_SYSTEM = (
|
||||||
@@ -39,7 +40,7 @@ class OpenAICompatibleStreamer(ChatStreamer):
|
|||||||
tools: list[Any] | None = None,
|
tools: list[Any] | None = None,
|
||||||
memory_count: int = 0,
|
memory_count: int = 0,
|
||||||
memory_just_saved: str | None = None,
|
memory_just_saved: str | None = None,
|
||||||
) -> AsyncIterator[str]:
|
) -> AsyncIterator[StreamEvent]:
|
||||||
system = _BASE_SYSTEM
|
system = _BASE_SYSTEM
|
||||||
if memory_count > 0:
|
if memory_count > 0:
|
||||||
system += f"\n\n当前用户约有 {memory_count} 条长期记忆,需要时用 memory_search / memory_load。"
|
system += f"\n\n当前用户约有 {memory_count} 条长期记忆,需要时用 memory_search / memory_load。"
|
||||||
@@ -66,7 +67,7 @@ class OpenAICompatibleStreamer(ChatStreamer):
|
|||||||
async for chunk in model.astream(messages):
|
async for chunk in model.astream(messages):
|
||||||
text = _chunk_text(chunk.content)
|
text = _chunk_text(chunk.content)
|
||||||
if text:
|
if text:
|
||||||
yield text
|
yield StreamEvent.token(text)
|
||||||
return
|
return
|
||||||
|
|
||||||
# 工具轮:每轮用 astream 边生成边推 token;出现 tool_call 再执行工具后继续
|
# 工具轮:每轮用 astream 边生成边推 token;出现 tool_call 再执行工具后继续
|
||||||
@@ -84,16 +85,28 @@ class OpenAICompatibleStreamer(ChatStreamer):
|
|||||||
continue
|
continue
|
||||||
text = _chunk_text(getattr(chunk, "content", None))
|
text = _chunk_text(getattr(chunk, "content", None))
|
||||||
if text:
|
if text:
|
||||||
yield text
|
yield StreamEvent.token(text)
|
||||||
if gathered is None:
|
if gathered is None:
|
||||||
yield "(模型未返回内容)"
|
yield StreamEvent.token("(模型未返回内容)")
|
||||||
return
|
return
|
||||||
messages.append(gathered)
|
messages.append(gathered)
|
||||||
tool_calls = getattr(gathered, "tool_calls", None) or []
|
tool_calls = getattr(gathered, "tool_calls", None) or []
|
||||||
if not tool_calls:
|
if not tool_calls:
|
||||||
return
|
return
|
||||||
|
|
||||||
yield f"\n[调用工具: {', '.join(tc.get('name', '?') for tc in tool_calls)}]\n"
|
# 去重保序的工具状态(同轮多次同名只显示一次文案)
|
||||||
|
seen: set[str] = set()
|
||||||
|
for tc in tool_calls:
|
||||||
|
name = tc.get("name") or ""
|
||||||
|
if name in seen:
|
||||||
|
continue
|
||||||
|
seen.add(name)
|
||||||
|
yield StreamEvent.tool(
|
||||||
|
phase="start",
|
||||||
|
name=name,
|
||||||
|
label=tool_status_label(name),
|
||||||
|
)
|
||||||
|
|
||||||
for tc in tool_calls:
|
for tc in tool_calls:
|
||||||
name = tc.get("name") or ""
|
name = tc.get("name") or ""
|
||||||
args = tc.get("args") or {}
|
args = tc.get("args") or {}
|
||||||
@@ -104,12 +117,23 @@ class OpenAICompatibleStreamer(ChatStreamer):
|
|||||||
result = f"未知工具: {name}"
|
result = f"未知工具: {name}"
|
||||||
else:
|
else:
|
||||||
raw = await tool.ainvoke(args)
|
raw = await tool.ainvoke(args)
|
||||||
result = raw if isinstance(raw, str) else json.dumps(raw, ensure_ascii=False, default=str)
|
result = (
|
||||||
|
raw
|
||||||
|
if isinstance(raw, str)
|
||||||
|
else json.dumps(raw, ensure_ascii=False, default=str)
|
||||||
|
)
|
||||||
except Exception as e: # noqa: BLE001
|
except Exception as e: # noqa: BLE001
|
||||||
result = f"工具执行失败: {e}"
|
result = f"工具执行失败: {e}"
|
||||||
messages.append(ToolMessage(content=str(result)[:8000], tool_call_id=call_id))
|
messages.append(ToolMessage(content=str(result)[:8000], tool_call_id=call_id))
|
||||||
|
|
||||||
yield "工具调用轮次过多,请缩小问题范围后重试。"
|
for name in seen:
|
||||||
|
yield StreamEvent.tool(
|
||||||
|
phase="end",
|
||||||
|
name=name,
|
||||||
|
label=tool_status_label(name),
|
||||||
|
)
|
||||||
|
|
||||||
|
yield StreamEvent.token("工具调用轮次过多,请缩小问题范围后重试。")
|
||||||
|
|
||||||
|
|
||||||
def _chunk_text(content: Any) -> str:
|
def _chunk_text(content: Any) -> str:
|
||||||
|
|||||||
@@ -84,6 +84,12 @@ export function streamAgentChat(options: {
|
|||||||
threadId: string;
|
threadId: string;
|
||||||
content: string;
|
content: string;
|
||||||
onToken: (text: string) => void;
|
onToken: (text: string) => void;
|
||||||
|
/** 工具状态(不进正文);phase=start 显示 label,end 可清除 */
|
||||||
|
onTool?: (payload: {
|
||||||
|
phase: string;
|
||||||
|
name?: string;
|
||||||
|
label: string;
|
||||||
|
}) => void;
|
||||||
onDone?: () => void;
|
onDone?: () => void;
|
||||||
onError?: (message: string) => void;
|
onError?: (message: string) => void;
|
||||||
}): AbortController {
|
}): AbortController {
|
||||||
@@ -135,6 +141,23 @@ export function streamAgentChat(options: {
|
|||||||
} catch {
|
} catch {
|
||||||
options.onToken(data);
|
options.onToken(data);
|
||||||
}
|
}
|
||||||
|
} else if (event === 'tool') {
|
||||||
|
try {
|
||||||
|
const parsed = JSON.parse(data) as {
|
||||||
|
phase?: string;
|
||||||
|
name?: string;
|
||||||
|
label?: string;
|
||||||
|
};
|
||||||
|
if (parsed.phase && parsed.label) {
|
||||||
|
options.onTool?.({
|
||||||
|
phase: parsed.phase,
|
||||||
|
name: parsed.name,
|
||||||
|
label: parsed.label,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
/* ignore malformed tool events */
|
||||||
|
}
|
||||||
} else if (event === 'error') {
|
} else if (event === 'error') {
|
||||||
try {
|
try {
|
||||||
const parsed = JSON.parse(data) as { message?: string };
|
const parsed = JSON.parse(data) as { message?: string };
|
||||||
|
|||||||
@@ -67,6 +67,9 @@ const composingNew = ref(false);
|
|||||||
const messages = ref<AgentVO.Message[]>([]);
|
const messages = ref<AgentVO.Message[]>([]);
|
||||||
/** 当前流式助手正文(与 messages 末条同步) */
|
/** 当前流式助手正文(与 messages 末条同步) */
|
||||||
const streamingText = ref('');
|
const streamingText = ref('');
|
||||||
|
/** 流式工具状态(中文 label,不进正文) */
|
||||||
|
const toolStatusLabel = ref('');
|
||||||
|
const toolStatusActive = ref(false);
|
||||||
const draft = ref('');
|
const draft = ref('');
|
||||||
/** 本条消息附带的店铺/商品/SKU,发送时写成 [引用] 块 */
|
/** 本条消息附带的店铺/商品/SKU,发送时写成 [引用] 块 */
|
||||||
const citations = ref<CatalogCite[]>([]);
|
const citations = ref<CatalogCite[]>([]);
|
||||||
@@ -107,20 +110,28 @@ const bubbleViews = computed<BubbleView[]>(() =>
|
|||||||
sending.value &&
|
sending.value &&
|
||||||
idx === messages.value.length - 1 &&
|
idx === messages.value.length - 1 &&
|
||||||
m.role === 'assistant';
|
m.role === 'assistant';
|
||||||
const text = isStreamingAssistant
|
const raw = isStreamingAssistant
|
||||||
? streamingText.value || m.content || ''
|
? streamingText.value || m.content || ''
|
||||||
: m.content || '';
|
: m.content || '';
|
||||||
|
const text = stripLegacyToolMarkers(raw);
|
||||||
const role = m.role === 'user' ? 'user' : 'assistant';
|
const role = m.role === 'user' ? 'user' : 'assistant';
|
||||||
return {
|
return {
|
||||||
id: m.id || `${m.seq}-${idx}`,
|
id: m.id || `${m.seq}-${idx}`,
|
||||||
role,
|
role,
|
||||||
name: role === 'user' ? '我' : '智能助手',
|
name: role === 'user' ? '我' : '智能助手',
|
||||||
content: text,
|
content: text,
|
||||||
textLoading: isStreamingAssistant && !text,
|
textLoading: isStreamingAssistant && !text && !toolStatusActive.value,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/** 清洗历史里曾混入正文的「[调用工具: …]」标记 */
|
||||||
|
function stripLegacyToolMarkers(content: string) {
|
||||||
|
return content
|
||||||
|
.replace(/\n?\[调用工具:[^\]]*\]\n?/g, '')
|
||||||
|
.replace(/^\s+|\s+$/g, '');
|
||||||
|
}
|
||||||
|
|
||||||
function scrollChatToBottom() {
|
function scrollChatToBottom() {
|
||||||
const el = messagePaneRef.value;
|
const el = messagePaneRef.value;
|
||||||
if (!el) return;
|
if (!el) return;
|
||||||
@@ -270,6 +281,10 @@ async function saveSettings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function appendStreamToken(t: string) {
|
function appendStreamToken(t: string) {
|
||||||
|
// 开始出正文后收起工具状态条
|
||||||
|
if (toolStatusActive.value) {
|
||||||
|
clearToolStatus();
|
||||||
|
}
|
||||||
streamingText.value += t;
|
streamingText.value += t;
|
||||||
const idx = messages.value.length - 1;
|
const idx = messages.value.length - 1;
|
||||||
const last = messages.value[idx];
|
const last = messages.value[idx];
|
||||||
@@ -279,6 +294,26 @@ function appendStreamToken(t: string) {
|
|||||||
void nextTick().then(scrollChatToBottom);
|
void nextTick().then(scrollChatToBottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onStreamTool(payload: {
|
||||||
|
phase: string;
|
||||||
|
name?: string;
|
||||||
|
label: string;
|
||||||
|
}) {
|
||||||
|
if (payload.phase === 'start') {
|
||||||
|
toolStatusActive.value = true;
|
||||||
|
toolStatusLabel.value = payload.label;
|
||||||
|
void nextTick().then(scrollChatToBottom);
|
||||||
|
} else if (payload.phase === 'end') {
|
||||||
|
// 同轮可能多个工具;最后一个 end 后仍保持到有 token / done 再清也可
|
||||||
|
toolStatusLabel.value = payload.label;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearToolStatus() {
|
||||||
|
toolStatusActive.value = false;
|
||||||
|
toolStatusLabel.value = '';
|
||||||
|
}
|
||||||
|
|
||||||
async function send(textOverride?: string) {
|
async function send(textOverride?: string) {
|
||||||
const raw = textOverride ?? draft.value;
|
const raw = textOverride ?? draft.value;
|
||||||
const text = composeMessageWithCites(stripTrailingMention(raw), citations.value);
|
const text = composeMessageWithCites(stripTrailingMention(raw), citations.value);
|
||||||
@@ -303,6 +338,7 @@ async function send(textOverride?: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
streamingText.value = '';
|
streamingText.value = '';
|
||||||
|
clearToolStatus();
|
||||||
draft.value = '';
|
draft.value = '';
|
||||||
citations.value = [];
|
citations.value = [];
|
||||||
messages.value.push({
|
messages.value.push({
|
||||||
@@ -323,6 +359,7 @@ async function send(textOverride?: string) {
|
|||||||
threadId,
|
threadId,
|
||||||
content: text,
|
content: text,
|
||||||
onToken: appendStreamToken,
|
onToken: appendStreamToken,
|
||||||
|
onTool: onStreamTool,
|
||||||
onDone: () => {
|
onDone: () => {
|
||||||
const finalText = streamingText.value;
|
const finalText = streamingText.value;
|
||||||
const idx = messages.value.length - 1;
|
const idx = messages.value.length - 1;
|
||||||
@@ -332,6 +369,7 @@ async function send(textOverride?: string) {
|
|||||||
}
|
}
|
||||||
sending.value = false;
|
sending.value = false;
|
||||||
streamingText.value = '';
|
streamingText.value = '';
|
||||||
|
clearToolStatus();
|
||||||
void refreshSessions();
|
void refreshSessions();
|
||||||
},
|
},
|
||||||
onError: (msg) => {
|
onError: (msg) => {
|
||||||
@@ -342,6 +380,7 @@ async function send(textOverride?: string) {
|
|||||||
messages.value[idx] = { ...last, content: `错误:${msg}` };
|
messages.value[idx] = { ...last, content: `错误:${msg}` };
|
||||||
}
|
}
|
||||||
streamingText.value = '';
|
streamingText.value = '';
|
||||||
|
clearToolStatus();
|
||||||
message.error(msg);
|
message.error(msg);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -359,6 +398,7 @@ function applyStarterPrompt(text: string) {
|
|||||||
function onSenderStop() {
|
function onSenderStop() {
|
||||||
abort?.abort();
|
abort?.abort();
|
||||||
sending.value = false;
|
sending.value = false;
|
||||||
|
clearToolStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
onBeforeUnmount(() => abort?.abort());
|
onBeforeUnmount(() => abort?.abort());
|
||||||
@@ -497,6 +537,15 @@ void refreshSessions();
|
|||||||
variant="base"
|
variant="base"
|
||||||
animation="gradient"
|
animation="gradient"
|
||||||
/>
|
/>
|
||||||
|
<div
|
||||||
|
v-if="toolStatusActive && toolStatusLabel"
|
||||||
|
class="text-muted-foreground mx-auto flex max-w-3xl items-center gap-2 px-4 py-1 text-xs"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="border-primary/40 inline-block size-3 animate-spin rounded-full border-2 border-t-transparent"
|
||||||
|
/>
|
||||||
|
<span>{{ toolStatusLabel }}…</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="shrink-0 border-t border-border p-3">
|
<div class="shrink-0 border-t border-border p-3">
|
||||||
<CatalogCiteSender
|
<CatalogCiteSender
|
||||||
|
|||||||
Reference in New Issue
Block a user