Skip to content

E2BProvider missing run_code for rich code execution output #24

@omavashia2005

Description

@omavashia2005

HopxProvider exposes a run_code method that executes code via a language kernel and captures rich MIME outputs (matplotlib plots, pandas DataFrames, HTML, etc.). E2BProvider has no equivalent, though it is easily extensible using the official E2B Code Interpreter SDK.

The e2b_code_interpreter package provides AsyncSandbox.run_code with identical semantics and is already a declared dependency. E2BProvider should wrap it and expose the same interface as HopxProvider.run_code.

Expected:

await provider.run_code(sandbox_id, code="...") 

returns {success, stdout, stderr, exit_code, execution_time, rich_outputs} on E2B sandboxes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions