MCPcopy
hub / github.com/LAION-AI/Open-Assistant / MessageTreeState

Class MessageTreeState

backend/oasst_backend/models/message_tree_state.py:75–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74
75class MessageTreeState(SQLModel, table=True):
76 __tablename__ = "message_tree_state"
77 __table_args__ = (Index("ix_message_tree_state__lang__state", "state", "lang", unique=False),)
78
79 message_tree_id: UUID = Field(
80 sa_column=sa.Column(pg.UUID(as_uuid=True), sa.ForeignKey("message.id"), primary_key=True)
81 )
82 goal_tree_size: int = Field(nullable=False)
83 max_depth: int = Field(nullable=False)
84 max_children_count: int = Field(nullable=False)
85 state: str = Field(nullable=False, max_length=128)
86 active: bool = Field(nullable=False, index=True)
87 origin: str = Field(sa_column=sa.Column(sa.String(1024), nullable=True))
88 won_prompt_lottery_date: Optional[datetime] = Field(sa_column=sa.Column(sa.DateTime(timezone=True), nullable=True))
89 lang: str = Field(sa_column=sa.Column(sa.String(32), nullable=False))

Callers 2

import_treeMethod · 0.90
_insert_tree_stateMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected