mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
11 lines
361 B
Python
11 lines
361 B
Python
from typing import List
|
|
from uuid import uuid4
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class VectorNode(BaseModel):
|
|
unique_id: str = Field(default_factory=lambda: uuid4().hex)
|
|
workspace_id: str = Field(default="")
|
|
content: str = Field(default="")
|
|
vector: List[float] | None = Field(default=None)
|
|
metadata: dict = Field(default_factory=dict)
|