Structured Data
NodeSet is a specialized prompt for rendering structured lists — scoring rubrics, evaluation criteria, taxonomies, classification labels. Instead of hardcoding numbered lists in strings, you define the data and let NodeSet handle formatting.
Inline Data
The simplest approach is inline items:YAML Data Files
For larger datasets, load from a YAML file:data/criteria.yml:
priority and children render as indented sub-items:
Note: YAML data files requiresymfony/yaml. Install it withcomposer require symfony/yaml.
Custom Formatting
OverriderenderNode() to change how each item appears:
Dynamic Data
Overridenodes() to generate items at runtime:
Using in Composition
NodeSet is a regular Prompt, so it composes naturally:Next Steps
- Variants & Registry — register and swap prompt implementations
- Configuration — configure template paths and engine settings