Skip to main content

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

Demo

  • Alias: demo

GCP QA

  • Alias: gcp

GCP Demo

  • Alias: gcp-demo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatsee_ai-0.9.3.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatsee_ai-0.9.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file chatsee_ai-0.9.3.tar.gz.

File metadata

  • Download URL: chatsee_ai-0.9.3.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for chatsee_ai-0.9.3.tar.gz
Algorithm Hash digest
SHA256 3665bf66d4a5594eed65ed93d96ab33108fac8fcc74f798d7aed4f4c587e37ff
MD5 940ece3391232d59057c6b100cb95352
BLAKE2b-256 434026c5f8b9471d498bdd1b16c989b2dba072c90c865725a8aecdf16fc81732

See more details on using hashes here.

File details

Details for the file chatsee_ai-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: chatsee_ai-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for chatsee_ai-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 60de86d2841f8ef24adb2c765a979dfdcf7d820d841404064557f69cd06d880b
MD5 1d2bef250217893ba8cefb816e862212
BLAKE2b-256 72a863eac80dbffd56cfd11356fc8bddf7415dca3206d9a9b0e8858dbff0e2cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page