mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 11:09:20 +08:00
feat: 工具调用改为独立 SSE 事件并以中文状态条展示
This commit is contained in:
@@ -5,7 +5,7 @@ from __future__ import annotations
|
||||
from abc import ABC, abstractmethod
|
||||
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):
|
||||
@@ -92,4 +92,4 @@ class ChatStreamer(ABC):
|
||||
tools: list[Any] | None = None,
|
||||
memory_count: int = 0,
|
||||
memory_just_saved: str | None = None,
|
||||
) -> AsyncIterator[str]: ...
|
||||
) -> AsyncIterator[StreamEvent]: ...
|
||||
|
||||
Reference in New Issue
Block a user