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.1.tar.gz (16.4 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.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatsee_ai-0.9.1.tar.gz
  • Upload date:
  • Size: 16.4 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.1.tar.gz
Algorithm Hash digest
SHA256 bdf66709c2680805c47f804f5516a00c029c95d7c9559e7e5201185d65fc3a96
MD5 9f838c63f5f61f146c7f50b267062578
BLAKE2b-256 5821b2e9823bd55e332e4a34764188e5759ae9f0c7f97327470a13a20fc7cec2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatsee_ai-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ff67df4ce0c155156ae86e9409be027e9362996f9572be2ce77a1f0caf404fe
MD5 d66fccecc5a79c0e479fb8ffb9e6a56f
BLAKE2b-256 ff778126d3c61a113f1bd05290ca73d7870f619a64423b8642a5d0e456d0b08f

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