跳到内容

Agent Framework

openai/openai-agents-python

openai/openai-agents-python· Python

OpenAI 官方多 agent 工作流 Python SDK

GitHub 数据

Stars
25,561
Forks
3,901
Watchers
202
Open issues
64

meta

License
MIT
主要语言
Python
最后 commit
2026-04-29
数据抓取时间
2026-04-29

OpenAI 官方推出的轻量 Python 框架,用三个核心概念组装 agent 系统:Agent(LLM + 指令 + 工具)、Handoff(agent 之间转交任务)、Guardrail(输入输出校验)。内置 tracing、async 支持,可接任何兼容 Chat Completions 或 Responses API 的模型,不限 OpenAI。`pip install openai-agents` 即可在二十行内跑起一个多 agent 流程。

编辑试用心得

已经在 OpenAI 生态里、又嫌 LangGraph 或 CrewAI 太重的话,这是目前最干净的选择——抽象薄到一个下午就能读完,tracing dashboard 对调试 handoff 循环很实用。代价是功能面较窄:没有内置图形化编排、缺 human-in-the-loop 原语,记忆与状态管理也不如 LangGraph。需要复杂 DAG 控制流或重度持久化,请改用 LangGraph。

最后更新: 2026-04-29

We use cookies

Anonymous analytics help us improve the site. You can opt out anytime. Learn more