Merge pull request #50 from Plaud-AI/fix_mem_category

fix: 修复mem返回schema
This commit is contained in:
Leo 2025-12-16 11:18:25 +08:00 committed by GitHub
commit 02370ccbf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,7 +62,7 @@ class MemoryResponse(BaseModel):
"""记忆响应"""
id: str = Field(..., description="记忆 ID")
agent_id: str = Field(..., description="记忆所属的 Agent ID")
type: Literal["profile", "event"] = Field(..., description="记忆类型")
type: str = Field(..., description="记忆类型(透传 MemU 返回的 category)")
title: Optional[str] = Field(None, description="标题")
content: str = Field(..., description="记忆内容")
created_at: datetime = Field(..., description="创建时间")