API Reference WPL-AI v#1.12.0

Copy Markdown View Source

Modules

WPL-AI: Human and AI-friendly authoring language for wellness plans.

AST node definitions for WPL-AI parser.

Achievement definition

Personalization action

Athlete physiological thresholds (plan-level, schema v1.3.0+)

Activity block within a day

Cardio activity

Progress checkpoint

Rule condition (can be compound with AND/OR)

Medical contraindication

Training day

Root AST node representing a complete WPL-AI document

Duration value with unit

Equipment requirement

Exercise activity

A fitness/wellness goal

Habit tracking activity

Plan header with name and attributes

Personalization input definition

Intensity specification

Interval pattern for cardio

Macronutrient targets

Typed measurement specification (schema v1.6.0+)

Meditation activity

Goal milestone

Notification configuration

Nutrition activity

Nutrition timing specification

One-rep-max entry for a specific exercise

Personalization rules section

Training phase

Plan-level habit (top-level HABITS block). Distinct from the in-day Habit activity: this represents a coaching cue carried across the whole plan (e.g. weekly weigh-in, daily food log) rather than a measurable target dropped into a day's blocks.

PNF stretching parameters (schema v1.6.0+)

Points system configuration

Progress tracking configuration

Recovery activity

Individual recovery exercise

Rendering/display configuration

Plan requirements

Personalization rule with condition and actions

Simple activity for warmups/cooldowns

Streaks configuration

Sub-plan inclusion activity (schema v1.5.0+)

Goal target specification

Time commitment requirements

Training week

Weight specification

Compiles WPL-AI AST to canonical WPL JSON format.

Decompiles WPL JSON to WPL-AI text format.

Error types for WPL-AI lexer and parser.

Error during compilation to WPL JSON

Error during lexical analysis

Source location (line and column)

Error during parsing

Fuzzy matching for exercise references in WPL-AI.

Lexer for WPL-AI language.

Parser for WPL-AI language.

Semantic validator for WPL-AI AST documents.