- tags:: AI Agent
- source:: ag-ui-protocol/ag-ui: AG-UI: the Agent-User Interaction Protocol. Bring Agents into Frontend Applications.
背景
和我的 Proj.设计通用AI Agent UI 交互界面 想法是一致的,希望简化前端和后端之间的交互,简化代码工程开发。
通过一套标准协议,来将 Agent 状态流转及 UI 交互的逻辑标准化,形成中间层的标准。
这样后续 Agent 功能开发前端和后端都只需要关注于这个标准之上的业务逻辑实现。
介绍
在前端展示和后端接口之间,建立了新的数据交互协议。
通过这种协议,前后端数据交互遵循一套协议,让前端开发者脱离复杂的数据处理逻辑,专注于 UI 交互。
项目
- Start your Next.js app: $ npm run dev
- Start your agent: $ cd agent && poetry lock && poetry install && npx @langchain/langgraph-cli dev —port 8123
- Navigate to http://localhost:3000/copilotkit
- Talk to your agent.
- Read the docs: https://docs.copilotkit.ai