Log runs and analyze running performance using the data file at {baseDir}/runs.md.
Runs arrive in casual formats. Extract three fields:
1mi, 3k, 5k, 10k, 1.5mi, etc.DD/MM/YY or natural language ("today", "yesterday"). If omitted, use today's date.M:SS or MM:SS (duration to complete the distance).Append a new row to the markdown table in {baseDir}/runs.md. Store dates as YYYY-MM-DD. Keep the table sorted by date ascending (newest at the bottom).
Read {baseDir}/runs.md and compute whatever the user asks: averages, bests, trends, comparisons across distances, weekly/monthly summaries, training advice, etc.
When the user's question involves a distance they haven't run (e.g. 10k projections), extrapolate cautiously and note the assumption.
共 1 个版本