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.3.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.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sandflare_crewai-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 af75d37b503fd6e54eb6edcdcdd18bb75b77ee8150c84c39f4442bbe8dc15861
MD5 36a4d493230a5f2cce5412a8a67fe6e6
BLAKE2b-256 04b4138bcf9672c304dc62d75cb447691a570de7a5e6240ba57e6c3bed25c3ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sandflare_crewai-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a9979317688cb6926528fc61c73e9d9cebef83cf7875a124a3c6dd13fcd711d8
MD5 66d5fef782dd83508e3fa56253ceae20
BLAKE2b-256 a252d3ae64e4fd53326dc60bbf31c13c41ecf0751b77851450d5b259d9961c34

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