mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-10 03:30:56 +00:00
fix(core): update version and simplify validation error message
This commit is contained in:
parent
73ef8afb51
commit
e47256269e
5 changed files with 7 additions and 17 deletions
|
|
@ -97,7 +97,7 @@ class PersonalV1Retriever(BaseMemoryAgent):
|
|||
include_memory_id=False,
|
||||
include_when_to_use=False,
|
||||
include_content=True,
|
||||
include_message_time=False,
|
||||
include_message_time=True,
|
||||
ref_memory_id_key="",
|
||||
)
|
||||
for n in self.retrieved_nodes
|
||||
|
|
|
|||
|
|
@ -1,16 +0,0 @@
|
|||
"""Memory storage module for persistent memory management.
|
||||
|
||||
This module provides storage backends for memory chunks and file metadata,
|
||||
including SQLite-based implementations with vector and full-text search.
|
||||
"""
|
||||
|
||||
from .base_memory_store import BaseMemoryStore
|
||||
from .sqlite_memory_store import SqliteMemoryStore
|
||||
from ..context import R
|
||||
|
||||
__all__ = [
|
||||
"BaseMemoryStore",
|
||||
"SqliteMemoryStore",
|
||||
]
|
||||
|
||||
R.memory_store.register("sqlite")(SqliteMemoryStore)
|
||||
|
|
@ -548,6 +548,7 @@ class SqliteMemoryStore(BaseMemoryStore):
|
|||
score=score,
|
||||
snippet=snippet,
|
||||
source=MemorySource(src),
|
||||
distance=dist,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ class MemorySearchResult(BaseModel):
|
|||
score: float = Field(..., description="Relevance score of the search result")
|
||||
snippet: str = Field(..., description="Text snippet from the matched content")
|
||||
source: MemorySource = Field(..., description="Source of the memory data")
|
||||
distance: float | None = Field(None, description="Original distance value from vector search")
|
||||
metadata: dict = Field(default_factory=dict, description="Additional metadata")
|
||||
|
||||
@property
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@ from .tool.fs import (
|
|||
ReadTool,
|
||||
WriteTool,
|
||||
)
|
||||
from .tool.gallery import ExecuteCode
|
||||
from .tool.search import DashscopeSearch
|
||||
|
||||
|
||||
class ReMeFs(Application):
|
||||
|
|
@ -100,6 +102,8 @@ class ReMeFs(Application):
|
|||
LsTool(cwd=self.working_dir),
|
||||
ReadTool(cwd=self.working_dir),
|
||||
WriteTool(cwd=self.working_dir),
|
||||
ExecuteCode(),
|
||||
DashscopeSearch(),
|
||||
]
|
||||
|
||||
# Commands
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue