LocalCommandLineCodeExecutorName | Description |
---|---|
timeout | Type: int Default: 60 |
virtual_env_context | Type: types.SimpleNamespace | None Default: None |
work_dir | Type: pathlib.Path | str Default: PosixPath(’.’) |
functions | Type: list[FunctionWithRequirements[typing.Any, ~A] | Callable[…, Any] | FunctionWithRequirementsStr] Default: [] |
functions_module | Type: str Default: ‘functions’ |
execution_policies | Type: dict[str, bool] | None Default: None |
Name | Description |
---|---|
lang | Type: str |
code | Type: str |
Name | Description |
---|---|
code_blocks | The code blocks to execute. Type: list[CodeBlock] |
Type | Description |
---|---|
autogen.coding.base.CommandLineCodeResult | CommandLineCodeResult: The result of the code execution. |
$module_name
: The module name.$functions
: The functions formatted as stubs with two newlines between each function.Name | Description |
---|---|
prompt_template | The prompt template. Default is the class default. Type: str Default: ‘You have access to the following user defined functions. They can be accessed from the module called $module_name by their function names.\n\nFor example, if there was a function called foo you could import it by writing from $module_name import foo \n\n$functions’ |
Type | Description |
---|---|
str | str: The formatted prompt. |