{ "$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" } } } } } } } }