Skip to main content

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.

Metadata

Release files for sandflare-llamaindex 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sandflare-llamaindex 0.1.5
File Size Uploaded Provenance Actions
sandflare_llamaindex-0.1.5.tar.gz 2.4 kB Without provenance Details for sandflare_llamaindex-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sandflare-llamaindex 0.1.5
File Interpreter ABI Platform Actions
sandflare_llamaindex-0.1.5-py3-none-any.whl Python 3 none any Details for sandflare_llamaindex-0.1.5-py3-none-any.whl

Total release size: 5.1 kB

Release files / sandflare_llamaindex-0.1.5.tar.gz

Download URL sandflare_llamaindex-0.1.5.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
13331da82c7938d27b124a9efaee2128bd6d1110082910cb58fec83139dc16bb
BLAKE2b-256 checksum
How to use checksums
9ea2839ce48d91b6e63b9cbd8130c4fb602012971f3710f1e4c611f73554133b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / sandflare_llamaindex-0.1.5-py3-none-any.whl

Download URL sandflare_llamaindex-0.1.5-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b74913ac7a4cb8f615d6637398153bc73929c8f083fb7dc205f8dad13ae094dd
BLAKE2b-256 checksum
How to use checksums
26e448067310843736e21ceba7e6b99a0b6dd9d58f9bef063312d76c58c105e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for sandflare-llamaindex 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page