Add analysis feature
This commit is contained in:
@@ -173,6 +173,7 @@ class Assistant(Base):
|
||||
# ---- 瘦类型专属字段(真列,稀疏:按 type 用其中几列) ----
|
||||
prompt: Mapped[str] = mapped_column(String(8192), default="") # prompt / opencode
|
||||
dynamic_variable_definitions: Mapped[dict] = mapped_column(JSON, default=dict)
|
||||
analysis_config: Mapped[dict] = mapped_column(JSONB, default=dict)
|
||||
api_url: Mapped[str] = mapped_column(String(512), default="") # dify / fastgpt / opencode
|
||||
api_key: Mapped[str] = mapped_column(String(512), default="") # dify / fastgpt / opencode(打码/哨兵)
|
||||
app_id: Mapped[str] = mapped_column(String(128), default="") # fastgpt
|
||||
@@ -313,6 +314,11 @@ class ConversationSession(Base):
|
||||
ended_at: Mapped[datetime | None] = mapped_column(
|
||||
DateTime(timezone=True), nullable=True
|
||||
)
|
||||
analysis_status: Mapped[str] = mapped_column(
|
||||
String(16), index=True, default="none"
|
||||
)
|
||||
analysis_data: Mapped[dict] = mapped_column(JSONB, default=dict)
|
||||
analysis_error: Mapped[str] = mapped_column(String(2048), default="")
|
||||
extra: Mapped[dict] = mapped_column(JSONB, default=dict)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user