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 — pre-action authorization for CrewAI via the before_tool_call hook. Tool execution is verified against your passport and policy; deny → execution is blocked. 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.15.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.15.tar.gz.

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.15.tar.gz
Algorithm Hash digest
SHA256 76f04ac70605a156cc907266ae27654e9151ff0fa93a256fb40f40fde1d2c149
MD5 372638d29c7750e16da2fac82d874801
BLAKE2b-256 d7be9782d7e130f90b66494efa97c6a3346eea0b50bc4f41103d6606fd23007f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 e23dee9807b5afcf9a28b7675c01df10e106a23f88181b421cf1c5e5ab54b152
MD5 a2522945d7db01d0e669edbb80213c8a
BLAKE2b-256 52cf99c35bf556ca4814cabebf6696e5cd82a3b4866aa58d248c3969204f1093

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