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.0.0.tar.gz (5.3 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.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: palveron_openai_agents-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 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.0.0.tar.gz
Algorithm Hash digest
SHA256 ffddf43cd9002386e98a21146e50b156ee69715bda87aa4e3247198bd8dc3719
MD5 8f7500cf9712deeb8b882cd534fb15f8
BLAKE2b-256 7b569ed6d5086733737e25e550a684435cdb3eb1e96c011d8e354a72512d399d

See more details on using hashes here.

Provenance

The following attestation bundles were made for palveron_openai_agents-1.0.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.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for palveron_openai_agents-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 303d526c5c5f14f2ff7139c62c1f0df2a6fb4efcebdf18040529106bf3b71b76
MD5 8864c9f8232ba0cb0de84caf02d233f5
BLAKE2b-256 20898610701ffc81a38fcc3d3b9545a42e8f66628f6b1babb0ddd7bc0a90eefd

See more details on using hashes here.

Provenance

The following attestation bundles were made for palveron_openai_agents-1.0.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