analyze_requirement
Validate extracted diagram elements against a chosen type's vocabulary and return a normalized analysis to guide the next planning step.
Instructions
PHASE 1 of diagram generation. You (the calling model) read the requirement, decide the diagram type, and extract the elements, then call this to validate the graph against that type's vocabulary (rejecting mixed element types) and get back a normalized analysis to pass into plan_diagram.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | [{source, target, label?}] -- label is a guard like "[yes]". | |
| nodes | No | [{id, kind, label}] -- kind must be in the chosen type's vocabulary. | |
| title | No | Diagram title. | |
| rationale | No | Why this diagram type/structure was chosen. | |
| requirement | No | The original plain-language requirement, for the saved artifact. | |
| diagram_type | No | Chosen type key. Omit to get the type menu back instead. |