前段时间,一个朋友从某社区离开加入了一个 AI 创业团队。
于是,我又有机会蹭杯咖啡,听新的故事。
2025 年,AI 大语言模型、Vibe Coding、智能体、Agent2Agent 等概念革新太快。
我这个 Old DBA再不研究 AI,就真的要被排在沙滩上了。
AI enhances you, but do not waiting AI replace you.
今天做个新尝试,看看分别掌握 MySQL 和 PostgreSQL 数据库知识的 Agents 在一起能聊什么。
OpenAgents 项目:全球首 个开放协作的 AI 智能体网络
OpenAgents 项目提供了一个用于在协作网络中创建、连接和管理 AI agents 的框架。该框架构建了网络基础设施,使代理能够发现其他代理、协作完成任务并在独立的社区中进行学习。
OpenAgents 网络中的代理使用统一的事件系统进行通信,该系统支持多种协议,包括专用的代理间通信 (A2A) 协议和 gRPC。代理利用集成的大型语言模型 (LLM) 和外部工具来执行复杂任务。模块化架构通过“模块”扩展功能,实现诸如共享文档编辑和智能任务委派等活动。
该框架管理代理的操作,包括其生命周期、身份和持久工作空间。它支持专为特定任务、协作行为以及与 LangChain 等外部框架集成而设计的专用代理类型。
OpenAgents 提供了一个可视化 Web 页面 OpenAgents Studio,用于管理代理网络、观察活动以及参与协作文档。
? 欢迎大家来 Star。
https://github.com/openagents-org/openagents

两个半月前的 GOTC 2025, IF 社区 C 姐采访了 OpenAgents 创始人 Raphael Shu 博士,戳下方视频了解。
// movie
快速上手 OpenAgents
通过以下简单的安装步骤在系统上运行 OpenAgents。下面演示如何在 Rocky Linux 9 上安装 OpenAgents。
使用 Conda 为 OpenAgents 创建一个新的环境。
dnf install conda conda create -n openagents python=3.12
重新登录用户,激活 openagents 环境。
conda activate openagents
通过 PyPI 安装 OpenAgents。
pip install openagents -- 你也可以指定镜像源加速安装 pip install openagents -i https://pypi.tuna.tsinghua.edu.cn/simple
启动你的网络。
openagents network start

启动 OpenAgents Studio 以进行可视化。访问 http://localhost:8700/studio 登陆 Studio。

配置大模型(以 Qwen 为例)。
export OPENAI_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"export OPENAI_API_KEY="your-key-here"export DEFAULT_LLM_PROVIDER="qwen"export DEFAULT_LLM_MODEL_NAME="qwen-turbo"export DEFAULT_LLM_API_KEY="your-key-here"
实战示例:AI 时代,数据库之争(PostgreSQL vs MySQL)
为了验证 OpenAgents 的协作能力,我做了一个典型实验:
让两个“数据库专家 Agent”围绕 AI 时代的数据库选型展开一场观点碰撞。
Agent 设定
-
MySQL Agent
- 立场:工程效率、生态成熟、OLTP 优先
- AI 能力:向量插件、LLM 应用接入、工具化集成
-
PostgreSQL Agent
- 立场:复杂数据、可扩展性、AI 原生能力
- AI 能力:PGVector、JSONB、扩展生态、SQL 表达力
准备 MySQL 专家 Agent 配置文件
# MySQL Expert Agent - AI-Aware Database Architect # Evaluates MySQL usage in AI, LLM, and data-intensive scenarios type: "openagents.agents.collaborator_agent.CollaboratorAgent" agent_id: "mysql_ai_engineer" config: model_name: "auto" instruction: | You are the MYSQL AI ENGINEER — a senior database architect specializing in MySQL, with practical experience supporting AI, LLM, and data-intensive applications. ...
准备 PostgreSQL 专家 Agent 配置文件
# PostgreSQL Expert Agent - AI-Aware Database Architect # Evaluates PostgreSQL usage in AI, LLM, and data-intensive scenarios type: "openagents.agents.collaborator_agent.CollaboratorAgent" agent_id: "postgres_ai_engineer" config: model_name: "auto" instruction: | You are the POSTGRESQL AI ENGINEER — a senior database architect specializing in PostgreSQL, with practical experience supporting AI, LLM, and data-intensive applications.
启动两个 Agent
openagents agent start mysql_ai_engineer.yaml openagents agent start postgres_ai_engineer.yaml

到这里,两个 Agent 同处一张“网络”的运行态系统就已经成型了。
讨论主题
在公共频道,主持人(我)抛出讨论主题:
In the age of AI, should we choose PostgreSQL or MySQL for our databases? What AI-related features do each of them offer? Let’s discuss our perspectives. A clash of opinions would be ideal!
AI时代,数据库应该选择PostgreSQL还是MySQL,分别有什么AI相关的特性。大家聊聊各自的观点?最好有观点碰撞。

经过几轮讨论,不得不先停下了,因为我的大模型已经欠费了。。。

其实还可以对 Agent 的设定再优化。
更进一步说,这种讨论不是简单轮流发言,而是应该会引用彼此观点进行反驳,这才是 A2A 协议 + Event 订阅带来的自然结果。
End
当多 Agents 之间开始协作,人与多 Agents 协作时,你需要开始了解 OpenAgents。
如果你也在思考 Agent 记忆存储的问题,欢迎了解 OpenAgents Hackathon.
This is a global online event, so you can join from anywhere. ? There are tasks of varying difficulty, so it’s suitable for people with different backgrounds.
The total prize pool is $3,000. If you’re curious, check out the details here:
https://memu.pro/hackathon
Have a nice day ~ ☕
? 往期内容 ▼
? 碎碎念 | 2026年的Flag | ? 初探天翼云OpenTeleDB数据库 | ? KWDB 社区第二季征文大赛延期通知 | ? 议程官宣|2026 平凯数据库(TiDB 企业版)新品分享会
? 欢迎关注我的视频号

? 这里有得聊
如果对国产基础软件(操作系统、数据库、中间件)感兴趣,可以加群一起聊聊。关注微信公众号:(少安事务所),后台回复[群],即可看到入口。如果这篇文章为你带来了灵感或启发,请帮忙『点赞、推荐、转发』吧,感谢!ღ( ´・ᴗ・` )~