mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-27 19:25:15 +02:00
refactor: remove memory extraction functions and related components from the new chat agent
This commit is contained in:
parent
a0ff86e0e8
commit
132e7b3c44
12 changed files with 2 additions and 375 deletions
|
|
@ -2,9 +2,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Literal
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class MemoryLimits(BaseModel):
|
||||
|
|
@ -19,19 +17,3 @@ class MemoryRead(BaseModel):
|
|||
|
||||
memory_md: str
|
||||
limits: MemoryLimits
|
||||
|
||||
|
||||
class MemoryExtractionDecision(BaseModel):
|
||||
"""Structured extraction result; avoids string sentinel parsing."""
|
||||
|
||||
action: Literal["no_update", "save"] = Field(
|
||||
description="Choose no_update when nothing durable should be saved; choose save otherwise."
|
||||
)
|
||||
reason: str | None = Field(
|
||||
default=None,
|
||||
description="Short reason for no_update, or brief summary of the memory update.",
|
||||
)
|
||||
updated_memory: str | None = Field(
|
||||
default=None,
|
||||
description="The full updated markdown memory document when action is save.",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue