baseball-engine / AI-coach-agent /docs /examples /responses /hitting_with_timing.json
github-actions[bot]
Automated Deploy: f4f01388c7b26e818cffbd64414eac11381a7891
35e80ff
Raw History Blame Contribute Delete
3.97 kB
{
"response_version": "2.0",
"request_id": "req_example",
"session_id": "sess_001",
"discipline": "hitting",
"level": "college",
"level_assumed": false,
"score": {
"name": "Mechanics score",
"meaning": "How close your measured mechanics are to the typical range for your level. Typical is not the same as ideal, and this is not a rating of how good a player you are.",
"value": 77,
"band": "Mostly close to typical",
"confidence": "medium",
"basis": "2 of 9 measurements, 6 swings",
"in_range": 0,
"checked": 2,
"breakdown": [
{
"metric_key": "stride_pct_height",
"label": "Stride length",
"score": 84,
"weight": 0.588,
"zone": "outside_typical_range"
},
{
"metric_key": "com_drift_pct_height",
"label": "Body drift past front foot",
"score": 67,
"weight": 0.412,
"zone": "outside_typical_range"
}
],
"reason_code": null,
"reason": null
},
"summary": "Here is the one thing to work on in your swing.",
"strengths": [],
"focus": [
{
"problem_key": "lunging",
"evidence": [
"com_drift_pct_height"
],
"text": "Your body slides forward past your front foot. Your weight gets ahead of your hands, and you lose power from the ground. This showed up in 100% of your reps."
},
{
"problem_key": "over_stride",
"evidence": [
"stride_pct_height"
],
"text": "Your front foot lands too far out."
}
],
"drill": {
"name": "Balance Hold Tee",
"how": "Do 3x8. Turn, don't slide.",
"cue": "Stay behind your front knee. Turn, don't slide."
},
"timing": {
"summary": "Timing: Preparation to swing and Front foot down to swing were estimated. Swing duration and Early or late adjustment are unavailable.",
"observations": [
{
"metric_key": "load_to_swing_ms",
"label": "Preparation to swing",
"value_ms": 320,
"swings": 6,
"range_ms": [
300,
340
],
"status": "estimated",
"text": "Your preparation to the start of the forward swing took about 320 ms. Across 6 swings it ranged from 300 to 340 ms."
},
{
"metric_key": "foot_down_to_swing_ms",
"label": "Front foot down to swing",
"value_ms": 70,
"swings": 6,
"range_ms": [
60,
80
],
"status": "estimated",
"text": "Your swing started about 70 ms after your front foot first touched down. Across 6 swings it ranged from 60 to 80 ms."
}
],
"unavailable": [
{
"metric_key": "swing_duration_ms",
"label": "Swing duration",
"reason_codes": [
"actual_end_unavailable"
],
"text": "Actual contact or closest approach was not established."
},
{
"metric_key": "early_late_shift_ms",
"label": "Early or late adjustment",
"reason_codes": [
"outcome_unknown"
],
"text": "Whether the bat met the ball is not known."
}
],
"data_quality": [
"These timing numbers are estimates. On their own they cannot show a timing fault.",
"Whether the bat met the ball was not established, so hits and misses were not compared."
],
"consistency": {
"practice_type": "tee",
"swings": 6,
"notes": [
"Your preparation to swing varied by about 40 ms from the lowest to the highest swing.",
"Your front foot down to swing varied by about 20 ms from the lowest to the highest swing."
]
}
},
"data_quality": [
"Some numbers are only estimates from one camera, so we are not judging them."
],
"arm_care": null,
"meta": {
"source": "rules",
"model": null,
"prompt_version": "example",
"cache_hit": false,
"fallback_reason": "llm_disabled",
"latency_ms": null
}
}