LlamaIndex tool for Sandflare Firecracker microVM sandboxes — run agent-generated code safely
Project description
sandflare-llamaindex
LlamaIndex code interpreter tool for Sandflare — execute agent-generated code in isolated Firecracker microVM sandboxes.
Installation
pip install sandflare-llamaindex
Usage
from llama_index.core.agent import ReActAgent
from llama_index.llms.openai import OpenAI
from sandflare_llamaindex import SandflareCodeInterpreterTool
tool = SandflareCodeInterpreterTool(api_key="sf-...")
agent = ReActAgent.from_tools(
[tool],
llm=OpenAI(model="gpt-4o"),
verbose=True,
)
response = agent.chat("Compute the first 20 Fibonacci numbers and plot them")
print(response)
How it works
Each tool call creates a fresh Sandflare microVM sandbox, runs the code, and returns stdout/stderr to the LlamaIndex agent as a tool response.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sandflare_llamaindex-0.1.2.tar.gz.
File metadata
- Download URL: sandflare_llamaindex-0.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
802065b4a29a54fa91ed9f020a0f56a69ec88ddd9f2b791ac506523570ab7bea
|
|
| MD5 |
a5731b7f2a39b3c0f5075250971d749d
|
|
| BLAKE2b-256 |
24a523440fc565f5326c48ab10002ddf099ead49089e32f2614bfbdf5ac4db54
|
File details
Details for the file sandflare_llamaindex-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sandflare_llamaindex-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbf09121e595d8e80e0db4612d1bd2892f7ddfc53ecb06299ff24f9d7c0b6a4d
|
|
| MD5 |
c33ec999fded6796271fb92236e18ccc
|
|
| BLAKE2b-256 |
c3a986990a25971da540d9842c9d47e15ef3899f558cbb07c4fc4b3bb9c827ff
|