detect_print_failure
Analyzes printer telemetry to detect and classify print failures such as thermal runaway, layer shift, and nozzle clogs.
Instructions
Analyze printer telemetry to detect and classify a print failure.
Examines current telemetry data and optional historical snapshots
to identify failure conditions such as thermal runaway, layer shift,
filament runout, adhesion loss, nozzle clogs, and more.
Args:
printer_name: Identifier of the printer to analyze.
telemetry: Current telemetry snapshot with keys like
``hotend_temp``, ``bed_temp``, ``connected``,
``filament_detected``, etc.
telemetry_history: Optional list of recent telemetry snapshots
for trend analysis (newest last).
job_info: Optional current job metadata with keys like
``file_name``, ``layer``, ``total_layers``, ``z_mm``.
Returns a failure report dict if a failure is detected, or a
success dict with ``failure_detected: False`` if no failure found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_info | No | ||
| telemetry | Yes | ||
| printer_name | Yes | ||
| telemetry_history | No |