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.9.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.

aport_agent_guardrails_crewai-1.0.9-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.9.tar.gz
Algorithm Hash digest
SHA256 d326a25887f35c396ab0e1880ee094d3152ffe49d57325459e9f236ee06bdc51
MD5 a489430135b857596d46eb7732fa617c
BLAKE2b-256 b67feb64eb133667abc755679250c40663d5302a4ee8a169b6ae12bb0a1a7de1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e7daac03af2d70add38638255f84cd78313a75fa4c694ba05ee7681472092e89
MD5 163c83ae7147dd845f848cac023578f3
BLAKE2b-256 de659606aebff0ce3799d0404cc9fec7b554d155c4d8396bec320208b84a8413

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