baseball-engine / docs /sam-group-review.schema.json
github-actions[bot]
Automated Deploy: d73abbec668c068321b615dd48348d44b6de0443
ffb9fd9
Raw History Blame Contribute Delete
30.4 kB
{ "input": { "$defs": { "Clip": { "additionalProperties": false, "properties": { "status": { "enum": [ "available", "unavailable" ], "title": "Status", "type": "string" }, "reason_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason Code" }, "url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Url" }, "content_type": { "const": "video/mp4", "default": "video/mp4", "title": "Content Type", "type": "string" }, "duration_s": { "anyOf": [ { "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], "default": null, "title": "Duration S" }, "frame_count": { "anyOf": [ { "minimum": 1, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Frame Count" }, "width": { "anyOf": [ { "minimum": 1, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Width" }, "height": { "anyOf": [ { "minimum": 1, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Height" }, "has_audio": { "const": false, "default": false, "title": "Has Audio", "type": "boolean" }, "overlay": { "default": false, "title": "Overlay", "type": "boolean" }, "size_bytes": { "anyOf": [ { "exclusiveMinimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Size Bytes" }, "sha256": { "anyOf": [ { "pattern": "^[a-f0-9]{64}$", "type": "string" }, { "type": "null" } ], "default": null, "title": "Sha256" } }, "required": [ "status" ], "title": "Clip", "type": "object" }, "CoachingPoint": { "additionalProperties": false, "properties": { "text": { "maxLength": 500, "minLength": 1, "title": "Text", "type": "string" }, "evidence": { "items": { "$ref": "#/$defs/ScoreEvidence" }, "maxItems": 8, "minItems": 1, "title": "Evidence", "type": "array" }, "source": { "default": "coach_agent", "enum": [ "coach_agent", "rules" ], "title": "Source", "type": "string" } }, "required": [ "text", "evidence" ], "title": "CoachingPoint", "type": "object" }, "GroupCoaching": { "additionalProperties": false, "properties": { "summary": { "maxLength": 500, "minLength": 1, "title": "Summary", "type": "string" }, "what_went_well": { "items": { "$ref": "#/$defs/CoachingPoint" }, "maxItems": 3, "minItems": 1, "title": "What Went Well", "type": "array" }, "what_needs_work": { "items": { "$ref": "#/$defs/CoachingPoint" }, "maxItems": 3, "minItems": 1, "title": "What Needs Work", "type": "array" }, "next_step": { "$ref": "#/$defs/CoachingPoint" }, "source": { "default": "coach_agent", "enum": [ "coach_agent", "mixed", "rules" ], "title": "Source", "type": "string" }, "summary_source": { "default": "coach_agent", "enum": [ "coach_agent", "rules" ], "title": "Summary Source", "type": "string" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Model" } }, "required": [ "summary", "what_went_well", "what_needs_work", "next_step" ], "title": "GroupCoaching", "type": "object" }, "GroupScore": { "additionalProperties": false, "properties": { "name": { "const": "Estimated coaching score", "default": "Estimated coaching score", "title": "Name", "type": "string" }, "value": { "anyOf": [ { "maximum": 10, "minimum": 0, "type": "number" }, { "type": "null" } ], "default": null, "title": "Value" }, "max_value": { "const": 10, "default": 10, "title": "Max Value", "type": "integer" }, "status": { "enum": [ "estimated", "pending" ], "title": "Status", "type": "string" }, "band": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Band" }, "basis": { "const": "available_measurement_ai_rubric", "default": "available_measurement_ai_rubric", "title": "Basis", "type": "string" }, "rubric_version": { "default": "sam-groups-v3", "title": "Rubric Version", "type": "string" }, "source": { "enum": [ "coach_agent", "none" ], "title": "Source", "type": "string" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Model" }, "aspects": { "items": { "$ref": "#/$defs/ScoreAspect" }, "maxItems": 3, "title": "Aspects", "type": "array" }, "reason_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason Code" }, "accuracy_validated": { "const": false, "default": false, "title": "Accuracy Validated", "type": "boolean" }, "failure_detail": { "anyOf": [ { "maxLength": 240, "type": "string" }, { "type": "null" } ], "default": null, "title": "Failure Detail" }, "notice": { "default": "An estimated AI coaching judgment from the supplied measurements, not a validated performance benchmark.", "title": "Notice", "type": "string" } }, "required": [ "status", "source" ], "title": "GroupScore", "type": "object" }, "MeasurementGroup": { "additionalProperties": false, "properties": { "key": { "enum": [ "rotation", "timing", "posture", "stance" ], "title": "Key", "type": "string" }, "label": { "title": "Label", "type": "string" }, "swings": { "items": { "$ref": "#/$defs/SwingMeasurements" }, "title": "Swings", "type": "array" }, "annotated_video": { "$ref": "#/$defs/Clip" }, "score": { "anyOf": [ { "$ref": "#/$defs/GroupScore" }, { "type": "null" } ], "default": null }, "coaching": { "anyOf": [ { "$ref": "#/$defs/GroupCoaching" }, { "type": "null" } ], "default": null } }, "required": [ "key", "label", "swings", "annotated_video" ], "title": "MeasurementGroup", "type": "object" }, "MeasurementReview": { "additionalProperties": false, "properties": { "source": { "enum": [ "coach_agent", "rules" ], "title": "Source", "type": "string" }, "explanation": { "title": "Explanation", "type": "string" }, "review": { "title": "Review", "type": "string" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Model" }, "reason_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason Code" }, "assessment": { "enum": [ "descriptive_estimate", "unavailable" ], "title": "Assessment", "type": "string" } }, "required": [ "source", "explanation", "review", "assessment" ], "title": "MeasurementReview", "type": "object" }, "SamMeasurement": { "additionalProperties": false, "properties": { "key": { "title": "Key", "type": "string" }, "label": { "title": "Label", "type": "string" }, "value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Value" }, "unit": { "title": "Unit", "type": "string" }, "reference": { "title": "Reference", "type": "string" }, "statistic": { "title": "Statistic", "type": "string" }, "status": { "enum": [ "estimated", "unavailable", "partial" ], "title": "Status", "type": "string" }, "reason_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason Code" }, "quality_flags": { "items": { "type": "string" }, "title": "Quality Flags", "type": "array" }, "source_frame_ids": { "items": { "type": "integer" }, "maxItems": 8, "title": "Source Frame Ids", "type": "array" }, "sample_spacing_ms": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Sample Spacing Ms" }, "formula": { "title": "Formula", "type": "string" }, "accuracy_validated": { "const": false, "default": false, "title": "Accuracy Validated", "type": "boolean" }, "coaching": { "anyOf": [ { "$ref": "#/$defs/MeasurementReview" }, { "type": "null" } ], "default": null } }, "required": [ "key", "label", "value", "unit", "reference", "statistic", "status", "formula" ], "title": "SamMeasurement", "type": "object" }, "ScoreAspect": { "additionalProperties": false, "properties": { "key": { "title": "Key", "type": "string" }, "label": { "title": "Label", "type": "string" }, "grade": { "maximum": 4, "minimum": 0, "title": "Grade", "type": "integer" }, "max_grade": { "const": 4, "default": 4, "title": "Max Grade", "type": "integer" }, "explanation": { "title": "Explanation", "type": "string" }, "explanation_source": { "default": "coach_agent", "enum": [ "coach_agent", "rules" ], "title": "Explanation Source", "type": "string" }, "evidence": { "items": { "$ref": "#/$defs/ScoreEvidence" }, "maxItems": 8, "minItems": 1, "title": "Evidence", "type": "array" } }, "required": [ "key", "label", "grade", "explanation", "evidence" ], "title": "ScoreAspect", "type": "object" }, "ScoreEvidence": { "additionalProperties": false, "properties": { "metric_id": { "title": "Metric Id", "type": "string" }, "rep": { "minimum": 1, "title": "Rep", "type": "integer" }, "key": { "title": "Key", "type": "string" }, "label": { "title": "Label", "type": "string" }, "value": { "title": "Value", "type": "number" }, "unit": { "title": "Unit", "type": "string" }, "reference": { "title": "Reference", "type": "string" }, "statistic": { "title": "Statistic", "type": "string" }, "source_frame_ids": { "items": { "type": "integer" }, "maxItems": 8, "title": "Source Frame Ids", "type": "array" } }, "required": [ "metric_id", "rep", "key", "label", "value", "unit", "reference", "statistic" ], "title": "ScoreEvidence", "type": "object" }, "SwingMeasurements": { "additionalProperties": false, "properties": { "rep": { "title": "Rep", "type": "integer" }, "window_source": { "title": "Window Source", "type": "string" }, "start_frame": { "title": "Start Frame", "type": "integer" }, "end_frame": { "title": "End Frame", "type": "integer" }, "baseline_frame": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Baseline Frame" }, "forward_rotation_sign": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Forward Rotation Sign" }, "lead_foot": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Lead Foot" }, "quality_flags": { "items": { "type": "string" }, "title": "Quality Flags", "type": "array" }, "movement_peak_order": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Movement Peak Order" }, "peak_order_reason_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Peak Order Reason Code" }, "measurements": { "items": { "$ref": "#/$defs/SamMeasurement" }, "title": "Measurements", "type": "array" } }, "required": [ "rep", "window_source", "start_frame", "end_frame", "baseline_frame", "forward_rotation_sign", "lead_foot", "quality_flags", "measurements" ], "title": "SwingMeasurements", "type": "object" } }, "additionalProperties": false, "properties": { "groups": { "items": { "$ref": "#/$defs/MeasurementGroup" }, "maxItems": 4, "minItems": 4, "title": "Groups", "type": "array" } }, "required": [ "groups" ], "title": "SamGroupReviewRequest", "type": "object" }, "output": { "$defs": { "CoachingPoint": { "additionalProperties": false, "properties": { "text": { "maxLength": 500, "minLength": 1, "title": "Text", "type": "string" }, "evidence": { "items": { "$ref": "#/$defs/ScoreEvidence" }, "maxItems": 8, "minItems": 1, "title": "Evidence", "type": "array" }, "source": { "default": "coach_agent", "enum": [ "coach_agent", "rules" ], "title": "Source", "type": "string" } }, "required": [ "text", "evidence" ], "title": "CoachingPoint", "type": "object" }, "GroupCoaching": { "additionalProperties": false, "properties": { "summary": { "maxLength": 500, "minLength": 1, "title": "Summary", "type": "string" }, "what_went_well": { "items": { "$ref": "#/$defs/CoachingPoint" }, "maxItems": 3, "minItems": 1, "title": "What Went Well", "type": "array" }, "what_needs_work": { "items": { "$ref": "#/$defs/CoachingPoint" }, "maxItems": 3, "minItems": 1, "title": "What Needs Work", "type": "array" }, "next_step": { "$ref": "#/$defs/CoachingPoint" }, "source": { "default": "coach_agent", "enum": [ "coach_agent", "mixed", "rules" ], "title": "Source", "type": "string" }, "summary_source": { "default": "coach_agent", "enum": [ "coach_agent", "rules" ], "title": "Summary Source", "type": "string" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Model" } }, "required": [ "summary", "what_went_well", "what_needs_work", "next_step" ], "title": "GroupCoaching", "type": "object" }, "GroupReviewResult": { "additionalProperties": false, "properties": { "key": { "enum": [ "rotation", "timing", "posture", "stance" ], "title": "Key", "type": "string" }, "score": { "$ref": "#/$defs/GroupScore" }, "coaching": { "anyOf": [ { "$ref": "#/$defs/GroupCoaching" }, { "type": "null" } ], "default": null } }, "required": [ "key", "score" ], "title": "GroupReviewResult", "type": "object" }, "GroupScore": { "additionalProperties": false, "properties": { "name": { "const": "Estimated coaching score", "default": "Estimated coaching score", "title": "Name", "type": "string" }, "value": { "anyOf": [ { "maximum": 10, "minimum": 0, "type": "number" }, { "type": "null" } ], "default": null, "title": "Value" }, "max_value": { "const": 10, "default": 10, "title": "Max Value", "type": "integer" }, "status": { "enum": [ "estimated", "pending" ], "title": "Status", "type": "string" }, "band": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Band" }, "basis": { "const": "available_measurement_ai_rubric", "default": "available_measurement_ai_rubric", "title": "Basis", "type": "string" }, "rubric_version": { "default": "sam-groups-v3", "title": "Rubric Version", "type": "string" }, "source": { "enum": [ "coach_agent", "none" ], "title": "Source", "type": "string" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Model" }, "aspects": { "items": { "$ref": "#/$defs/ScoreAspect" }, "maxItems": 3, "title": "Aspects", "type": "array" }, "reason_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason Code" }, "accuracy_validated": { "const": false, "default": false, "title": "Accuracy Validated", "type": "boolean" }, "failure_detail": { "anyOf": [ { "maxLength": 240, "type": "string" }, { "type": "null" } ], "default": null, "title": "Failure Detail" }, "notice": { "default": "An estimated AI coaching judgment from the supplied measurements, not a validated performance benchmark.", "title": "Notice", "type": "string" } }, "required": [ "status", "source" ], "title": "GroupScore", "type": "object" }, "ScoreAspect": { "additionalProperties": false, "properties": { "key": { "title": "Key", "type": "string" }, "label": { "title": "Label", "type": "string" }, "grade": { "maximum": 4, "minimum": 0, "title": "Grade", "type": "integer" }, "max_grade": { "const": 4, "default": 4, "title": "Max Grade", "type": "integer" }, "explanation": { "title": "Explanation", "type": "string" }, "explanation_source": { "default": "coach_agent", "enum": [ "coach_agent", "rules" ], "title": "Explanation Source", "type": "string" }, "evidence": { "items": { "$ref": "#/$defs/ScoreEvidence" }, "maxItems": 8, "minItems": 1, "title": "Evidence", "type": "array" } }, "required": [ "key", "label", "grade", "explanation", "evidence" ], "title": "ScoreAspect", "type": "object" }, "ScoreEvidence": { "additionalProperties": false, "properties": { "metric_id": { "title": "Metric Id", "type": "string" }, "rep": { "minimum": 1, "title": "Rep", "type": "integer" }, "key": { "title": "Key", "type": "string" }, "label": { "title": "Label", "type": "string" }, "value": { "title": "Value", "type": "number" }, "unit": { "title": "Unit", "type": "string" }, "reference": { "title": "Reference", "type": "string" }, "statistic": { "title": "Statistic", "type": "string" }, "source_frame_ids": { "items": { "type": "integer" }, "maxItems": 8, "title": "Source Frame Ids", "type": "array" } }, "required": [ "metric_id", "rep", "key", "label", "value", "unit", "reference", "statistic" ], "title": "ScoreEvidence", "type": "object" } }, "additionalProperties": false, "properties": { "schema_version": { "const": "1.0", "default": "1.0", "title": "Schema Version", "type": "string" }, "groups": { "items": { "$ref": "#/$defs/GroupReviewResult" }, "maxItems": 4, "minItems": 4, "title": "Groups", "type": "array" } }, "required": [ "groups" ], "title": "SamGroupReviewResponse", "type": "object" } }
{
"input": {
"$defs": {
"Clip": {
"additionalProperties": false,
"properties": {
"status": {
"enum": [
"available",
"unavailable"
],
"title": "Status",
"type": "string"
},
"reason_code": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Reason Code"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Url"
},
"content_type": {
"const": "video/mp4",
"default": "video/mp4",
"title": "Content Type",
"type": "string"
},
"duration_s": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Duration S"
},
"frame_count": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Frame Count"
},
"width": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Width"
},
"height": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Height"
},
"has_audio": {
"const": false,
"default": false,
"title": "Has Audio",