Add structured AI analysis output and invoice ID validation
This commit is contained in:
1 parent
12bc2a1822
commit
5b697ee200
8 files changed
+298
-16
No files matched your search
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"summary": {
|
||||
"type": "string"
|
||||
},
|
||||
"findings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"lineNumber": {
|
||||
"type": ["integer", "null"],
|
||||
"description": "Zeilennummer aus dem Prüfbericht, einschließlich Kopfzeile; null, falls unbekannt."
|
||||
},
|
||||
"invoiceId": {
|
||||
"type": ["string", "null"],
|
||||
"description": "Rechnungsnummer aus dem Prüfbericht; null, falls sie fehlt oder nicht bekannt ist."
|
||||
},
|
||||
"ruleId": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"CSV-001",
|
||||
"INV-001",
|
||||
"INV-002",
|
||||
"INV-003",
|
||||
"INV-004"
|
||||
]
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "Durch den Prüfbericht belegter Fehlerbefund."
|
||||
},
|
||||
"nextCheck": {
|
||||
"type": "string",
|
||||
"description": "Nächster Prüfschritt, ohne unbekannte Ursachen als Tatsachen darzustellen."
|
||||
},
|
||||
"missingInformation": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"lineNumber",
|
||||
"invoiceId",
|
||||
"ruleId",
|
||||
"description",
|
||||
"nextCheck",
|
||||
"missingInformation"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"limitations": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"summary",
|
||||
"findings",
|
||||
"limitations"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in new issue
Block a user