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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sandflare_crewai-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 44cfb29c006162d62cd573d4053c0ad0d386318324ea1ff3aa757bc0346bddc0
MD5 c9e240b860f5df53275099e9c229503b
BLAKE2b-256 fe6dd5aa1e297666d9b9730dbfa2e7c235810a0e0621e0915c26b641b919ee48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sandflare_crewai-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3f89fc810182c3329e8360bfa4eb5ada153db6bc4bfef9101b9b49764de1dc37
MD5 2d4e283e769e5aeeeeadab5aa7e2eb13
BLAKE2b-256 bc1010d5347122285b0aa513257b7dfdf7f520f315d7761b1c3a2e36becd11ac

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