Official Palveron CrewAI integration — task-level governance for multi-agent crews, with policy enforcement and audit trails.
Project description
palveron-crewai
PALVERON AI Governance adapter for CrewAI — task guardrails, step callbacks, and audit trails for every crew execution.
Add one guardrail function. Every task output gets checked against your PALVERON governance policies. PII is caught. Blocked outputs trigger retries. Everything gets an audit trail.
Installation
pip install palveron-crewai
Quick Start: Task Guardrail
from crewai import Agent, Task, Crew
from palveron_crewai import palveron_guardrail
# Create PALVERON guardrail
guardrail = palveron_guardrail(api_key="pv_live_xxx")
# Attach to any task
report_task = Task(
description="Write a customer analysis report",
expected_output="A report with customer insights",
agent=analyst_agent,
guardrail=guardrail, # ← PALVERON governance
guardrail_max_retries=2, # Retry if blocked
)
If the agent's output contains PII, secrets, or violates your policies, CrewAI automatically retries the task with PALVERON feedback.
Quick Start: Step Callback
from palveron_crewai import PalveronStepCallback
callback = PalveronStepCallback(api_key="pv_live_xxx")
crew = Crew(
agents=[researcher, writer],
tasks=[research_task, write_task],
step_callback=callback, # ← Every step governed
)
result = crew.kickoff(inputs={"topic": "AI Safety"})
# Governance summary
print(f"Checked: {callback.check_count}, Blocked: {callback.blocked_count}")
print(f"Traces: {callback.trace_ids}")
Combined Governance
from palveron_crewai import PalveronCrewGovernance
gov = PalveronCrewGovernance(api_key="pv_live_xxx")
task = Task(..., guardrail=gov.task_guardrail())
crew = Crew(..., step_callback=gov.step_callback())
result = crew.kickoff(inputs={...})
print(gov.summary()) # {"checks": 12, "blocked": 1, "trace_ids": [...]}
Configuration
guardrail = palveron_guardrail(
api_key="pv_live_xxx",
base_url="https://gateway.internal.corp:8080", # On-prem
fail_open=False, # Block on gateway errors (default)
metadata={"team": "ml"}, # Extra metadata on traces
)
How It Works
| Decision | Guardrail Behavior |
|---|---|
ALLOWED |
(True, output) — task proceeds |
MODIFIED |
(True, sanitized_output) — proceeds with PII redacted |
BLOCKED |
(False, feedback) — CrewAI retries with PALVERON feedback |
Links
License
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 palveron_crewai-1.1.0.tar.gz.
File metadata
- Download URL: palveron_crewai-1.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2eeb6342a167b9a0ffac162c758175a83a228f24f764a53501bf52328a972629
|
|
| MD5 |
b1301faa963f4034a7fa0dbb559601a2
|
|
| BLAKE2b-256 |
612ee8161fcfdbf30a7906b149984e12180fc14b671cc5bac10239c52e26ecad
|
Provenance
The following attestation bundles were made for palveron_crewai-1.1.0.tar.gz:
Publisher:
publish.yml on palveron/adapter-crewai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palveron_crewai-1.1.0.tar.gz -
Subject digest:
2eeb6342a167b9a0ffac162c758175a83a228f24f764a53501bf52328a972629 - Sigstore transparency entry: 1572614178
- Sigstore integration time:
-
Permalink:
palveron/adapter-crewai@ccff1e37621b01f6c90c73be264a48caf35dfb9d -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/palveron
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ccff1e37621b01f6c90c73be264a48caf35dfb9d -
Trigger Event:
release
-
Statement type:
File details
Details for the file palveron_crewai-1.1.0-py3-none-any.whl.
File metadata
- Download URL: palveron_crewai-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81da3dabab067a0e10e9ffa2f130fe454fa71b42edb11b69af8ab1eeb65d58fd
|
|
| MD5 |
05b66d369dbe37260337c85e0d9b7b9b
|
|
| BLAKE2b-256 |
4d0c8e8e9294aca4e88663cd711468ce9569c66c6179a32a0213a153ded8edc0
|
Provenance
The following attestation bundles were made for palveron_crewai-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on palveron/adapter-crewai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palveron_crewai-1.1.0-py3-none-any.whl -
Subject digest:
81da3dabab067a0e10e9ffa2f130fe454fa71b42edb11b69af8ab1eeb65d58fd - Sigstore transparency entry: 1572614219
- Sigstore integration time:
-
Permalink:
palveron/adapter-crewai@ccff1e37621b01f6c90c73be264a48caf35dfb9d -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/palveron
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ccff1e37621b01f6c90c73be264a48caf35dfb9d -
Trigger Event:
release
-
Statement type: