Rocket Forge Studio logo
Rocket Forge Studio
Веб- и продуктовая студия

Бизнес и рост

AI-агенты CopilotKit React Native: generative UI, on-device tools и human-in-the-loop

Amir Behrouzi8 мин чтения
  • React Native
  • AI-агенты
  • CopilotKit
  • Мобильная разработка
  • Generative UI
Демо CopilotKit React Native: AI-агенты с generative UI, on-device tool calls и human-in-the-loop

Большинство AI-фич в React Native заканчиваются WebView. **[@copilotkit/react-native](https://docs.copilotkit.ai/reference/react-native)** — AG-UI клиент для мобилки: тот же runtime и протокол tools, что на web, рендер в `View`/`Text`.

Для **AI-агентов CopilotKit React Native** важны: **generative UI**, **on-device tool calls**, **human-in-the-loop**.

Больше чем чат

Нужны панели, подтверждения и действия в продукте—not только markdown.

Пакет

  • **Headless** — примитивы
  • **Prebuilt** (`/components`) — chat UI
  • Hooks: `useAgent`, `useFrontendTool`, `useHumanInTheLoop`

Generative UI

  • **`useRenderTool`** — UI в чате
  • **`useFrontendTool` + handler** — нативное состояние

Tools на устройстве

Handlers рядом с API телефона.

Human-in-the-loop

**`useHumanInTheLoop`** ждёт `respond` (InProgress → Executing → Complete).

Чеклист

  • Установить пакет + Zod
  • Provider AG-UI
  • 1–3 ценных tool
  • HITL на необратимые действия
  • Smoke на устройстве

Итог

Начните с одного tool и одного approval. Напишите за вторым взглядом.

← All articles