Spaces:
Paused
Paused
Download models/nexus_checkpoint.py from TeamError404/nexus: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/TeamError404/nexus/resolve/main/models/nexus_checkpoint.py
- Command line
-
hf download hf://spaces/TeamError404/nexus/models/nexus_checkpoint.py
-
curl -L -o nexus_checkpoint.py https://huggingface.co/spaces/TeamError404/nexus/resolve/main/models/nexus_checkpoint.py
1.08 kB
| from sqlalchemy import Column, String, LargeBinary, Integer | |
| from sqlalchemy.dialects.postgresql import UUID | |
| from core.database import Base | |
| class NexusCheckpoint(Base): | |
| """ | |
| Dedicated table for Master Agent conversational memory (checkpoints). | |
| """ | |
| __tablename__ = "nexus_checkpoints" | |
| # thread_id is our Session ID | |
| thread_id = Column(String, primary_key=True) | |
| checkpoint_id = Column(String, primary_key=True) | |
| parent_id = Column(String, nullable=True) | |
| # Serialized state | |
| checkpoint_data = Column(LargeBinary, nullable=False) | |
| metadata_data = Column(LargeBinary, nullable=True) | |
| class NexusCheckpointWrite(Base): | |
| """ | |
| Stores intermediate task writes for LangGraph async execution. | |
| """ | |
| __tablename__ = "nexus_checkpoint_writes" | |
| thread_id = Column(String, primary_key=True) | |
| checkpoint_id = Column(String, primary_key=True) | |
| task_id = Column(String, primary_key=True) | |
| idx = Column(Integer, primary_key=True) | |
| channel = Column(String, nullable=False) | |
| value = Column(LargeBinary, nullable=False) | |