{ "$defs": { "OutputError": { "additionalProperties": false, "description": "Structured failure associated with an article or classification.", "properties": { "DOI": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Doi" }, "code": { "minLength": 1, "title": "Code", "type": "string" }, "details": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Details" }, "index": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Index" }, "message": { "minLength": 1, "title": "Message", "type": "string" }, "retry_count": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Retry Count" }, "stage": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Stage" } }, "required": [ "code", "message" ], "title": "OutputError", "type": "object" }, "OutputWarning": { "additionalProperties": false, "description": "Non-fatal warning associated with an article or classification.", "properties": { "DOI": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Doi" }, "code": { "minLength": 1, "title": "Code", "type": "string" }, "details": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Details" }, "index": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Index" }, "message": { "minLength": 1, "title": "Message", "type": "string" }, "stage": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Stage" } }, "required": [ "code", "message" ], "title": "OutputWarning", "type": "object" } }, "additionalProperties": false, "description": "Draft aggregate run-summary output schema.", "properties": { "accepted_classifications": { "default": 0, "minimum": 0, "title": "Accepted Classifications", "type": "integer" }, "articles_completed": { "default": 0, "minimum": 0, "title": "Articles Completed", "type": "integer" }, "articles_failed": { "default": 0, "minimum": 0, "title": "Articles Failed", "type": "integer" }, "articles_not_classified": { "default": 0, "minimum": 0, "title": "Articles Not Classified", "type": "integer" }, "articles_partial": { "default": 0, "minimum": 0, "title": "Articles Partial", "type": "integer" }, "articles_received": { "minimum": 0, "title": "Articles Received", "type": "integer" }, "articles_requiring_review": { "default": 0, "minimum": 0, "title": "Articles Requiring Review", "type": "integer" }, "articles_skipped": { "default": 0, "minimum": 0, "title": "Articles Skipped", "type": "integer" }, "average_classifications_per_article": { "anyOf": [ { "minimum": 0.0, "type": "number" }, { "type": "null" } ], "default": null, "title": "Average Classifications Per Article" }, "average_processing_time_seconds": { "anyOf": [ { "minimum": 0.0, "type": "number" }, { "type": "null" } ], "default": null, "title": "Average Processing Time Seconds" }, "cache_hits": { "default": 0, "minimum": 0, "title": "Cache Hits", "type": "integer" }, "cache_misses": { "default": 0, "minimum": 0, "title": "Cache Misses", "type": "integer" }, "completed_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Completed At" }, "duration_seconds": { "anyOf": [ { "minimum": 0.0, "type": "number" }, { "type": "null" } ], "default": null, "title": "Duration Seconds" }, "errors": { "items": { "$ref": "#/$defs/OutputError" }, "title": "Errors", "type": "array" }, "estimated_total_cost": { "anyOf": [ { "minimum": 0.0, "type": "number" }, { "type": "null" } ], "default": null, "title": "Estimated Total Cost" }, "input_tokens": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Input Tokens" }, "invalid_source_records": { "default": 0, "minimum": 0, "title": "Invalid Source Records", "type": "integer" }, "output_tokens": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Output Tokens" }, "processed_articles": { "default": 0, "minimum": 0, "title": "Processed Articles", "type": "integer" }, "reduced_classifications": { "default": 0, "minimum": 0, "title": "Reduced Classifications", "type": "integer" }, "rejected_candidates": { "default": 0, "minimum": 0, "title": "Rejected Candidates", "type": "integer" }, "run_id": { "minLength": 1, "title": "Run Id", "type": "string" }, "started_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Started At" }, "total_errors": { "default": 0, "minimum": 0, "title": "Total Errors", "type": "integer" }, "total_model_calls": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Total Model Calls" }, "total_warnings": { "default": 0, "minimum": 0, "title": "Total Warnings", "type": "integer" }, "valid_article_records": { "default": 0, "minimum": 0, "title": "Valid Article Records", "type": "integer" }, "warnings": { "items": { "$ref": "#/$defs/OutputWarning" }, "title": "Warnings", "type": "array" } }, "required": [ "run_id", "articles_received" ], "title": "RunSummary", "type": "object" }