Skip to main content

CodeExecutor

(Experimental) A code executor class that executes code blocks and returns the result. Parameters:

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: Returns:

restart

(Experimental) Restart the code executor.
This method should be implemented by the code executor.
This method is called when the agent is reset.