Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using E2B with Tool Class #110

Open
sumitbindra opened this issue Jan 8, 2025 · 0 comments
Open

Using E2B with Tool Class #110

sumitbindra opened this issue Jan 8, 2025 · 0 comments

Comments

@sumitbindra
Copy link

When using E2B to run code remotely with a custom tool (inherited from Tool), I get errors like:

Name 'os' is undefined.
Name 'json' is undefined.

  • They are both standard python libs so not sure why I am getting this error. Any ideas?

  • Also is there a way to specify importing 'pandas as pd' etc?

supabase_data = SupabaseDataTool()

data_agent = CodeAgent(
    tools=[supabase_data],  
    model=model,
    additional_authorized_imports=['pandas', 'numpy', 'supabase'],
    max_steps=10,
    use_e2b_executor=True,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant