Skip to content

Conversation

@chr-hertel
Copy link
Member

Q A
Bug fix? no
New feature? yes
Docs? no
Issues
License MIT

also re-sorting the demos and their descriptions

Screencast.from.2025-11-19.21-51-58.webm

@chr-hertel chr-hertel requested a review from Nyholm as a code owner November 19, 2025 20:55
@chr-hertel chr-hertel added the Demo Issues & PRs about the demo application label Nov 19, 2025
@chr-hertel chr-hertel added the Website Issues & PRs about the Symfony AI website label Nov 19, 2025
@chr-hertel chr-hertel force-pushed the demo-recipe-structured-output branch from 536db72 to 87dee3d Compare November 19, 2025 20:57
@chr-hertel chr-hertel force-pushed the demo-recipe-structured-output branch from 87dee3d to 6d198a6 Compare November 19, 2025 20:59
@chr-hertel chr-hertel requested a review from Copilot November 19, 2025 21:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new Recipe Bot demo to the Symfony AI Demo website, showcasing structured output functionality by generating cooking recipes. The demos are also reorganized across the website for better presentation.

  • Implements a new Recipe Bot chatbot that generates structured cooking recipes
  • Reorganizes demo layout from a nested grid structure to a more uniform presentation
  • Updates demo descriptions to be more concise and consistent

Reviewed Changes

Copilot reviewed 16 out of 24 changed files in this pull request and generated no comments.

Show a summary per file
File Description
demo/tests/SmokeTest.php Updates test to expect 8 demo cards instead of 7
demo/templates/index.html.twig Reorders demos, adds Recipe Bot card, flattens grid layout, and updates descriptions
demo/templates/components/recipe.html.twig New template for the Recipe Bot component UI
demo/templates/base.html.twig Adds Recipe navigation item and reorders menu
demo/src/Recipe/TwigComponent.php New LiveComponent for Recipe Bot functionality
demo/src/Recipe/Data/Recipe.php Data class defining recipe structure with JSON schema attributes
demo/src/Recipe/Data/Ingredient.php Data class for recipe ingredients
demo/src/Recipe/Chat.php Chat handler for Recipe Bot with session management
demo/config/services.yaml Registers PropertyNormalizer service
demo/config/routes.yaml Adds /recipe route
demo/config/packages/ai.yaml Configures recipe AI agent with OpenAI platform
demo/assets/styles/recipe.css Styling for Recipe Bot component
demo/assets/controllers/recipe_controller.js Stimulus controller for Recipe Bot interactions
demo/assets/app.js Imports recipe.css stylesheet
ai.symfony.com/templates/homepage.html.twig Reorders demos and adds Recipe Bot to homepage
ai.symfony.com/assets/styles/app.css Adds Recipe Bot gradient styling and alphabetizes demo styles

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* @var string Difficulty level of the recipe
*/
#[With(enum: ['Beginner', 'Intermediate', 'Advanced'])]
public string $level;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using a real enum for this property to showcase?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't work right away - not sure what we currently support there

@chr-hertel chr-hertel merged commit 6bb479a into symfony:main Nov 19, 2025
15 checks passed
@chr-hertel chr-hertel deleted the demo-recipe-structured-output branch November 19, 2025 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Demo Issues & PRs about the demo application Feature New feature Status: Reviewed Website Issues & PRs about the Symfony AI website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants