E2BInterpreter
- require_confirm (bool, optional): If True, prompt user before running code strings for security. (default: :obj:
True
) Environment Variables: - E2B_API_KEY: The API key for authenticating with the E2B service.
- E2B_DOMAIN: The base URL for the E2B API. If not provided, will use the default E2B endpoint.
init
del
run
- code (str): The code string to execute.
- code_type (str): The type of code to execute (e.g., ‘python’, ‘bash’). (default: obj:
python
)
supported_code_types
update_action_space
execute_command
- command (str): The command to execute.