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.8.0.tar.gz (10.3 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.8.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatsee_ai-0.8.0.tar.gz
  • Upload date:
  • Size: 10.3 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.8.0.tar.gz
Algorithm Hash digest
SHA256 128b842e2500ade684aa76aafd2cedc9f49644d200b81a730c108b280df6a75f
MD5 21d1e3507529227a60b68c7e6b708b39
BLAKE2b-256 4f6e46bb0f7e393978465793832dc7742b16c423211bf93e37a81dd9acd6549a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatsee_ai-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5071e8b4d4fe17318d51fd2538f0c7b00e17aaa1c46f1fc29f77a5387e185d03
MD5 331fc21fb4d66aa00204858786565636
BLAKE2b-256 bc43837431a907e62bf0da4098148b7d922840c3539ca16b5d39a80ea62acc98

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