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