Documentation & page contents

Get a Pattern in · 06 · from_intent

Draft a pattern from a sentence

You described a garment. Draft a Pattern, drape a blank.

You have

You described a garment

You want

Draft a Pattern, drape a blank

You described a garment in chat. You want centimetre pieces, not a picture of a pattern.

The proposer can be wrong. pattern.preflight and construction gates hold the line. This workflow stops on a draped blank; dye and print are dress_blank.

Steps

  1. pattern.draft pattern
  2. pattern.preflight
  3. construction.propose construction
  4. construction.preflight
  5. body.select body
  6. material.get material
  7. garment.drape run

Sample inputs

KeyValue
intentunisex pullover hoodie, hood up, size M, kangaroo pocket
bodysamples/bodies/male_m_native_straight.json
material_idfleece_250gsm

Expected fixture checks

These are the checks declared by this sample, not a captured production result. Referenced sample files are included in the gated SDK checkout.

{
  "run.phase": "draped"
}

Run

Obtain and install the SDK before running this example from its root directory.

python examples/run_workflow.py from_intent