Skip to main content

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.

PyPI License


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

Apache 2.0

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

palveron_crewai-1.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

palveron_crewai-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file palveron_crewai-1.0.0.tar.gz.

File metadata

  • Download URL: palveron_crewai-1.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for palveron_crewai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5648f62d3689b2d1f7711a9ac776c73cdc3d94c4eb973c8c28b18ccd9c1d89d3
MD5 4e4f5e43dbc642050e0fb55a41cff6ce
BLAKE2b-256 04e7355e6111fc83ba4c5c641294571dec6810b1f1c1f86138471e91f6a21c6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for palveron_crewai-1.0.0.tar.gz:

Publisher: publish.yml on palveron/adapter-crewai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file palveron_crewai-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for palveron_crewai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b3922e85fb57591ac46002d95774773d91325693ae52d58b51b03c25c1d8537
MD5 021f1f61c7310ed1a5bae581a11c8342
BLAKE2b-256 4ee1f5a4adb5ea3a8b08fc34d018e4d96e50d73ad4052ffd4bdc9e081732730e

See more details on using hashes here.

Provenance

The following attestation bundles were made for palveron_crewai-1.0.0-py3-none-any.whl:

Publisher: publish.yml on palveron/adapter-crewai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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