feat: implement CookingEngine and physical pipeline#270
Open
parisasachdeva07 wants to merge 1 commit into
Open
feat: implement CookingEngine and physical pipeline#270parisasachdeva07 wants to merge 1 commit into
parisasachdeva07 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Related Issue
Closes #146
📝 Summary of Changes
Implemented the CookingEngine heuristic logic to detect 5 distinct recipe steps (pasta, baking, omelette, etc.) based on objects and OCR text.
Added safety threshold alerts for high temperatures parsing both Fahrenheit and Celsius.
Created core/physical/physical_pipeline.py from scratch to serve as the main routing hub.
Registered the cooking engine inside the new pipeline to trigger when task_type == "cooking".
🔍 Type of Change
🧪 How Was This Tested?
Ran the dedicated unit test suite for the engine, verifying tie-breakers and UnboundLocalError edge cases.
python -m unittest tests.unit.test_cooking_engine
# Example: commands run to test your changes python -m pytest tests/unit/test_your_module.py -vTest environment:
📸 Screenshots / Recordings (if applicable)
N/A - Backend pipeline and engine logic
✅ Pre-Submission Checklist
upstream/mainpython -m pytest tests/).envfiles, secrets, or model weights💬 Additional Notes for Reviewer
Note: The PhysicalPipeline class did not exist yet, so I created physical_pipeline.py to handle the routing. Future domain engines (like workout or hardware repair) can now easily be added to this pipeline's process method!