octoeverywhere_actions.py 607 B

123456789101112131415161718
  1. """OctoEverywhere actions using Bambuddy's existing AI failure notification event."""
  2. from backend.app.services.obico_actions import execute_action as execute_detection_action
  3. async def execute_action(
  4. printer_id: int,
  5. action: str,
  6. task_name: str,
  7. print_quality: int,
  8. frame: bytes | None = None,
  9. *,
  10. printer_name: str | None = None,
  11. ) -> None:
  12. """Dispatch a suggested action without treating print quality as confidence."""
  13. await execute_detection_action(
  14. printer_id, action, task_name, None, frame, print_quality=print_quality, printer_name=printer_name
  15. )