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.14.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.14.tar.gz.

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.14.tar.gz
Algorithm Hash digest
SHA256 be8db875d644527cd510cf52d69981e5674affdc3ba2f2a40c9964f466bae35a
MD5 cc305e859129a406c541968379d6fffe
BLAKE2b-256 6b19d27288d7e31f9c8572ec7ea055ff93dcad5c05abe3f964bc29ca8c9525b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 34742cb8cc57b664c2e4487de2a4352f3761671e3394d6e77dc09c1922a7cc39
MD5 f978276911452fc71cbdd05d7aac9db6
BLAKE2b-256 4d1d52b44fc71d7098fc39cb357f4dec9d99578de245c21e448d71f7e146663c

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