File size: 4,780 Bytes
d280328
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://huggingface.co/datasets/crypto-accounting-bench/schema/expected_answer.schema.json",
  "title": "crypto-accounting-bench expected answer",
  "description": "The graded answer for one task. `journalEntry` and `assetQuantity` are what a model must produce; the remaining fields are grading metadata.",
  "type": "object",
  "required": [
    "task_id",
    "asset",
    "assetQuantity",
    "baseCurrency",
    "journalEntry",
    "keyLineAccounts",
    "totalDebitsBase",
    "totalCreditsBase",
    "rubric"
  ],
  "additionalProperties": false,
  "properties": {
    "task_id": {
      "type": "string",
      "pattern": "^task_[0-9]{4}$"
    },
    "asset": {
      "type": "string",
      "description": "synthetic asset ticker"
    },
    "assetQuantity": {
      "type": "string",
      "description": "full-precision decimal string; equals input.amounts.grossQuantity"
    },
    "baseCurrency": {
      "type": "string",
      "enum": [
        "USD",
        "CHF"
      ]
    },
    "journalEntry": {
      "type": "object",
      "required": [
        "lines"
      ],
      "additionalProperties": false,
      "properties": {
        "lines": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "required": [
              "ledgerAccountName",
              "drCr",
              "amountBase",
              "currency"
            ],
            "additionalProperties": false,
            "properties": {
              "ledgerAccountName": {
                "type": "string",
                "description": "exact value from input.chartOfAccounts"
              },
              "ledgerAccountType": {
                "type": "string",
                "enum": [
                  "Asset",
                  "Liability",
                  "Equity",
                  "Income",
                  "Expense"
                ]
              },
              "drCr": {
                "type": "string",
                "enum": [
                  "Debit",
                  "Credit"
                ]
              },
              "amountBase": {
                "type": "string",
                "pattern": "^-?[0-9]+\\.[0-9]{2}$"
              },
              "currency": {
                "type": "string"
              },
              "isClearingAccount": {
                "type": "boolean"
              },
              "normalBalance": {
                "type": "string",
                "enum": [
                  "Debit",
                  "Credit"
                ]
              },
              "role": {
                "type": "string",
                "description": "gross | fee | swap_fee | gain_loss"
              }
            }
          }
        }
      }
    },
    "keyLineAccounts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "the deciding non-wallet account(s); the hard half of the task"
    },
    "realizedGainLoss": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "properties": {
        "ledgerAccountName": {
          "type": "string"
        },
        "drCr": {
          "type": "string"
        },
        "amountBase": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        }
      }
    },
    "totalDebitsBase": {
      "type": "string"
    },
    "totalCreditsBase": {
      "type": "string"
    },
    "hasRealizedGainLoss": {
      "type": "boolean"
    },
    "entryShape": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "explanation": {
      "type": "string"
    },
    "reasoningEvidence": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "rubric": {
      "type": "object",
      "required": [
        "family",
        "passThreshold",
        "criteria"
      ],
      "additionalProperties": false,
      "properties": {
        "family": {
          "type": "string"
        },
        "passThreshold": {
          "type": "number"
        },
        "criteria": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "label",
              "weight"
            ],
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "weight": {
                "type": "number"
              }
            }
          }
        }
      }
    }
  }
}