A Python SDK for Chatsee AI.
Project description
Chatsee SDK (Python)
Installation
pip install chatsee-ai
Environment deployment (Dev / QA / Demo / Poc)
The SDK supports one package and you select the environment by setting api_base_url to an alias: "dev" | "qa" | "demo" | "poc".
| Alias | URL |
|---|---|
dev |
https://dev.chatsee.ai/api |
qa |
https://qa.chatsee.ai/api |
demo |
https://gcp-demo.chatsee.ai/api |
poc |
https://app.chatsee.ai/api |
Or pass any full URL (e.g. "https://my-custom-host.com/api").
Classifiers source (redaction)
Redaction classifiers are fetched from the same environment you select via api_base_url
(endpoint …/v1/redaction/fetch_classifiers). Override with redaction_classifiers_url if needed.
Usage (tracking)
from chatsee import ChatseeTracker
tracker = ChatseeTracker(
agent_id="agent_1",
tenant_id="tenant_1",
api_base_url="qa", # or "dev" / "demo" / "poc"
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.
Track Claude Code (adapter)
Claude Code is a closed CLI, so instead of instrumenting its code you point the adapter at its session logs. It reconstructs each turn and sends it via the SDK.
# preview (sends nothing)
python -m chatsee.adapters.claude_code --latest --dry-run
# one-time hook install -> every completed turn auto-streams, no terminal needed
python -m chatsee.adapters.claude_code --install-hook \
--agent-id <AGENT_ID> --tenant-id <TENANT_ID> --env dev
# remove it
python -m chatsee.adapters.claude_code --uninstall-hook
Alternatives to the hook: --watch (foreground tail) or a one-shot run. A
per-session checkpoint (~/.chatsee/claude_code_state.json) prevents duplicates.
Redaction is on by default. Claude Code turns — especially tool arguments
and results — often contain secrets and PII, so the adapter redacts client-side
before sending (fields: user_message, bot_message, tool_calls_details,
exception, system_prompt). Override the field set with
--redact-fields a,b,c, or disable entirely with --no-redact (not
recommended). The setting is preserved in installed hooks/autostart commands.
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.10.0.tar.gz.
File metadata
- Download URL: chatsee_ai-0.10.0.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd0adb256ba0bba60ee6c9b7755ea0095f89900a66fd51dd2fc108279deea32f
|
|
| MD5 |
35970f78318f54a81583919e05983589
|
|
| BLAKE2b-256 |
e4513dcb6e64527da5935986fc22a493fa6e926f7aa15b5ce17116d69359c963
|
File details
Details for the file chatsee_ai-0.10.0-py3-none-any.whl.
File metadata
- Download URL: chatsee_ai-0.10.0-py3-none-any.whl
- Upload date:
- Size: 25.9 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 |
b8fd0cb32bb43a74fbb34586e7ae0306eb4badf4a0a95607bfd61aa6a451df09
|
|
| MD5 |
1eaf1b314afb15099b8c83248f093c30
|
|
| BLAKE2b-256 |
a10d0dac91177e13dcb8d97ed02790b21d6fcb7fda484410f83394b1e53ae7ff
|