feat(ai): add rolling conversation summary memory
This commit is contained in:
@@ -372,6 +372,8 @@ class AISessionRow(Base):
|
||||
language: Mapped[str | None] = mapped_column(String(16), nullable=True, index=True)
|
||||
status: Mapped[str] = mapped_column(String(32), index=True, default="active")
|
||||
summary_text: Mapped[str] = mapped_column(Text, default="")
|
||||
context_summary_json: Mapped[str] = mapped_column(Text, default="{}")
|
||||
context_summary_updated_at: Mapped[str | None] = mapped_column(String(64), nullable=True, index=True)
|
||||
last_user_message_id: Mapped[str | None] = mapped_column(String(64), nullable=True, index=True)
|
||||
last_ai_message_id: Mapped[str | None] = mapped_column(String(64), nullable=True, index=True)
|
||||
handoff_reason: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
|
||||
Reference in New Issue
Block a user