Skip to content

Commit

Permalink
docstr updated for use_docker in execute_code (#233)
Browse files Browse the repository at this point in the history
* docstr updated

* fixed line 245

* Fixed line 246

* space_traling error Fix_01

* Revert space in '-'

* Fixed line 245 FIX_02

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
  • Loading branch information
Gourav2609 and qingyun-wu authored Oct 16, 2023
1 parent 1394e29 commit ea8dec7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autogen/code_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ def execute_code(
If a list or a str of image name(s) is provided, the code will be executed in a docker container
with the first image successfully pulled.
If None, False or empty, the code will be executed in the current environment.
Default is True, which will be converted into a list.
Default is None, which will be converted into an empty list when docker package is available.
Expected behaviour:
- If `use_docker` is explicitly set to True and the docker package is available, the code will run in a Docker container.
- If `use_docker` is explicitly set to True but the Docker package is missing, an error will be raised.
- If `use_docker` is not set (i.e., left default to None) and the Docker package is not available, a warning will be displayed, but the code will run natively.
If the code is executed in the current environment,
the code must be trusted.
lang (Optional, str): The language of the code. Default is "python".
Expand Down

0 comments on commit ea8dec7

Please sign in to comment.