ARGUS Python SDK
The official Python SDK for ARGUS — the Agent Runtime Guardrail & Unauthorized-action Stopper.
Securing what AI agents do — not just what they hear.
Installation
You can install the SDK via pip:
pip install argus-sdk
Or using uv:
uv add argus-sdk
Quick Start
1. Set your Environment Variables
export ARGUS_API_KEY="your-api-key"
export ARGUS_BASE_URL="http://localhost:8000"
2. Protect Your Tools
Wrap your critical agent tools with the @argus.protect decorator.
import argus
@argus.protect(action_type="send_email", target_type="email")
def send_email(to_address: str, subject: str, body: str):
# This function will ONLY execute if ARGUS approves the action
print(f"Sending email to {to_address}...")
return True
3. Run the Agent within a Session
When a user submits a prompt, wrap the execution in an argus.Session. This automatically extracts the user's intent and establishes a temporary authorization boundary.
import argus
from argus import ArgusQuarantineException
prompt = "Send the Q3 report to alice@example.com"
# 1. Extract Intent and start session
with argus.Session(user_prompt=prompt):
try:
# Agent decides to execute the tool
send_email(to_address="alice@example.com", subject="Q3 Report", body="Attached.")
print("Success!")
# If the agent goes rogue and tries to email someone else:
send_email(to_address="eve@example.com", subject="Q3 Report", body="Attached.")
except ArgusQuarantineException as e:
print(f"Agent was stopped! Reason: {e.explanation}")
Integrations
LangChain
ARGUS provides native wrappers for LangChain tools.
from argus.integrations.langchain import wrap_langchain_tool
from langchain_core.tools import tool
@tool
def read_patient_record(patient_id: str) -> str:
"""Reads a patient record."""
return "Patient Data"
# Wrap the tool
protected_tool = wrap_langchain_tool(
tool=read_patient_record,
action_type="read_patient_record",
target_type="patient_record"
)
# Use it within an argus.Session normally!
Metadata
Release files for argus-shield 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| argus_shield-0.2.1.tar.gz | 21.9 kB | Without provenance | Details for argus_shield-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| argus_shield-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for argus_shield-0.2.1-py3-none-any.whl |
Total release size: 42.0 kB
Release files / argus_shield-0.2.1.tar.gz
| Download URL | argus_shield-0.2.1.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b71f91e83ef8037e6e846d666f67872634c89fe44d1268d02923cf60c87e3145
|
|
BLAKE2b-256 checksum How to use checksums |
e8e507ccd02e63556a76c254f336ed8c71c65f327976f63a62991ec0ff0edf64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / argus_shield-0.2.1-py3-none-any.whl
| Download URL | argus_shield-0.2.1-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
760a234589eb1990a3500f8d1f5a29fd91cf90a8821eeff71656256f0245beba
|
|
BLAKE2b-256 checksum How to use checksums |
ca0fd6601afc96adb5a235b566c028de764dad03da034b94961ec44a869101cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for argus-shield 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.