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.4.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.4-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatsee_ai-0.9.4.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.4.tar.gz
Algorithm Hash digest
SHA256 6fedb143e407177c00682969fb41caaff3fad12aec18442f7089fefd67a1c6c2
MD5 7b6600223e3f8c0fc5a95a0bfd89d0a5
BLAKE2b-256 0b1e52e48647a3de482ef7c313bea74d33b20b5bbb8d70c4800b2188d370b001

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatsee_ai-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aca35d16b175b648478a42b7a9fd0d68760f0c06321f8dbba4866f9af6983ce7
MD5 bad025eaec3dd0c7c426571b0d311acb
BLAKE2b-256 8bea96395aeb877b9071af7e9786fe5283e5c31100bc9072932eb090906d9e0c

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