Skip to main content

CrewAI integration for Interven AI firewall. Scan every tool call your CrewAI agents make — block malicious requests, redact PII/secrets, route risky actions to human approval.

Project description

interven-crewai

CrewAI integration for Interven — the AI firewall for agent tool calls.

Install

pip install interven-crewai

Quickstart

from crewai import Agent, Task, Crew
from crewai_tools import SerperDevTool

from interven_crewai import guard, InterventBlockedError

search = guard(SerperDevTool(), api_key="iv_live_...")

researcher = Agent(
    role="Security Researcher",
    goal="Find relevant AI security news",
    tools=[search],
    verbose=True,
)

task = Task(
    description="Summarize the latest prompt injection research",
    expected_output="A short summary",
    agent=researcher,
)

crew = Crew(agents=[researcher], tasks=[task])

try:
    result = crew.kickoff()
    print(result)
except InterventBlockedError as e:
    print(f"Crew blocked by Interven: {e}")

What happens per tool call

Interven decision Behavior
ALLOW tool runs unchanged
SANITIZE tool runs with Interven's redacted arguments (SSN/secrets stripped)
DENY raises InterventBlockedError
REQUIRE_APPROVAL raises InterventBlockedError with approval URL

License

MIT

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

interven_crewai-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

interven_crewai-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file interven_crewai-0.1.0.tar.gz.

File metadata

  • Download URL: interven_crewai-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for interven_crewai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4e43eaadbc16a2b408ea647c9fe37d77f61cd6671dd85ddf9992fa1ef8e28f1
MD5 0ac991ead7e8e51e235f77da7ec7c468
BLAKE2b-256 6a0593b039adbfa8e6806d2495d32f57829a4e71c436dd4f654ab906d7448394

See more details on using hashes here.

File details

Details for the file interven_crewai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for interven_crewai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db91e708343bcd5b6e271d8137332d4a86d5b5c64bcef75219d9c6591eb7a0f0
MD5 f20de4a5014242ada8c794f3c5613173
BLAKE2b-256 570b9122896c1bd2d52003139758a707cc9e675e674b9394f30c24e1f91fb54b

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