mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-12 19:40:40 +00:00

This PR introduces a safer and more controllable execution environment for LLM code execution in version 0.4 by enabling the use of Jupyter inside a container. This enhancement addresses security concerns and provides a more robust execution context. In particular, it allows: Isolation of code execution via containerized Jupyter environments. Persistent memory of variables and their values throughout the conversation. Memory of code execution results to support more advanced reasoning and follow-up tasks. These improvements help build a more interactive and stateful LLM-agent programming experience, especially for iterative code generation and debugging scenarios. ## Related issue number Open #6153 ## Checks - [x] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [x] I've made sure all auto checks have passed. --------- Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>