feat(confidence-engine): preserve initial reconstruction relationships
This commit is contained in:
@@ -126,6 +126,24 @@ const evidenceRecordSchema = z.object({
|
||||
importance: importanceEnum,
|
||||
});
|
||||
|
||||
const reconstructionRelationshipSchema = z.object({
|
||||
id: z.string().min(1),
|
||||
fromId: z.string().min(1),
|
||||
toId: z.string().min(1),
|
||||
relationship: z.enum([
|
||||
"supports",
|
||||
"weakens",
|
||||
"contradicts",
|
||||
"depends_on",
|
||||
"causes",
|
||||
"may_cause",
|
||||
"compares_with",
|
||||
"other",
|
||||
]),
|
||||
description: z.string().min(1),
|
||||
confidence: confidenceEnum,
|
||||
});
|
||||
|
||||
const reconstructionSchemaV2 = z.object({
|
||||
summary: z.string().min(1),
|
||||
actors: z.array(itemSchemaV1),
|
||||
@@ -159,6 +177,7 @@ const reconstructionSchemaV2 = z.object({
|
||||
confidence: confidenceEnum,
|
||||
}),
|
||||
),
|
||||
relationships: z.array(reconstructionRelationshipSchema).optional().default([]),
|
||||
});
|
||||
|
||||
const inputClassificationSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user