Reva AI agent authorization, proxy, and observability SDK (FastAPI, LangChain, LangGraph, CrewAI, AutoGen, MCP)
Project description
Reva AI SDK
Installable Python SDK for Reva AI authorization, discovery, and proxy helpers. It lets your agents (FastAPI, LangChain, LangGraph, CrewAI, AutoGen) and MCP servers enforce decisions from the Reva Trust Gateway (RTG / PDP) on every hop.
Installation
pip install reva-ai-authz
Requires Python 3.10+.
Quick start
from reva_ai.sdk.ai import reva_ai_authorise
RTG Authentication
Set RTG_AUTH_TOKEN when the Reva platform requires a per-tenant API key in
addition to RTG_URL.
export RTG_URL="https://rtg.example.com"
export RTG_AUTH_TOKEN="..."
When RTG_AUTH_TOKEN is set, SDK calls to RTG PDP evaluation, token
enrichment, final-turn recording, and discovery logging include the API key on
a dedicated header:
X-API-Token: <RTG_AUTH_TOKEN>
Authorization: Bearer <end-user JWT> # unchanged
The Authorization header is left untouched so it continues to carry the
end-user token that PDP needs for policy evaluation. The gateway prefers
X-API-Token for perimeter authentication and falls back to Authorization
only when X-API-Token is absent. If RTG_AUTH_TOKEN is unset, the SDK adds
no X-API-Token header.
License
Proprietary — © Reva AI, Inc. All rights reserved. Use of this SDK requires a valid commercial agreement with Reva. See the LICENSE file for terms. For licensing inquiries, contact legal@reva.ai.
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 reva_ai_authz-1.0.0.tar.gz.
File metadata
- Download URL: reva_ai_authz-1.0.0.tar.gz
- Upload date:
- Size: 85.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fb58ef256a547b7693d4abcc26821b659c2734ab51d0c4fb0d0c9519c24db22
|
|
| MD5 |
c3a97e4a457da5f1680c16036c058a37
|
|
| BLAKE2b-256 |
2bc7be964213312692f327d112f99d4e7f0ab1195c4efa80feea6ee9cb9808a5
|
File details
Details for the file reva_ai_authz-1.0.0-py3-none-any.whl.
File metadata
- Download URL: reva_ai_authz-1.0.0-py3-none-any.whl
- Upload date:
- Size: 94.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2d7bc116aa96753068d63e39fafe342afe08bb040d8974f14c2dd7a5e2f6d6d
|
|
| MD5 |
7ba4367f17e293e59fa82e84b72b73b2
|
|
| BLAKE2b-256 |
3436ff50e1ffe6d996d3c51566bff0535e729fad18f3367204b1656ed402edde
|