AutoGen 多智能体(维护模式)

AutoGen v0.4:asyncio actor-runtime 多智能体框架(autogen-core / autogen-agentchat / autogen-ext 三包)。

✓ 0 人报告成功·v0.1.0·

晶体简介

⚠️ **重要提示**:AutoGen v0.4 已进入微软官方维护模式(README:14,21,23),新项目应使用 Microsoft Agent Framework(MAF)。本 skill 仅服务于既有 AutoGen 工程的维护、迁移与排错。 AutoGen 是 asyncio actor-runtime 多智能体框架(github.com/microsoft/autogen)。三个 Python 包:autogen-core(runtime + 基础接口)、autogen-agentchat(高层 AssistantAgent / GroupChat API)、autogen-ext(model client / code executor / MCP / Magentic-One)。另有独立 .NET 栈(dotnet/src/, 16 子包)走中间件流水线,不用 actor runtime。AutoGen Studio 是 no-code GUI,Gatsby 前端 + FastAPI 后端。 0.2 旧分支(ConversableAgent / GroupChatManager)只在 git refs/heads/0.2 上;main 分支 pyautogen 已变成 0 字节代理,旧 cookbook 代码会三处失败。 本 skill 自带 51 条约束(含 2 条 fatal),覆盖典型踩坑:维护模式状态、LocalCommandLineCodeExecutor 文档声称的 regex 消毒并不存在(host shell 直接执行 LLM 生成命令,CRITICAL 安全坑)、pyautogen 0 字节代理、Windows 上 LocalCommandLineCodeExecutor 需先设 WindowsProactorEventLoopPolicy 等。

Blueprint Source

finance-bp-136

microsoft/autogen027ecf01 source file

Constraints

2total
2fatal
2 must-not-violate

Evidence Quality

Confidence90%

High confidence — strong evidence base

2 条不可违反的约束

FATALdomain_rule?

WHENWhen evaluating LocalCommandLineCodeExecutor for any path that may receive LLM-generated code, especially when reading the class docstring sanitization claim

ACTIONTreat LocalCommandLineCodeExecutor as having ZERO input filtering. Never use it for untrusted/LLM-generated code without (a) wrapping in DockerCommandLineCodeExecutor for container isolation, OR (b) wrapping CodeExecutorAgent with an explicit approval_func (interactive prompt, hardcoded allowlist, or model_client_approval_func). Audit any existing setup of `CodeExecutorAgent(code_executor=LocalCommandLineCodeExecutor())` — this is the documented canonical example and is unsafe by default. Maintenance-mode SLA means this docstring will NOT be corrected upstream; document the gap in your own skill/wrapper.

CONSEQUENCEundefined behavior

FATALdomain_rule?

WHENWhen choosing a CodeExecutor backend for any production deployment or any path receiving LLM-generated code

ACTIONInstantiate `DockerCommandLineCodeExecutor(work_dir='coding', image='python:3-slim')` instead of `LocalCommandLineCodeExecutor()`. Confirm Docker daemon is running before starting. Use `await code_executor.start()` / `await code_executor.stop()` (or async context manager) to manage container lifecycle. Pin the image tag explicitly to avoid silent base-image upgrades; do NOT rely on `:latest`.

CONSEQUENCEundefined behavior

常见问题

讨论 (0)

暂无讨论,成为第一个发言的人吧!

更新历史

v0.1.02026-04-25·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 microsoft/autogen v0.4 的多智能体框架(注:上游已进入维护模式),中英双语 + 51 条 anti-pattern 约束 + 3 条 FAQ。

v0.1.02026-04-25·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 microsoft/autogen v0.4 的多智能体框架(注:上游已进入维护模式),中英双语 + 51 条 anti-pattern 约束 + 3 条 FAQ。