Skip to content

Create recipe standardization agent for iPad#2

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/retry-failed-operations
Draft

Create recipe standardization agent for iPad#2
Copilot wants to merge 2 commits into
mainfrom
copilot/retry-failed-operations

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 30, 2026

Summary

Implements the recipe standardization agent requested in the original task:

Create an Agent that takes various different recipes that are in different formats and create a standard format and make a doc that can be opened on an iPad to be used for making the recipes

What's included

agent/recipe_agent.py

A pure-Python agent (no third-party dependencies) that:

  • Reads recipe files in four formats: .txt, .json, .md/.markdown, .csv
  • Parses each into a common schema: title, servings, prep time, cook time, ingredients (amount / unit / item), numbered instructions, notes
  • Generates a single self-contained HTML file optimised for iPad (responsive layout, table of contents, system fonts, print-safe)

Run it with:

python3 agent/recipe_agent.py                          # defaults
python3 agent/recipe_agent.py --input my/dir --output out.html

agent/README.md

Full usage guide with input format examples for all four formats.

recipes/input/ — five sample recipes in different formats

File Format
spaghetti_carbonara.txt Plain text (labelled sections)
banana_bread.txt Plain text (informal headings)
chicken_tikka_masala.md Markdown
chocolate_chip_cookies.json JSON
caesar_salad.csv CSV (two-section format)

recipes/output/recipes.html

Pre-generated iPad-ready HTML document containing all five recipes.

Changes

  • agent/recipe_agent.py — new file
  • agent/README.md — new file
  • recipes/input/* — five sample recipe files
  • recipes/output/recipes.html — generated HTML output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants