CodeExecutor
autogen.coding.CodeExecutor #
Bases: Protocol
(Experimental) A code executor class that executes code blocks and returns the result.
code_extractor property
#
(Experimental) The code extractor used by this code executor.
execute_code_blocks #
(Experimental) Execute code blocks and return the result.
This method should be implemented by the code executor.
PARAMETER | DESCRIPTION |
---|---|
code_blocks | The code blocks to execute. TYPE: |
RETURNS | DESCRIPTION |
---|---|
CodeResult | The result of the code execution. TYPE: |
Source code in autogen/coding/base.py
restart #
(Experimental) Restart the code executor.
This method should be implemented by the code executor.
This method is called when the agent is reset.