sync: 鍚屾灞€鍩熺綉鏈€鏂颁唬鐮?(source master @ b69568e4)
This commit is contained in:
1 parent
4f7f07504a
commit
8bc8b0e082
1651 files changed
+278599
-11416
No files matched your search
+17
-2
@@ -4,11 +4,11 @@ from __future__ import annotations
|
||||
|
||||
from datetime import UTC, datetime
|
||||
|
||||
from sqlalchemy import Boolean, String, UniqueConstraint, false, true
|
||||
from sqlalchemy import Boolean, Integer, String, Text, UniqueConstraint, false, true
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from deerflow.persistence.base import Base
|
||||
from deerflow.persistence.types import BeijingDateTime
|
||||
from deerflow.persistence.types import BeijingDateTime, PortableJSON
|
||||
|
||||
|
||||
class LlmWikiKnowledgeBaseRow(Base):
|
||||
@@ -19,6 +19,21 @@ class LlmWikiKnowledgeBaseRow(Base):
|
||||
owner_user_id: Mapped[str] = mapped_column(String(64), index=True)
|
||||
name: Mapped[str] = mapped_column(String(255), default="")
|
||||
description: Mapped[str] = mapped_column(String(2048), default="")
|
||||
# ``None`` means "use the product defaults derived from the knowledge-base
|
||||
# name". An explicit empty list is meaningful: the owner disabled starter
|
||||
# questions for this library.
|
||||
test_questions: Mapped[list | None] = mapped_column(PortableJSON(), nullable=True)
|
||||
retrieval_settings: Mapped[dict | None] = mapped_column(PortableJSON(), nullable=True)
|
||||
wiki_parent_directories: Mapped[list[str] | None] = mapped_column(PortableJSON(), nullable=True)
|
||||
wiki_directory_paths: Mapped[list[list[str]] | None] = mapped_column(PortableJSON(), nullable=True)
|
||||
wiki_focus_instructions: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
wiki_content_instructions_raw: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
wiki_extraction_instructions_raw: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
wiki_generation_managed: Mapped[bool | None] = mapped_column(Boolean, nullable=True)
|
||||
wiki_config_schema_version: Mapped[int | None] = mapped_column(Integer, nullable=True)
|
||||
wiki_config_revision: Mapped[int | None] = mapped_column(Integer, nullable=True)
|
||||
wiki_config_apply_status: Mapped[str | None] = mapped_column(String(32), nullable=True)
|
||||
wiki_config_apply_error: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
kb_type: Mapped[str] = mapped_column(String(32), default="document")
|
||||
publication_status: Mapped[str] = mapped_column(String(16), default="private", index=True)
|
||||
published_by: Mapped[str | None] = mapped_column(String(64), nullable=True)
|
||||
|
||||
Reference in new issue
Block a user