mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
Merge branch 'merge' of https://github.com/modelscope/MemoryScope into merge
This commit is contained in:
commit
f497ee8dac
2 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ class VectorStoreActionOp(BaseOp):
|
|||
elif request.action == "delete":
|
||||
result = self.vector_store.delete_workspace(workspace_id=request.workspace_id)
|
||||
|
||||
elif request.action == "delete_ids":
|
||||
result = self.vector_store.delete(workspace_id=request.workspace_id,node_ids = request.experience_ids)
|
||||
|
||||
elif request.action == "dump":
|
||||
def node_to_experience(node: VectorNode) -> dict:
|
||||
return vector_node_to_experience(node).model_dump()
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class VectorStoreRequest(BaseRequest):
|
|||
action: str = Field(default="")
|
||||
src_workspace_id: str = Field(default="")
|
||||
path: str = Field(default="")
|
||||
experience_ids: List[str] = Field(default_factory=list)
|
||||
|
||||
|
||||
class AgentRequest(BaseRequest):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue