# OpenProgram 与 LangGraph、AutoGen、CrewAI 对比

| 框架 | 主要抽象 | 编排模型 | 适用于 |
| --- | --- | --- | --- |
| **OpenProgram** | `Agent` 方法加执行 runtime | 普通控制流、模型选择工具、共享执行 DAG | Agent 应能把新工作流写成可审查的函数，而不只是从固定图或团队中选择；一个 runtime 提供终端、Web、provider、工具、记忆、上下文和多 agent 能力；上下文表示为用户、模型、函数和工具调用的 DAG。 |
| **[LangGraph](https://docs.langchain.com/oss/python/langgraph/overview)** | 节点和边的 Graph API，或带 `@entrypoint` 和 `@task` 的 [Functional API](https://docs.langchain.com/oss/python/langgraph/functional-api) | 显式状态图或标准 Python 控制流，同一 runtime | 需要持久执行、持久化、流式和人在回路的状态控制。它是底层 runtime；其概述建议用 LangChain agent 获得预置架构。 |
| **[AutoGen](https://microsoft.github.io/autogen/)** | AgentChat agent 和团队，或 Core agent 和 [runtime](https://microsoft.github.io/autogen/stable/user-guide/core-user-guide/framework/agent-and-agent-runtime.html) | Agent 消息、团队模式、事件驱动的 Core API | 设计围绕 agent 交换类型化消息或团队模式。涵盖团队、状态、人工反馈、自定义 agent、分布式 runtime。 |
| **[CrewAI](https://docs.crewai.com/)** | Agent、任务、crew、flow | 基于角色的 crew 结合事件驱动的 flow | 应用能映射为有角色、目标和任务的 agent，或调用 crew 的结构化 flow。 |

比较各项目文档中的抽象，用于选型，而不是给功能排名。2026-08-13 对照链接文档核实。未列出的功能仍可能通过扩展实现；长期迁移前请查最新文档。

[自编程 AI Agent](https://fzkuji.github.io/OpenProgram/docs/capabilities/agentic-programming/self-programming-ai-agents.zh.html) · [Agentic Programming](https://fzkuji.github.io/OpenProgram/docs/capabilities/agentic-programming/README.zh.html) · [安装](https://fzkuji.github.io/OpenProgram/docs/start/GETTING_STARTED.zh.html)
