e2b-cookbook  by e2b-dev

Cookbook for E2B SDK examples and guides

Created 2 years ago
1,121 stars

Top 34.2% 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

3 weeks ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
31 stars in the last 30 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
6 more.

rivet by Ironclad

0.3%
4k
Visual IDE for AI agent and prompt-chaining development
Created 2 years ago
Updated 4 weeks ago
Feedback? Help us improve.