ag-ui

news/2025/10/4 13:45:25/文章来源:https://www.cnblogs.com/lightsong/p/19125526

ag-ui

https://github.com/ag-ui-protocol/ag-ui?tab=readme-ov-file

AG-UI: The Agent-User Interaction Protocol

AG-UI is an open, lightweight, event-based protocol that standardizes how AI agents connect to user-facing applications. Built for simplicity and flexibility, it enables seamless integration between AI agents, real time user context, and user interfaces.

Features

  • 💬 Real-time agentic chat with streaming
  • 🔄 Bi-directional state synchronization
  • 🧩 Generative UI and structured messages
  • 🧠 Real-time context enrichment
  • 🛠️ Frontend tool integration
  • 🧑‍💻 Human-in-the-loop collaboration

 

https://docs.ag-ui.com/introduction

AG-UI Overview

 
​https://docs.ag-ui.com/sdk/python/core/overview
https://docs.ag-ui.com/sdk/python/encoder/overview
 

The Agent–User Interaction (AG-UI) Protocol

AG-UI is an open, lightweight, event-based protocol that standardizes how AI agents connect to user-facing applications. Built for simplicity and flexibility, it standardizes how agent state, UI intents, and user interactions flow between your model/agent runtime and user-facing frontend applications—to allow application developers to ship reliable, debuggable, user‑friendly agentic features fast while focusing on application needs and avoding complex ad-hoc wiring.

AG-UI Overview

 

Building blocks (today & upcoming)

Streaming chat
Live token and event streaming for responsive multi turn sessions, with cancel and resume.
Multimodality
Typed attachments and real time media (files, images, audio, transcripts); supports voice, previews, annotations, provenance.
Generative UI, static
Render model output as stable, typed components under app control.
Generative UI, declarative
Small declarative language for constrained yet open-ended agent UIs; agents propose trees and constraints, the app validates and mounts.
Shared state
(Read-only & read-write). Typed store shared between agent and app, with streamed event-sourced diffs and conflict resolution for snappy collaboration.
Thinking steps
Visualize intermediate reasoning from traces and tool events; no raw chain of thought.
Frontend tool calls
Typed handoffs from agent to frontend-executed actions, and back.
Backend tool rendering & side effects
Visualize backend tool outputs in app and chat, emit side effects as first-class events.
Interrupts (human in the loop)
Pause, approve, edit, retry, or escalate mid flow without losing state.
Sub-agents and composition
Nested delegation with scoped state, tracing, and cancellation.
Agent steering
Dynamically redirect agent execution with real-time user input to guide behavior and outcomes.
Tool output streaming
Stream tool results and logs so UIs can render long-running effects in real time.
Custom events
Open-ended data exchange for needs not covered by the protocol.

 

视频讲解

https://www.bilibili.com/video/BV1k6EPzjECG/?vd_source=57e261300f39bf692de396b55bf8c41b

 

在线体验

https://dojo.ag-ui.com/langgraph-fastapi/feature/shared_state

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/927188.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

SCCPC2021重现赛

I Rock Paper Scissors 考场上先看到了 T ≤ 1e3 然后开始质疑贪心算法的正确性。两位队友打完后都WA了,我也没想出来哪有问题,重现赛就放过了这道题。等到下午调题的时候自己打了个贪心交上去,发现 WA on #4 ,输出…

Ros2_control浅析——一个机器人开发通用框架的结构(1)

初学者结合个人理解来讨论一下Ros2_control框架,有错误烦请大佬批评指正。引言: 最近在开发一个送餐机器人,但是在电机和ros2系统交互时犯了难,不知道该怎么写才能让系统架构清晰一些,后来了解到ros2社区有一个规范的…

图的计数问题没做

确实没做。确实没做。

如何设计量子密钥管理系统?——面向后量子时代的密钥管理架构与核心特性探讨

如何设计量子密钥管理系统?——面向后量子时代的密钥管理架构与核心特性探讨2025-10-04 13:41 tlnshuju 阅读(0) 评论(0) 收藏 举报pre { white-space: pre !important; word-wrap: normal !important; overflow-…

沈阳世纪兴网站建设WordPress首页做成插件

文章目录 1.Git简介2.安装Git2.1在Centos上安装git2.2 在ubuntu上安装git 3.创建本地仓库4.配置本地仓库 1.Git简介 Git是一个分布式版本控制系统,用于跟踪和管理文件的更改。它可以记录和存储代码的所有历史版本,并可以方便地进行分支管理、合并代码和协…

11_linux镜像下载

Linux 镜像文件ISO下载地址指南 概述 本文档整理了常用Linux发行版的官方镜像下载地址,方便开发者和系统管理员快速获取所需的Linux系统镜像。 主要Linux发行版下载地址 1. CentOS 官方下载地址:CentOS 7: http://is…

CF2152 Squarepoint Challenge (Codeforces Round 1055, Div. 1 + Div. 2) 游记

$59min$ 开出 $4t$,压线绝杀 E 拿到表现分 $2117$。省流 \(59min\) 开出 \(4t\),压线绝杀 E 拿到表现分 \(2117\)。10.3 内含剧透,请vp后再来。 不是题解!!!!!!! 赛前 国庆之后几天的效率极其低下,只补了三…

完整教程:MindsDB在金融领域的应用:智能风险评估系统

完整教程:MindsDB在金融领域的应用:智能风险评估系统2025-10-04 13:28 tlnshuju 阅读(0) 评论(0) 收藏 举报pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; d…

使用 chrome 调试 android webview 前端 dom script

使用 chrome 调试 android webview 前端 dom script手机连接 USB 调试 chrome 中输入 chrome://inspect 选择对应的设备调试即可桂棹兮兰桨,击空明兮溯流光。

禅城网站建设企业石家庄建站模板源码

有时候我们的目录结构会重新刷新,但是default-active始终保持原来的下标 1.一开始我以为是我给定的属性或者值不对,后来经过一番排查发现根本不是 那我们该如何解决那? 方案1. 通过nextTick去重新赋值方案2. 重写赋值menu方案3. v2和v3都可以…

公司网站开发费怎么入账公司企业邮箱申请流程

文章目录路径总和 I路径总和 II比较简单,就连着一起写了 路径总和 I 注意:一定得走到叶子才算 直接看代码吧,注释也就几行。 /*** Definition for a binary tree node.* public class TreeNode {* int val;* TreeNode left;* T…

php学完可以做网站仁怀哪里可以做网站

是的,2023年的java行业如网上说的。 “行业寒冬!!” 后台有粉丝私信我,跟他同期进公司的同事,现在只剩下他自己了,并且每天有很多人来公司面试,很担心自己哪天就被炒了。 程序员就是这样&…

html做成网页aso优化方案

文章目录 1. 定义2. 应用场景3. 代码实现结语 解释器模式(Interpreter Pattern)是一种行为型设计模式,用于定义语言的文法规则,并提供解释器来解释符合规则的语句。解释器模式通过定义语言的文法表示,使得可以解释执行…

株洲营销型网站建设花蝴蝶免费直播视频在线观看

1.1 Calendar类概念 Calendar是日历类,在Date后出现,替换掉了许多Date的方法。该类将所有可能用到的时间信息封装为静态成员变量,方便获取。 Calendar为抽象类,由于语言敏感性,Calendar类在创建对象时并非直接创建&…

框架系统在自然语言处理深度语义分析中的作用、挑战与未来展望 - 实践

框架系统在自然语言处理深度语义分析中的作用、挑战与未来展望 - 实践pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: &q…

10_windows11安装virtualbox

Windows 11 安装 VirtualBox 详细教程 什么是 VirtualBox? VirtualBox 是一款功能强大的开源虚拟化软件,由 Oracle 公司开发和维护。它允许用户在一台物理计算机上创建和运行多个虚拟机,每个虚拟机都可以运行不同的…

9_windows11安装docker

Windows 11 安装 Docker 详细指南 概述 Docker 是一个开源的应用容器引擎,可以让开发者打包应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 或 Windows 机器上。 系统要求 硬件要求处理器: 64位处理…

【Redis 集群】Redis集群扩容时如何避免全量数据迁移 - 教程

pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …

深入解析:Qwen-Image:开源图像生成新突破 —— 聚焦复杂文本渲染与精准图像编辑

pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …

做网站主要用哪种语言wordpress 文章自定义字段

前言:之前发了一篇树莓派刷OpenWrt系统的晒单,得到众多网友的关注,小编要希望分享更多DIY树莓派的经验。我玩树莓派都是比较简单的DIY,也积累了一点经验,在此分享给大家,算是抛砖引玉,希望看到大…