Repstack.Compute Metrics
repstack.compute_metricsCompute deterministic strength metrics from canonical session data, returning weekly volume, tonnage, e1rm, PRs, and volume spikes. Optionally filter by date range for targeted insights.
Instructions
Compute deterministic metrics from provided canonical data (stateless).
Provide either sessions (array of canonical session objects) or logs (array of { canonical_json: { sessions } }).
Optional range: { start, end } (YYYY-MM-DD) to filter; if omitted, all provided sessions are used.
Returns weekly volume, tonnage, e1rm, PRs, volume_spike flags. Payloads exceeding max_sessions or max_sets return needs_clarification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||