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.
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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72037e437169adcfbd8cbb91260ea8e488b63bb9e022166dabffddfc6c8b4518
|
|
| MD5 |
9c510fbba6bf8764c97cb1d013697014
|
|
| BLAKE2b-256 |
0252db8f753c9a5aafc23804f0e97a617dbb5211a0be175e5267e203d847b02f
|
Provenance
The following attestation bundles were made for palveron_openai_agents-1.1.0.tar.gz:
Publisher:
publish.yml on palveron/adapter-openai-agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palveron_openai_agents-1.1.0.tar.gz -
Subject digest:
72037e437169adcfbd8cbb91260ea8e488b63bb9e022166dabffddfc6c8b4518 - Sigstore transparency entry: 1572615760
- Sigstore integration time:
-
Permalink:
palveron/adapter-openai-agents@dd56dfa34809c0b75bbb37a751f7f794b7f9e8ba -
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@dd56dfa34809c0b75bbb37a751f7f794b7f9e8ba -
Trigger Event:
release
-
Statement type:
File details
Details for the file palveron_openai_agents-1.1.0-py3-none-any.whl.
File metadata
- Download URL: palveron_openai_agents-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 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 |
a242e1852fbba0838fa8c43758d23fab31969bfe352d1866877a5af227875ca3
|
|
| MD5 |
899f6913b0a51d5244f44715e8b61cec
|
|
| BLAKE2b-256 |
7c73de7d2f2bd573a55cc34941f148cde21ca8b863a3266f43181b136684485f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palveron_openai_agents-1.1.0-py3-none-any.whl -
Subject digest:
a242e1852fbba0838fa8c43758d23fab31969bfe352d1866877a5af227875ca3 - Sigstore transparency entry: 1572615771
- Sigstore integration time:
-
Permalink:
palveron/adapter-openai-agents@dd56dfa34809c0b75bbb37a751f7f794b7f9e8ba -
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@dd56dfa34809c0b75bbb37a751f7f794b7f9e8ba -
Trigger Event:
release
-
Statement type: