coding
autogen.coding.CodeExecutor
CodeExecutor
(Experimental) A code executor class that executes code blocks and returns the result.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
Instance Attributes
code_extractor
(Experimental) The code extractor used by this code executor.
Instance Methods
execute_code_blocks
(Experimental) Execute code blocks and return the result.
This method should be implemented by the code executor.
Parameters:Name | Description |
---|---|
code_blocks | The code blocks to execute. Type: list[CodeBlock] |
Type | Description |
---|---|
autogen.coding.CodeResult | CodeResult: The result of the code execution. |
restart
(Experimental) Restart the code executor.
This method should be implemented by the code executor.
This method is called when the agent is reset.