Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Convert canonical training examples to ChatML format for training frameworks
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 68% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -40% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -22% | 0% |
Convert canonical training example records (@agentic/code/frameworks/training-complete/schemas/example-record.yaml) into ChatML / OpenAI messages format — the native structure used by OpenAI fine-tuning, most modern chat models, and HuggingFace apply_chat_template.
SFTTrainer and a ChatML tokenizer templatetool_calls structure without serialization losses<input-glob> (required) — glob of canonical records--output <path> (optional) — default: .aiwg/training/exports/chatml-<timestamp>.jsonl--validate-round-trip (optional) — reload output and verify invariantsOne JSON object per line containing a messages array with typed roles:
json{"messages": [{"role": "system", "content": "You are helpful."}, {"role": "user", "content": "What time is it?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "t1", "type": "function", "function": {"name": "now", "arguments": "{}"}}]}, {"role": "tool", "tool_call_id": "t1", "content": "12:00"}]}
Roles: system | user | assistant | tool. Native tool_calls on assistant messages.
messages array:input.system → {role: "system", content: ...} (if present)input.user → {role: "user", content: ...}output.assistant → {role: "assistant", content: ...} with native tool_calls attached{role: "tool", tool_call_id, content}--validate-round-trip) — rebuild canonical record and verify invariants.format-convert event.ChatML preserves input.system, input.user, output.assistant, and output.tool_calls natively. Preserved via sidecar: id, task_type, full metadata, output.reasoning_trace (ChatML has no first-class CoT field — reasoning lives in sidecar unless using <thinking> tags).
<output>.metadata.yaml holds per-line: id, task_type, full metadata.*, output.reasoning_trace, and any context_refs / tools_available schemas that were not inlined into messages.
tool_use records round-trip without loss (native tool_calls used).--validate-round-trip reconstructs all canonical invariants.format-convert event logged with input/output/rejection counts.@agentic/code/addons/semantic-memory/skills/memory-log-append/SKILL.md — logging the format-convert eventOther measured skills in the registry, with their headline benchmark lift.