Skip to content

Conversation

polina-c
Copy link
Collaborator

@polina-c polina-c commented Sep 13, 2025

Fixes #134

In gallery:

Screen.Recording.2025-09-13.at.5.55.03.PM.mov

In 'real' flow:

Screen.Recording.2025-09-14.at.1.29.21.PM.mov

@polina-c polina-c marked this pull request as ready for review September 14, 2025 01:48
Copy link
Collaborator

Choose a reason for hiding this comment

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

It might make sense to try to generate all these images at the same aspect ratio, probably 1:1 so that they look good and consistent in a carousel.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes! Will do in next PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,27 @@
# Hotel Image Generation Prompts
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is awesome! Were you able to try Seth's script out? It'd be amazing to check it in and generate more like ~10 hotel images.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you point me to the script, please?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Behold! https://github.com/sethladd/testforcraig/tree/main/scripts

look for generate_image.js , generate_all_images.sh

it's a node.js script, because there was no vanilla dart library that worked with imagen

}

/// Synchronous version for example data generation.
HotelSearchResult listHotelsSync(HotelSearch search) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be great to expand this to more like 10-15 hotels to judge the performance and reliability impact there. We can make it return only a few results each request at the start. But later we should find a way to make large result sets performant.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it may. Let's plan and prioritize it as a separate task. And, it may be a good task for someone who is entering the team.

'query': S.string(
description: 'The search query, e.g., "hotels in Paris".',
),
'checkIn': S.string(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Side comment: I'm worried dealing with real dates makes this hard to test, because it's annoying to constantly pick dates for a fake holiday. I wonder if we can streamline this by instructing the LLM to prepopulate search chips with random valid dates (e.g. inject some date a couple of weeks from now in the prompt) to make it easy to demo. Sort of like how Airbnb will do that for you.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not sure I understand your comment. Can you elaborate? Do you mean manual testing or test coverage? Do you suggest to update this comment to instruct LLM to suggest dates? Or you suggest to update main prompt in the app to do it? Or something else?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Love this improvement. Can we also update this to support displaying more information below e.g. hotel summaries, prices etc? I think that will make it feel much more realistic.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, let's outline it as separate task and prioritize. Added to standup meeting discussion.

@polina-c polina-c merged commit 46ef47a into flutter:main Sep 15, 2025
11 checks passed
@polina-c polina-c deleted the hotels branch September 15, 2025 17:24
@polina-c polina-c changed the title Hotels Add checkout experience for hotels. Sep 15, 2025
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.

Add a "checkout flow" to the agentic travel app to demonstrate we can complete a real task
3 participants