CodeExecutorFactory

CodeExecutorFactory()

(Experimental) A factory class for creating code executors.

Static Methods

create

create(code_execution_config: autogen.coding.base.CodeExecutionConfig) -> autogen.coding.CodeExecutor

(Experimental) Get a code executor based on the code execution config.

Parameters:
NameDescription
code_execution_configThe code execution config, which is a dictionary that must contain the key “executor”.

The value of the key “executor” can be either a string or an instance of CodeExecutor, in which case the code executor is returned directly.

Type: autogen.coding.base.CodeExecutionConfig
Returns:
TypeDescription
autogen.coding.CodeExecutorCodeExecutor: The code executor.