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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.27.tar.gz
Algorithm Hash digest
SHA256 4dcdab6b0ab416e911d4dbfb3d017ce6d38f182efed406a5acb19b8675d0e8f9
MD5 f35fe1cd91437a44e15fb981819f37f6
BLAKE2b-256 57a9a89448da822a5725fcdc60798bb519db9bd20ba6a5b66c77479eb2c3db49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.27-py3-none-any.whl
Algorithm Hash digest
SHA256 3993196d0137e7ad4d55163ca0e8f8c0a5653ca07c9e1f5c22bfcb1014283300
MD5 1603e322d4e4393a43b9777c436995aa
BLAKE2b-256 db25961b107994771cd446b581eaa8a30f701519ab275c595369463735a5717c

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