新增: TaskRecord加output_json产出字段+V17迁移(决策a AiNode自审闭环)
This commit is contained in:
@@ -66,6 +66,14 @@ pub struct TaskRecord {
|
||||
/// #[serde(default)] 兼容旧前端无该字段的 JSON(老任务记录默认 0)。
|
||||
#[serde(default)]
|
||||
pub review_rounds: i32,
|
||||
/// 任务产出 JSON 字符串(AiNode 自审闭环,决策 a:task 中心,产出跟 task 走)。
|
||||
///
|
||||
/// 三方读写约定:ai_execute 写产出 / ai_self_review 读产出做自审 / human_review 展示产出对象。
|
||||
/// 经通用 update_field 写白名单(非 status 那种状态机收口字段),TEXT NULL 向后兼容。
|
||||
/// #[serde(skip_serializing_if)] 无产出不序列化(省前端字段空值),#[serde(default)] 兼容旧 JSON。
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(default)]
|
||||
pub output_json: Option<String>,
|
||||
pub created_at: String,
|
||||
pub updated_at: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user