Create Template Draft
create_template_draftCreate a draft resume template in LaTeX or Typst within Maestro Career Studio, then optionally validate it by test-compiling.
Instructions
Create a DRAFT template. engine defaults to 'latex'. Pass
engine='typst' for Typst — then source is REQUIRED: raw .typ text
(no Jinja, no escape filters; read via json(bytes(sys.inputs.resume)) /
json(bytes(sys.inputs.fmt)); engine is immutable after creation).
Both engines consume the same resume JSON (contact, summary,
skills[].{category,items}, experience/projects/education, certifications,
extra_sections). Typst reads r.contact.name etc.; optional fields arrive
as `none` — guard with `!= none`. LaTeX uses resume.* with |latex_escape
on every value.
Typst constraints: dates arrive PRE-FORMATTED server-side (fmt.date_format
is not read). Package imports (`#import "@preview/..."` or any `@...`
import) are REJECTED (no external packages). Fonts: only
vendored XCharter plus typst's embedded defaults (e.g. Libertinus Serif);
any other family compiles WITHOUT error and silently substitutes. A template
that does not render r.extra_sections (both `entries` and `bullets` shapes)
hard-fails on resumes with custom sections; get_template('typst-classic')
shows the block.
LaTeX: omit `source` to start from the canonical starter. Given source
must be a complete compilable document (\documentclass + preamble) as
Jinja2 with blocks ((* *)), variables ((( ))), comments ((# #)). The source
is raw LaTeX: bare `&` for tabular cells, `\&` for a literal ampersand;
HTML entities such as `&` are not decoded. Includable:
((* include '_header.tex.j2' *)). Spacing and look can be wired to `fmt.*`
(full knob list on get_template) instead of hard-coded values;
get_template('default') is a starting point.
validate=True test-compiles in the same call (status/last_error). A LaTeX
draft cannot validate on a backend with no TeX (list_templates →
engine_available); engine='typst' works there. Not usable until validation
succeeds. `id` is a slug: [a-z0-9_-].Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| engine | No | latex | |
| source | No | ||
| validate | No | ||
| display_name | Yes |