Planning API
The Planning API analyzes your current state and target goal, then produces actionable instructions. Three endpoints cover different planning needs.
POST /plan
Returns ranked action suggestions based on structural comparison between current and goal states.
Request:
Response:
POST /plan-instructions
Returns fully parameterized, dependency-ordered instructions. This is the primary endpoint for agent-driven construction.
Request:
Response:
Instructions at the same level can be executed in parallel. Instructions at level N depend on level N-1 being complete.
POST /gap
Identifies structural differences between two schemas. Useful for understanding what's missing or what changed.
Request:
Response:
The gap_score ranges from 0.0 (identical) to 1.0 (completely different).
Next Steps
- Verification API - Check if your generated result is valid
- Agent Integration - Use planning in an agent loop