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; returnsFalseto block,Noneto allow.register_aport_guardrail()— Registers the hook globally.with_aport_guardrail— Decorator that registers the hook then runs the wrapped function.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aport_agent_guardrails_crewai-1.0.13.tar.gz.
File metadata
- Download URL: aport_agent_guardrails_crewai-1.0.13.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36f7fe1a8a834485e45dabd8d3c4dc11b6a360223f44b0d0e50031054333d72b
|
|
| MD5 |
af4acaa107cc93293d47475fc7a32f3b
|
|
| BLAKE2b-256 |
6e7767d6d61ff639a78d5cdf08dd0e325929567884f30de8985e5e348ecf3bcb
|
File details
Details for the file aport_agent_guardrails_crewai-1.0.13-py3-none-any.whl.
File metadata
- Download URL: aport_agent_guardrails_crewai-1.0.13-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0b49dc0982975f5c24fd7a1bb64c4866aff598d3f250f933aeabb1a4ce0176e
|
|
| MD5 |
8358005cfaf7c826fa88e705056f7340
|
|
| BLAKE2b-256 |
0035c66eb1f49f24c9f8d34ba33615e2ec4a299b7a289de8241ea48616b99136
|