fill_template
Fill structured document templates by mapping data dictionary keys to content control tags, with support for repeating sections and optional removal of unmatched controls.
Instructions
Fill SDT content controls from data dict. Keys match w:tag values.
Args: data: Mapping of tag names to values. Use list[str] for repeating sections. remove_empty: If True, remove SDTs with no matching key in data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| remove_empty | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |