Skip to main content

APort Agent Guardrail for CrewAI — before_tool_call hook for AI agent and multi-agent crews

Project description

APort Agent Guardrail for CrewAI

APort Agent Guardrail for CrewAI — released CrewAI compatibility mode via the existing before_tool_call hook. Tool execution is verified against your passport and policy; deny blocks execution. Built for AI agent and multi-agent crews.

Install

pip install aport-agent-guardrails-crewai
aport-crewai setup

Usage

from aport_guardrails_crewai import register_aport_guardrail

register_aport_guardrail()
crew.kickoff()

Or use the with_aport_guardrail decorator on your entry point. See docs/frameworks/crewai.md.

API

  • aport_guardrail_before_tool_call(context) — Hook compatible with @before_tool_call; returns False to block, None to allow.
  • register_aport_guardrail() — Registers the hook globally.
  • with_aport_guardrail — Decorator that registers the hook then runs the wrapped function.

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

aport_agent_guardrails_crewai-1.0.28.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file aport_agent_guardrails_crewai-1.0.28.tar.gz.

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.28.tar.gz
Algorithm Hash digest
SHA256 3f35d9f46403bc67a0a6b42aa5ad20ab662569b6dbbf69cad1c656832ee69f5e
MD5 c44cad43dc6634b88216a8ce7b854c42
BLAKE2b-256 5ebc565c031b02466e96fae5824c30d396f1e44f275dd95c957061ce96688855

See more details on using hashes here.

File details

Details for the file aport_agent_guardrails_crewai-1.0.28-py3-none-any.whl.

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 bccfaee7280e4dda2e0e10029dd4af5787ecf4d46b7e7445d5bd33263cbb3cbe
MD5 3d3b5dab21d10d53c3f12a971332137b
BLAKE2b-256 55f872c14c73a039ea45317d12bf1182b991a61939fda67fe646db2786ac8cd1

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