mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-17 23:51:19 +00:00
- Remove abstract methods from base component start/close - Update BaseJob to remove name parameter and simplify initialization - Change file modification time field from mtime_ms to modified_time in seconds - Add type checking imports and improve typing annotations - Implement LocalFileStore with JSONL persistence for file chunks - Add MdFileParser with markdown and frontmatter support - Simplify HttpClient call method with proper kwargs handling - Remove unused ReMe class methods and create backup version - Update StreamJob to use step_components instead of steps attribute
12 lines
349 B
Python
12 lines
349 B
Python
from uuid import uuid4
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class BaseNode(BaseModel):
|
|
"""Base node model for graph and document structures."""
|
|
|
|
id: str = Field(default_factory=lambda: uuid4().hex)
|
|
text: str = Field(default="")
|
|
embedding: list[float] | None = Field(default=None)
|
|
metadata: dict = Field(default_factory=dict)
|