{ "$defs": { "ArmCareInput": { "additionalProperties": false, "properties": { "alerts": { "items": { "type": "string" }, "title": "Alerts", "type": "array" }, "daily_max": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Daily Max" }, "mechanics_drift": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Mechanics Drift" }, "next_eligible_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Next Eligible Date" }, "pitch_count_today": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Pitch Count Today" } }, "title": "ArmCareInput", "type": "object" }, "CaptureInput": { "additionalProperties": false, "properties": { "ok": { "title": "Ok", "type": "boolean" }, "reasons": { "items": { "type": "string" }, "title": "Reasons", "type": "array" } }, "required": [ "ok" ], "title": "CaptureInput", "type": "object" }, "DrillInput": { "additionalProperties": false, "properties": { "cue": { "title": "Cue", "type": "string" }, "name": { "title": "Name", "type": "string" }, "rep_scheme": { "title": "Rep Scheme", "type": "string" } }, "required": [ "name", "rep_scheme", "cue" ], "title": "DrillInput", "type": "object" }, "MetricInput": { "additionalProperties": false, "properties": { "band": { "anyOf": [ { "maxItems": 2, "minItems": 2, "prefixItems": [ { "type": "number" }, { "type": "number" } ], "type": "array" }, { "type": "null" } ], "default": null, "description": "Typical range for the level (agent's own data)", "title": "Band" }, "confidence": { "description": "Lowest confidence seen across reps", "enum": [ "high", "medium", "est" ], "title": "Confidence", "type": "string" }, "key": { "description": "Metric id, e.g. stride_pct_height", "title": "Key", "type": "string" }, "label": { "description": "Plain-language name", "title": "Label", "type": "string" }, "n_reps": { "description": "Reps that produced a value", "minimum": 0, "title": "N Reps", "type": "integer" }, "note": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Why the value is null or limited", "title": "Note" }, "per_rep": { "description": "Value of each rep that measured it", "items": { "type": "number" }, "title": "Per Rep", "type": "array" }, "range_confidence": { "anyOf": [ { "enum": [ "high", "medium", "low" ], "type": "string" }, { "type": "null" } ], "default": null, "description": "How well established the range is", "title": "Range Confidence" }, "range_status": { "anyOf": [ { "enum": [ "calibrated", "confirmed", "adjusted", "unverified" ], "type": "string" }, { "type": "null" } ], "default": null, "description": "How the range was established", "title": "Range Status" }, "unit": { "title": "Unit", "type": "string" }, "value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Median over the reps that measured it; null if not measured", "title": "Value" }, "zone": { "description": "reference_only = a range exists but cannot be compared from this camera view", "enum": [ "in_range", "outside_typical_range", "reference_only", "unknown" ], "title": "Zone", "type": "string" } }, "required": [ "key", "label", "unit", "confidence", "zone", "n_reps" ], "title": "MetricInput", "type": "object" }, "ProblemInput": { "additionalProperties": false, "description": "A problem the measurements support (found by software from repeated evidence). The agent decides which matters.", "properties": { "baseline_rank": { "description": "Software's suggested priority, 1 = first; the agent decides the order", "minimum": 1, "title": "Baseline Rank", "type": "integer" }, "cue": { "description": "Coaching cue for fixing it", "title": "Cue", "type": "string" }, "drills": { "description": "The only drills the agent may recommend for this problem", "items": { "$ref": "#/$defs/DrillInput" }, "title": "Drills", "type": "array" }, "evidence": { "description": "Metric keys whose measurements show it", "items": { "type": "string" }, "title": "Evidence", "type": "array" }, "frequency": { "description": "Share of reps that show it", "maximum": 1, "minimum": 0, "title": "Frequency", "type": "number" }, "key": { "title": "Key", "type": "string" }, "label": { "title": "Label", "type": "string" }, "median_excess": { "description": "Typical miss in band widths (spread widths for consistency problems)", "title": "Median Excess", "type": "number" }, "range_confidence": { "default": "high", "description": "low = the range behind this is rough: say so", "enum": [ "high", "medium", "low" ], "title": "Range Confidence", "type": "string" }, "reps_evaluated": { "minimum": 0, "title": "Reps Evaluated", "type": "integer" }, "reps_showing": { "minimum": 0, "title": "Reps Showing", "type": "integer" }, "severity": { "enum": [ "minor", "major" ], "title": "Severity", "type": "string" }, "what": { "description": "One-sentence plain description", "title": "What", "type": "string" }, "why": { "description": "Why it matters", "title": "Why", "type": "string" } }, "required": [ "key", "label", "what", "why", "cue", "severity", "frequency", "reps_showing", "reps_evaluated", "median_excess", "evidence", "baseline_rank", "drills" ], "title": "ProblemInput", "type": "object" } }, "additionalProperties": false, "description": "Everything the coach may talk about. Anything absent here must not appear in the note.", "properties": { "arm_care": { "anyOf": [ { "$ref": "#/$defs/ArmCareInput" }, { "type": "null" } ], "default": null }, "capture": { "$ref": "#/$defs/CaptureInput" }, "discipline": { "enum": [ "hitting", "pitching" ], "title": "Discipline", "type": "string" }, "fps": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Fps" }, "fps_class": { "default": "unknown", "enum": [ "high_speed", "ok", "low", "unknown" ], "title": "Fps Class", "type": "string" }, "level": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "hs_jv | hs_varsity | college", "title": "Level" }, "level_assumed": { "default": false, "description": "The level was missing, so hs_varsity ranges were used", "title": "Level Assumed", "type": "boolean" }, "metrics": { "items": { "$ref": "#/$defs/MetricInput" }, "title": "Metrics", "type": "array" }, "problems": { "description": "Supported problems, baseline order", "items": { "$ref": "#/$defs/ProblemInput" }, "title": "Problems", "type": "array" }, "ranges_provisional": { "default": true, "description": "Some ranges used here are not coach-verified", "title": "Ranges Provisional", "type": "boolean" }, "reps_analyzed": { "minimum": 0, "title": "Reps Analyzed", "type": "integer" }, "schema_version": { "default": "2.0", "title": "Schema Version", "type": "string" } }, "required": [ "discipline", "reps_analyzed", "capture" ], "title": "CoachInput", "type": "object" }