A programming framework for agentic AI
change code_execution_config default (#1518)
Chi Wang015070b6047d
diff --git a/autogen/agentchat/assistant_agent.py b/autogen/agentchat/assistant_agent.pyindex ffb2e598d..bdec0fef6 100644--- a/autogen/agentchat/assistant_agent.py+++ b/autogen/agentchat/assistant_agent.py@@ -37,7 +37,6 @@ Reply "TERMINATE" in the end when everything is done.is_termination_msg: Optional[Callable[[Dict], bool]] = None,max_consecutive_auto_reply: Optional[int] = None,human_input_mode: Optional[str] = "NEVER",- code_execution_config: Optional[Union[Dict, Literal[False]]] = False,description: Optional[str] = None,**kwargs,):@@ -64,7 +63,6 @@ Reply "TERMINATE" in the end when everything is done.is_termination_msg,max_consecutive_auto_reply,human_input_mode,- code_execution_config=code_execution_config,llm_config=llm_config,description=description,**kwargs,diff --git a/autogen/agentchat/conversable_agent.py b/autogen/agentchat/conversable_agent.pyindex 348f14f54..ecb1c9965 100644--- a/autogen/agentchat/conversable_agent.py+++ b/autogen/agentchat/conversable_agent.py@@ -70,7 +70,7 @@ class ConversableAgent(Agent):max_consecutive_auto_reply: Optional[int] = None,human_input_mode: Optional[str] = "TERMINATE",function_map: Optional[Dict[str, Callable]] = None,- code_execution_config: Union[Dict, Literal[False]] = {},+ code_execution_config: Union[Dict, Literal[False]] = False,llm_config: Optional[Union[Dict, Literal[False]]] = None,default_auto_reply: Optional[Union[str, Dict, None]] = "",description: Optional[str] = None,@@ -108,7 +108,8 @@ class ConversableAgent(Agent):If False, the code will be executed in the current environment.We strongly recommend using docker for code execution.- timeout (Optional, int): The maximum execution time in seconds.- - 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)+ - last_n_messages (Experimental, 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)llm_config (dict or False): llm inference configuration.Please refer to [OpenAIWrapper.create](/docs/reference/oai/client#create)for available options.diff --git a/autogen/version.py b/autogen/version.pyindex 75cf7831c..6232f7ab1 100644--- a/autogen/version.py+++ b/autogen/version.py@@ -1 +1 @@-__version__ = "0.2.9"+__version__ = "0.2.10"