File size: 2,827 Bytes
7ff7119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
  "type": "object",
  "title": "ContractSchema",
  "description": "Structured-extraction schema for business contracts. Covers NDA, service, works contract, lease, MSA, rental. Anti-hallucination layers are mandatory.",
  "properties": {
    "contract_type": {
      "type": ["string", "null"],
      "description": "e.g. NDA, service, works, lease, MSA, rental, IT framework"
    },
    "parties": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": ["string", "null"] },
          "role": { "type": ["string", "null"], "description": "e.g. supplier, customer, lessee, lessor" },
          "tax_id": { "type": ["string", "null"] },
          "address": { "type": ["string", "null"] },
          "contact": { "type": ["string", "null"] }
        }
      }
    },
    "effective_date": { "type": ["string", "null"], "description": "ISO 8601 (YYYY-MM-DD)" },
    "expiry_date": { "type": ["string", "null"], "description": "ISO 8601 (YYYY-MM-DD)" },
    "total_value": { "type": ["number", "null"], "description": "Contract total value over its full term" },
    "currency": { "type": "string", "default": "USD" },
    "monthly_fee": { "type": ["number", "null"] },
    "monthly_fee_currency": { "type": "string", "default": "USD" },
    "termination_terms": {
      "type": ["string", "null"],
      "description": "Textual summary of the termination conditions"
    },
    "termination_period_days": { "type": ["integer", "null"] },
    "penalty": {
      "type": ["object", "null"],
      "properties": {
        "amount": { "type": ["number", "null"] },
        "condition": { "type": ["string", "null"] }
      }
    },
    "confidentiality_clause": { "type": ["boolean", "null"] },
    "governing_law": { "type": ["string", "null"] },
    "auto_renewal": {
      "type": ["object", "null"],
      "properties": {
        "enabled": { "type": "boolean" },
        "condition": { "type": ["string", "null"] }
      }
    },
    "change_of_control": { "type": ["boolean", "null"], "description": "Whether the contract contains a change-of-control clause" },
    "non_compete": { "type": ["boolean", "null"] },
    "key_clauses": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "content": { "type": "string" },
          "risk_level": { "type": "string", "enum": ["low", "medium", "high"] }
        }
      }
    },
    "_quotes": {
      "type": "array",
      "items": { "type": "string" }
    },
    "_confidence": { "type": "object" },
    "_source": {
      "type": "object",
      "properties": {
        "file_name": { "type": "string" },
        "page_number": { "type": ["integer", "null"] }
      }
    }
  },
  "required": ["_quotes", "_confidence"]
}