autogen/python/packages/autogen-ext
Victor Dibia e6423bb862
Make CodeExecutor Serializable/Declarative (#5527)
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

Make
[PythonCodeExecutionTool](https://github.com/microsoft/autogen/blob/main/python/packages/autogen-ext/src/autogen_ext/tools/code_execution/_code_execution.py)
declarative so it can be used in tools like AGS

Summary of changes

- Make CodeExecutor declarative (convert from Protocol to ABC, inherit
from ComponentBase)
- Make LocalCommandLineCodeExecutor, JupyterCodeExecutor and
DockerCommandLineCodeExecutor declarative , best effort. Not all fields
are serialized, warnings are shown where appropriate.
- Make PythonCodeExecutionTool declarative.

<!-- Please give a short summary of the change and the problem this
solves. -->

## Related issue number

Closes #5526 
<!-- For example: "Closes #1234" -->

## Checks

- [ ] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.
2025-02-13 13:50:11 -08:00
..
src/autogen_ext Make CodeExecutor Serializable/Declarative (#5527) 2025-02-13 13:50:11 -08:00
tests Make CodeExecutor Serializable/Declarative (#5527) 2025-02-13 13:50:11 -08:00
LICENSE-CODE Include license file in package (#3703) 2024-10-09 15:01:09 -04:00
README.md Make package readmes slightly less empty (#4961) 2025-01-09 10:44:13 -08:00
conftest.py Split out GRPC tests (#5431) 2025-02-07 16:57:30 +00:00
pyproject.toml Improve custom agentchat agent docs with model clients (gemini example) and serialization (#5468) 2025-02-10 16:29:43 -08:00
test_filesurfer_agent.html Memory Interface in AgentChat (#4438) 2025-01-14 07:06:13 +00:00

README.md

AutoGen Extensions

AutoGen is designed to be extensible. The autogen-ext package contains many different component implementations maintained by the AutoGen project. However, we strongly encourage others to build their own components and publish them as part of the ecosytem.