e2b-cookbook  by e2b-dev

Cookbook for E2B SDK examples and guides

created 1 year ago
1,055 stars

Top 36.4% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides example code and guides for building applications using the E2B SDK, targeting developers who want to integrate AI agents and code execution capabilities into their projects. It showcases how to leverage various LLM providers and AI frameworks for tasks like data analysis, code interpretation, and web scraping.

How It Works

The E2B SDK enables developers to create AI agents that can execute code within secure, sandboxed environments. These agents can interact with various LLM providers (OpenAI, Anthropic, Mistral, etc.) and utilize tools like code interpreters for data analysis, machine learning, and reasoning on image data. The examples demonstrate integrations with popular AI frameworks such as LangChain, LangGraph, and Autogen, facilitating complex agentic workflows.

Quick Start & Requirements

  • Install: pip install e2b (Python), or use provided TypeScript examples.
  • Prerequisites: Node.js (for TypeScript examples), Python 3.x. Access to LLM provider APIs (API keys may be required).
  • Resources: Examples cover diverse use cases, from simple "Hello World" to complex data analysis and web scraping.
  • Docs: E2B website, Official E2B documentation

Highlighted Details

  • Supports a wide range of LLM providers including OpenAI, Anthropic, Mistral, Groq, Fireworks AI, WatsonX AI, and Together AI.
  • Demonstrates integration with AI frameworks like LangChain, LangGraph, and Autogen for building sophisticated AI agents.
  • Features examples for running Playwright within E2B environments and executing code within Docker containers.
  • Showcases use cases such as data analysis, interactive chart creation, web scraping, and LLM-powered application generation.

Maintenance & Community

The project is actively maintained by the E2B team. Community channels and further resources are available via the E2B website.

Licensing & Compatibility

The repository contains example code, and the E2B SDK itself is typically available under a permissive license suitable for commercial use. Specific license details for the SDK should be verified on the official E2B documentation.

Limitations & Caveats

The examples are illustrative and may require specific LLM API keys or configurations. Some advanced use cases might have associated costs with LLM API usage.

Health Check
Last commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
0
Star History
118 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), and
6 more.

E2B by e2b-dev

0.7%
9k
Open-source cloud runtime for AI apps and agents
created 2 years ago
updated 1 day ago
Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Taranjeet Singh Taranjeet Singh(Cofounder of Mem0), and
1 more.

fragments by e2b-dev

0.6%
6k
Next.js template for AI-generated apps
created 1 year ago
updated 1 week ago
Starred by Wes McKinney Wes McKinney(Author of Pandas), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
9 more.

autogen by microsoft

0.6%
48k
Agentic framework for multi-agent AI applications
created 1 year ago
updated 1 day ago
Feedback? Help us improve.