Skip to main content
E2B can work with any LLM and AI framework. The easiest way to connect an LLM to E2B is to use the tool use capabilities of the LLM (sometimes known as function calling). If the LLM doesn’t support tool use, you can, for example, prompt the LLM to output code snippets and then manually extract the code snippets with RegEx.

Contents


OpenAI

Simple

Function calling


Anthropic

Simple

Function calling


Mistral

Simple

Function calling


Groq


Vercel AI SDK

Vercel’s AI SDK offers support for multiple different LLM providers through a unified JavaScript interface that’s easy to use.

Simple

Function calling


CrewAI

CrewAI is a platform for building AI agents.

LangChain

LangChain offers support multiple different LLM providers.

Simple

Agent

Function calling


LlamaIndex

LlamaIndex offers support multiple different LLM providers.

Ollama


Hugging Face

Hugging Face offers support for serverless inference for models on their model hub with Hugging Face’s Inference API.
Note that not every model on Hugging Face has native support for tool use and function calling.