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.1.tar.gz (2.8 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.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sandflare_crewai-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 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.1.tar.gz
Algorithm Hash digest
SHA256 18f93cff4ce12aabdaa49113783bd2f826913827b1b3c4f72d9b7fb97cf83320
MD5 65f44665b47c24f343d99f5829d346fa
BLAKE2b-256 343585dfd5da4bb879eb4a1bcfef3128419954428aa52143ad8df1baf2863809

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sandflare_crewai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9f06192f333929a4c63e0af6db25d2be587cc29b8f676c2d38a8fec2ba169c2
MD5 0aa049990e89dd63425479c7008eca45
BLAKE2b-256 0803f68c4e15e20323d0d1e7a7b00971472225e842fb9c6c382885b38c2d6d6e

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