Skip to content

a2ui-vueVue 3 Renderer for A2UI Protocol

让 AI Agent 只用结构化 JSON 消息,就能在你的 Vue 应用中直接渲染丰富、可交互的用户界面

a2ui-vue

本项目为 A2UI 协议带来完整的 Vue 3 支持——基于 Vue 3 Composition API 实现全新的 Vue 3 渲染器,并提供多个配套示例应用,与Google官方现有的 Angular 及 Lit 实现保持一致的协议规范与组件体验,具体请观看示例视频或下载体验。

npm versionlicenseGitHub starsVue 3.4+
Quick Start

三行代码,接入 A2UI 渲染能力

安装依赖,在入口文件注入配置,即可开始渲染 Agent 推送的界面。

bash
npm install a2ui-vue
ts
// main.ts
import { provideA2UI, DEFAULT_CATALOG, defaultTheme } from 'a2ui-vue'

provideA2UI({ app, catalog: DEFAULT_CATALOG, theme: defaultTheme })

准备好让 Agent 驱动你的界面了吗?

查看完整指南,或者直接在 Playground 中体验 A2UI JSON 实时渲染。

Released under the MIT License.