Skip to main content

CrewAI tool for Sandflare Firecracker microVM sandboxes — run agent-generated code safely

Project description

sandflare-crewai

CrewAI tool integration for Sandflare — run agent-generated code in isolated Firecracker microVM sandboxes.

Installation

pip install sandflare-crewai

Usage

from crewai import Agent, Task, Crew
from sandflare_crewai import SandflareCodeTool

code_tool = SandflareCodeTool(api_key="sf-...")

coder = Agent(
    role="Python Developer",
    goal="Write and execute Python code to solve tasks",
    tools=[code_tool],
    llm="gpt-4o",
)

task = Task(
    description="Fetch the top 5 HN stories and print their titles",
    agent=coder,
)

Crew(agents=[coder], tasks=[task]).kickoff()

How it works

Each SandflareCodeTool call creates a fresh Sandflare microVM sandbox, executes the code safely, and returns the output to the CrewAI agent.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sandflare_crewai-0.1.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sandflare_crewai-0.1.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file sandflare_crewai-0.1.2.tar.gz.

File metadata

  • Download URL: sandflare_crewai-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sandflare_crewai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8cf39d32d43ddffe67013caca52a1ff48a6dfc1f8ec5b385184bf709de4855c6
MD5 e5514178e14259cd48f3b49e9772c99e
BLAKE2b-256 036e15459e2d6060ffa40e5d0f6ded41b47df6241da557fb55de5f7b8f8c3fd4

See more details on using hashes here.

File details

Details for the file sandflare_crewai-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sandflare_crewai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd1f31d33bb25881838626d4714352d23ca247828945aab7238891277a7770ba
MD5 d68349e061e39c16842b96be1737af33
BLAKE2b-256 1779bbff8569cae6c16eae21e0f471bfe1c5c28fe892453f3a66df34ad0da811

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page