feat: 拼多多发布页接入场景智能体与表单改写工具

This commit is contained in:
2026-09-20 23:18:28 +08:00
parent d28b4d45c3
commit a140cff81a
31 changed files with 1660 additions and 44 deletions
@@ -21,7 +21,10 @@ async def ensure_indexes(db: AsyncIOMotorDatabase) -> None:
[("company_id", 1), ("user_id", 1), ("thread_id", 1)], unique=True
)
await db.agent_sessions.create_index(
[("company_id", 1), ("user_id", 1), ("status", 1), ("updated_at", -1)]
[("company_id", 1), ("user_id", 1), ("status", 1), ("scene", 1), ("updated_at", -1)]
)
await db.agent_sessions.create_index(
[("company_id", 1), ("user_id", 1), ("scene", 1), ("scene_ref", 1), ("status", 1)]
)
await db.agent_messages.create_index(
[("company_id", 1), ("user_id", 1), ("thread_id", 1), ("seq", 1)]