mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 07:09:20 +08:00
feat: 拼多多发布页接入场景智能体与表单改写工具
This commit is contained in:
@@ -16,7 +16,24 @@ class SessionRepository(ABC):
|
||||
async def get(self, company_id: int, user_id: str, thread_id: str) -> Session | None: ...
|
||||
|
||||
@abstractmethod
|
||||
async def list_active(self, company_id: int, user_id: str, limit: int = 50) -> list[Session]: ...
|
||||
async def list_active(
|
||||
self,
|
||||
company_id: int,
|
||||
user_id: str,
|
||||
limit: int = 50,
|
||||
*,
|
||||
scene: str | None = None,
|
||||
) -> list[Session]: ...
|
||||
|
||||
@abstractmethod
|
||||
async def find_active_by_scene_ref(
|
||||
self,
|
||||
company_id: int,
|
||||
user_id: str,
|
||||
*,
|
||||
scene: str,
|
||||
scene_ref: str,
|
||||
) -> Session | None: ...
|
||||
|
||||
@abstractmethod
|
||||
async def update(self, session: Session) -> Session: ...
|
||||
|
||||
Reference in New Issue
Block a user