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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.25.tar.gz
Algorithm Hash digest
SHA256 9c3bf0bb0b9de007a88dbd3a3f957b2437f3a04d294bd68e39f227e7d7dfa991
MD5 bfd1042681d590f78ce9092586c88fe2
BLAKE2b-256 733a4b5409b17dea3625b21d31e68682765a724750eff613601ef26901e86ce9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 318f440db65fc7a7d3106ad5cb0726412f6a028baad40cd4b0130caaa3621eb4
MD5 d8b026ffd024065e8cdce5c4eb3f2cc7
BLAKE2b-256 ce11c22038be611a652dfd7dedd2e15e7a8a1bdba9a48b8ad18748b43358dd4b

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