-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lspinheiro/chore/migrate azure executor autogen ext (#3652)
* migrate code executor and tests * update extras * update dependencies and examples * fix imports * fix uv lock * add code_executor to toctree --------- Co-authored-by: Leonardo Pinheiro <[email protected]> Co-authored-by: Eric Zhu <[email protected]>
- Loading branch information
1 parent
ffb16d5
commit 53e5951
Showing
12 changed files
with
319 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 18 additions & 4 deletions
22
python/packages/autogen-core/src/autogen_core/components/code_executor/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
from ._base import CodeBlock, CodeExecutor, CodeResult | ||
from ._func_with_reqs import Alias, FunctionWithRequirements, Import, ImportFromModule, with_requirements | ||
from ._impl.azure_container_code_executor import AzureContainerCodeExecutor | ||
from ._func_with_reqs import ( | ||
Alias, | ||
FunctionWithRequirements, | ||
FunctionWithRequirementsStr, | ||
Import, | ||
ImportFromModule, | ||
build_python_functions_file, | ||
to_stub, | ||
with_requirements, | ||
) | ||
from ._impl.command_line_code_result import CommandLineCodeResult | ||
from ._impl.docker_command_line_code_executor import DockerCommandLineCodeExecutor | ||
from ._impl.local_commandline_code_executor import LocalCommandLineCodeExecutor | ||
from ._impl.utils import get_required_packages, lang_to_cmd | ||
from ._utils import extract_markdown_code_blocks | ||
|
||
__all__ = [ | ||
"AzureContainerCodeExecutor", | ||
"LocalCommandLineCodeExecutor", | ||
"CommandLineCodeResult", | ||
"CodeBlock", | ||
"CodeResult", | ||
"CodeExecutor", | ||
"CodeResult", | ||
"Alias", | ||
"ImportFromModule", | ||
"Import", | ||
"FunctionWithRequirements", | ||
"FunctionWithRequirementsStr", | ||
"with_requirements", | ||
"to_stub", | ||
"extract_markdown_code_blocks", | ||
"get_required_packages", | ||
"build_python_functions_file", | ||
"DockerCommandLineCodeExecutor", | ||
"get_required_packages", | ||
"lang_to_cmd", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
python/packages/autogen-ext/src/autogen_ext/code_executor/aca_dynamic_sessions/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from ._azure_container_code_executor import AzureContainerCodeExecutor | ||
|
||
__all__ = [ | ||
"AzureContainerCodeExecutor", | ||
] |
Oops, something went wrong.