feat(shipping-notice): 添加 MinerU 订单附件表格结构化功能,更新环境配置和数据模型以支持新布局解析和文档模板管理
This commit is contained in:
1 parent
c4095b08da
commit
c35223d49d
148 files changed
+15709
-1353
No files matched your search
@@ -3,7 +3,7 @@ backend/app/models/agent_runtime_binding.py
|
||||
|
||||
用途:定义用户入口 Agent 到内部运行能力 Provider 的显式绑定。
|
||||
依赖:agents 表。
|
||||
逻辑:业务代码只按 owner_agent_id + capability_code 解析 Provider;Dify App ID、Key 和 URL 继续由 Provider Agent 保存。
|
||||
逻辑:业务代码按 owner_agent_id + capability_code 解析 Provider;执行策略仅保存通用超时与重试参数。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -34,6 +34,9 @@ class AgentRuntimeBinding(Base):
|
||||
ForeignKey('agents.id'), nullable=False, index=True,
|
||||
)
|
||||
enabled: Mapped[bool] = mapped_column(Boolean, default=True, server_default='1', nullable=False)
|
||||
quality_batch_id: Mapped[Optional[int]] = mapped_column(
|
||||
ForeignKey('shipping_order_extraction_quality_batches.id'), nullable=True, index=True,
|
||||
)
|
||||
config_json: Mapped[Optional[dict[str, Any]]] = mapped_column(JSON, nullable=True)
|
||||
created_at: Mapped[datetime] = mapped_column(default=datetime.utcnow, nullable=False)
|
||||
updated_at: Mapped[datetime] = mapped_column(default=datetime.utcnow, onupdate=datetime.utcnow, nullable=False)
|
||||
|
||||
Reference in new issue
Block a user