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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.23.tar.gz
Algorithm Hash digest
SHA256 bb13f29fbd1430e92b225dd6a5a3b94f03012956b74ebbc8f87ff6a223dfbf09
MD5 c0a06cdab67c7d40fb889058cd2c8dc8
BLAKE2b-256 2ebab654cf7c710138b3de1a36fc6153b422013516ab36c244b7aa4d62aac98d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aport_agent_guardrails_crewai-1.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 baf32bb5e38043cda7c9d8b16834ad66d2ce0eaa50d6a43346d78b6f9a5b1d10
MD5 0f9c5be1bf14d246dbd1e86fc70260aa
BLAKE2b-256 17d4b9a545edac06524fcbea924104c8958dcc23e3b0b6a60b33d26a653a20fe

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