AutoGen 多智能体(维护模式)
AutoGen v0.4:asyncio actor-runtime 多智能体框架(autogen-core / autogen-agentchat / autogen-ext 三包)。
晶体简介
Constraints
Evidence Quality
High confidence — strong evidence base
2 条不可违反的约束
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
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.0: 首次发布到 Doramagic.ai。基于 microsoft/autogen v0.4 的多智能体框架(注:上游已进入维护模式),中英双语 + 51 条 anti-pattern 约束 + 3 条 FAQ。
v0.1.0: 首次发布到 Doramagic.ai。基于 microsoft/autogen v0.4 的多智能体框架(注:上游已进入维护模式),中英双语 + 51 条 anti-pattern 约束 + 3 条 FAQ。