Skip to main content

Official Palveron integration for the OpenAI Agents SDK — drop-in middleware for policy enforcement, PII masking, and audit trails.

Project description

palveron-openai-agents

PALVERON AI Governance for the OpenAI Agents SDK — input and output guardrails with audit trails.

PyPI License

Installation

pip install palveron-openai-agents

Quick Start

from agents import Agent
from palveron_openai_agents import palveron_input_guardrail, palveron_output_guardrail

agent = Agent(
    name="assistant",
    instructions="You are a helpful assistant.",
    input_guardrails=[palveron_input_guardrail(api_key="pv_live_xxx")],
    output_guardrails=[palveron_output_guardrail(api_key="pv_live_xxx")],
)

# Inputs with PII → blocked before the agent sees them
# Outputs with secrets → blocked before the user sees them

How It Works

Guardrail When What happens on BLOCKED
palveron_input_guardrail Before agent processes input Raises GuardrailTripwireTriggered
palveron_output_guardrail Before output reaches user Raises GuardrailTripwireTriggered

Every check creates an immutable trace in your PALVERON project for audit and compliance.

Configuration

guardrail = palveron_input_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
)

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_openai_agents-1.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

palveron_openai_agents-1.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file palveron_openai_agents-1.1.0.tar.gz.

File metadata

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

File hashes

Hashes for palveron_openai_agents-1.1.0.tar.gz
Algorithm Hash digest
SHA256 72037e437169adcfbd8cbb91260ea8e488b63bb9e022166dabffddfc6c8b4518
MD5 9c510fbba6bf8764c97cb1d013697014
BLAKE2b-256 0252db8f753c9a5aafc23804f0e97a617dbb5211a0be175e5267e203d847b02f

See more details on using hashes here.

Provenance

The following attestation bundles were made for palveron_openai_agents-1.1.0.tar.gz:

Publisher: publish.yml on palveron/adapter-openai-agents

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_openai_agents-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for palveron_openai_agents-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a242e1852fbba0838fa8c43758d23fab31969bfe352d1866877a5af227875ca3
MD5 899f6913b0a51d5244f44715e8b61cec
BLAKE2b-256 7c73de7d2f2bd573a55cc34941f148cde21ca8b863a3266f43181b136684485f

See more details on using hashes here.

Provenance

The following attestation bundles were made for palveron_openai_agents-1.1.0-py3-none-any.whl:

Publisher: publish.yml on palveron/adapter-openai-agents

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