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

Demo

  • Alias: demohttps://demo-api.chatsee.ai:8000
  • Interaction endpoint: /v1/api/process_interaction
  • Classifiers endpoint: /v1/redaction/fetch-classifiers
  • API docs: demo process_interaction

GCP QA

  • Alias: gcphttps://gcp-qa.chatsee.ai/api
  • Interaction endpoint: /v1/api/process_interaction
  • Classifiers endpoint: /v1/redaction/fetch-classifiers

GCP Demo

  • Alias: gcp-demohttps://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


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.0.tar.gz (14.2 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.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chatsee_ai-0.9.0.tar.gz
Algorithm Hash digest
SHA256 9ba16f4049285de19aeadc3f9b25029bdd13784b6c2576ebf96a8d1662c1e177
MD5 b73bd48a0222be20f08484678fdab205
BLAKE2b-256 36c7fd60c5e5baec3fc48b8921c01481416461e4726b2f3b0d00679c2590a6ee

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for chatsee_ai-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 745950774eefa2a6f33cf8812b98f13e607e96fe6577024f6e0b62915d4cbeb6
MD5 68b4dd4397e9b6a2e66f9dce916f219c
BLAKE2b-256 c5d08c3e29c8eb14074f344d56c9a0e1187b84d173ecbaaad403d7400dcba698

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