smart_generate_from_template
Generate a print-ready 3D model from a parametric template with structural risk analysis and auto-reinforcement. Returns STL path and optimized slicer settings for functional parts.
Instructions
Generate from template + structural analysis + print settings (recommended for functional parts).
Higher-level than ``generate_from_template`` — adds structural risk analysis
and auto-reinforcement. This is the **one-step design-to-print-ready** pipeline:
1. Generates STL from a parametric template (like ``generate_from_template``)
2. Runs structural risk analysis (thin necks, cantilevers, sharp corners)
3. Optionally auto-applies reinforcements (fillets, wall thickening, etc.)
4. Infers optimal slicer settings tuned to the design's structural profile
5. Returns the STL path + recommended settings ready for slicing
The agent can take the output and directly call ``reslice_with_overrides``
or ``run_reslice_and_print`` with the recommended settings.
:param template_id: Template ID from ``list_design_templates``.
:param parameters: Parameter overrides (e.g., ``{"phone_width": 80}``).
:param material: Filament type for settings inference (PLA, PETG, ABS, etc.).
:param auto_reinforce: If True, auto-apply structural reinforcements.
:returns: Dict with STL path, structural grade, reinforcements, and print settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | PLA | |
| parameters | No | ||
| template_id | Yes | ||
| auto_reinforce | No |