Refactor/episodic explicit (#93)

* [refactor]Reconstruct episodic memory

* [refactor]Reconstructing explicit memory

* [refactor]Reconstruct episodic memory

* [refactor]Reconstructing explicit memory

* [changes]Based on the improvement of AI review

* [changes]Modify the routing

* [changes]Uniform routing format

* [fix]Fix the failure in parsing the timestamp.

* [refactor]Reconstruct episodic memory

* [refactor]Reconstructing explicit memory

* [changes]Based on the improvement of AI review

* [changes]Modify the routing

* [changes]Uniform routing format

* [fix]Fix the failure in parsing the timestamp.

* [deleted]Delete migration files

* [refactor]Reconstruct episodic memory

* [refactor]Reconstructing explicit memory

* [changes]Based on the improvement of AI review

* [changes]Modify the routing

* [changes]Uniform routing format

* [fix]Fix the failure in parsing the timestamp.

* [deleted]Delete migration files

* feat: add database migration 9ab9b6393f32_20261511
This commit is contained in:
乐力齐
2026-01-13 16:02:36 +08:00
committed by GitHub
parent 7a5792ba01
commit dec9fca8c2
11 changed files with 1051 additions and 1073 deletions

View File

@@ -1,43 +0,0 @@
"""
用户记忆相关的请求和响应模型
"""
from pydantic import BaseModel, Field
from typing import Optional
class EpisodicMemoryOverviewRequest(BaseModel):
"""情景记忆总览查询请求"""
end_user_id: str = Field(..., description="终端用户ID")
time_range: str = Field(
default="all",
description="时间范围筛选可选值all, today, this_week, this_month"
)
episodic_type: str = Field(
default="all",
description="情景类型筛选可选值all, conversation, project_work, learning, decision, important_event"
)
title_keyword: Optional[str] = Field(
default=None,
description="标题关键词,用于模糊搜索(可选)"
)
class EpisodicMemoryDetailsRequest(BaseModel):
"""情景记忆详情查询请求"""
end_user_id: str = Field(..., description="终端用户ID")
summary_id: str = Field(..., description="情景记忆摘要ID")
class ExplicitMemoryOverviewRequest(BaseModel):
"""显性记忆总览查询请求"""
end_user_id: str = Field(..., description="终端用户ID")
class ExplicitMemoryDetailsRequest(BaseModel):
"""显性记忆详情查询请求"""
end_user_id: str = Field(..., description="终端用户ID")
memory_id: str = Field(..., description="记忆ID情景记忆或语义记忆的ID")