Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Build a Reviewable Gemini Form Assistant in React

Описание и применение

Демонстрация создания предложений по запросу путешествия с помощью Gemini и их проверки перед сохранением.

Задача

A travel request often comes as a brief message; the assistant must turn it into form fields, handle changes, and allow review before saving.

Результат

The demo demonstrates separating proposal generation from saving, allowing users to review AI-generated changes before persisting them.

Рабочий процесс

  • User submits brief to API
  • API POST /api/trips/:id/proposal reads draft and calls Gemini
  • Gemini returns patch and clarifications
  • Client displays proposal
  • User accepts or rejects proposal
  • If accepted, client sends PATCH /api/trips/:id to apply patch

Доказательства

The feature uses two application operations: POST /api/trips/:id/proposal ... PATCH /api/trips/:id

Источник

Generating a proposal leaves the saved trip unchanged. Clicking Apply proposed changes sends a separate mutation.

Источник

  • Дата записи: 2026-10-18T00:41:06.223Z