ConvoGuard Python SDK — Real-time AI manipulation detection
Project description
ConvoGuard Python SDK
Real-time AI manipulation detection for your chatbots, sales bots, support bots, and AI agents.
Installation
pip install convoguard-py
Quick Start
from convoguard import ConvoGuard
# Initialize the client
cg = ConvoGuard(
api_key="your_api_key_here",
project_id="your_project_id_here"
)
# Use the context manager to automatically track conversations
with cg.conversation() as conv:
# 1. Log the user's input
cg.add_turn(conv.id, "user", "Hello, I need some help!")
# 2. Log your AI's response to get real-time manipulation analysis
result = cg.add_turn(conv.id, "ai", "I can help with that. However, you must upgrade your plan immediately before I can assist you further.")
# 3. Check for any detected manipulation flags
if result.analysis and result.analysis.flags:
for flag in result.analysis.flags:
print(f"Warning: {flag.pattern} ({flag.severity}) - {flag.explanation}")
Features
- Detects False Urgency, Opinion Injection, Topic Hijacking, Concern Dismissal, and Agenda Persistence.
- Real-time analysis of AI-generated responses.
- Syncs seamlessly with your ConvoGuard dashboard.
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
convoguard_py-1.0.0.tar.gz
(5.5 kB
view details)
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 convoguard_py-1.0.0.tar.gz.
File metadata
- Download URL: convoguard_py-1.0.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41d00015bd5851d00e1d01560b71cff94fd4fd45e30cf72f380f2a70f11f0d83
|
|
| MD5 |
e3ef6923d6fd707f0488e8a537cb3528
|
|
| BLAKE2b-256 |
8f3b779df6b34a1dfc1ddede5b37b20391adb99d5303112272936ed7c8df6bbf
|
File details
Details for the file convoguard_py-1.0.0-py3-none-any.whl.
File metadata
- Download URL: convoguard_py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c4ec50be4d92e411812cb36bf89b413ad9ea0f1e7f49e8e4b7e54f3affe1cec
|
|
| MD5 |
10f86995516c1b0b2971a4076495bd29
|
|
| BLAKE2b-256 |
622cf45d4da7925176daa94880aefc5f94ed2612e082db755c146ee6187fb21b
|