A Python SDK for Chatsee AI.
Project description
Chatsee SDK (Python)
Installation
pip install chatsee-ai
Environment deployment (QA / Demo / GCP)
The SDK supports one package and you select the environment by setting api_base_url to an alias: "qa" | "demo" | "gcp" | "gcp-demo".
Classifiers source (redaction)
By default, the SDK always fetches redaction classifiers from QA (qa) regardless of the selected environment.
QA
- Alias:
qa→https://qa-api.chatsee.ai:8000 - Interaction endpoint:
/v1/api/process_interaction - Classifiers endpoint:
/v1/redaction/fetch-classifiers
Demo
- Alias:
demo→https://demo-api.chatsee.ai:8000 - Interaction endpoint:
/v1/api/process_interaction - Classifiers endpoint:
/v1/redaction/fetch-classifiers
GCP QA
- Alias:
gcp→https://gcp-qa.chatsee.ai/api - Interaction endpoint:
/v1/api/process_interaction - Classifiers endpoint:
/v1/redaction/fetch-classifiers
GCP Demo
- Alias:
gcp-demo→https://gcp-demo.chatsee.ai/api - Interaction endpoint:
/v1/api/process_interaction - Classifiers endpoint:
/v1/redaction/fetch-classifiers
Usage (tracking)
from chatsee import ChatseeTracker
tracker = ChatseeTracker(
agent_id="agent_1",
tenant_id="tenant_1",
api_base_url="qa", # or "demo" / "gcp" / "gcp-demo"
redaction_enabled=True, # optional: locally redact before sending
)
tracker.start_turn("My email is test@example.com", metadata={"any": "metadata"})
tracker.end_turn("Thanks!")
Usage (redaction as an SDK feature)
Module-level chatsee.redact()
from chatsee import redact
redacted = redact(
{"message": "Card 4111 1111 1111 1111", "email": "a@b.com"},
api_base_url="qa",
fields_to_redact="*",
verify_ssl=True,
)
Tracker instance tracker.redact()
redacted = tracker.redact({"user_message": "Phone +1 (555) 123-4567"}, fields_to_redact="*")
Encryption
Encryption support has been removed from this SDK.
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 chatsee_ai-0.9.2.tar.gz.
File metadata
- Download URL: chatsee_ai-0.9.2.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e9c6c853eb8bdf13c4086ef445b3e7fc509b556b38b4330cbfb0487a3d03318
|
|
| MD5 |
01046b94528b01a94367750cf9cc85fe
|
|
| BLAKE2b-256 |
765780d70139643e0a5bd4bf5316493f605626ed0007224a6f09deb0ea47b646
|
File details
Details for the file chatsee_ai-0.9.2-py3-none-any.whl.
File metadata
- Download URL: chatsee_ai-0.9.2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d94bb0dfc676103c7c26e8d2f53f4de33deb41b37e1da285de141ce8be3fb9d1
|
|
| MD5 |
57c387a5111ee20f75e045ded0f67a52
|
|
| BLAKE2b-256 |
76b6a57707b3a8bcc690de486eeee3313af427e27af0f1a0c2940f21f1310e2d
|