Skip to content

Commit 015070b

Browse files
authored
change code_execution_config default (#1518)
1 parent b0c1f8d commit 015070b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

autogen/agentchat/assistant_agent.py

-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def __init__(
3737
is_termination_msg: Optional[Callable[[Dict], bool]] = None,
3838
max_consecutive_auto_reply: Optional[int] = None,
3939
human_input_mode: Optional[str] = "NEVER",
40-
code_execution_config: Optional[Union[Dict, Literal[False]]] = False,
4140
description: Optional[str] = None,
4241
**kwargs,
4342
):
@@ -64,7 +63,6 @@ def __init__(
6463
is_termination_msg,
6564
max_consecutive_auto_reply,
6665
human_input_mode,
67-
code_execution_config=code_execution_config,
6866
llm_config=llm_config,
6967
description=description,
7068
**kwargs,

autogen/agentchat/conversable_agent.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(
7070
max_consecutive_auto_reply: Optional[int] = None,
7171
human_input_mode: Optional[str] = "TERMINATE",
7272
function_map: Optional[Dict[str, Callable]] = None,
73-
code_execution_config: Union[Dict, Literal[False]] = {},
73+
code_execution_config: Union[Dict, Literal[False]] = False,
7474
llm_config: Optional[Union[Dict, Literal[False]]] = None,
7575
default_auto_reply: Optional[Union[str, Dict, None]] = "",
7676
description: Optional[str] = None,
@@ -108,7 +108,8 @@ def __init__(
108108
If False, the code will be executed in the current environment.
109109
We strongly recommend using docker for code execution.
110110
- timeout (Optional, int): The maximum execution time in seconds.
111-
- last_n_messages (Experimental, Optional, int or str): The number of messages to look back for code execution. If set to 'auto', it will scan backwards through all messages arriving since the agent last spoke, which is typically the last time execution was attempted. (Default: auto)
111+
- last_n_messages (Experimental, int or str): The number of messages to look back for code execution.
112+
If set to 'auto', it will scan backwards through all messages arriving since the agent last spoke, which is typically the last time execution was attempted. (Default: auto)
112113
llm_config (dict or False): llm inference configuration.
113114
Please refer to [OpenAIWrapper.create](/docs/reference/oai/client#create)
114115
for available options.

autogen/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.9"
1+
__version__ = "0.2.10"

0 commit comments

Comments
 (0)