Skip to main content

A Python SDK for Chatsee AI.

Project description

Chatsee SDK (Python)

Installation

pip install chatsee-ai

Environment deployment (Dev / QA / Demo / Poc)

The SDK supports one package and you select the environment by setting api_base_url to an alias: "dev" | "qa" | "demo" | "poc".

Alias URL
dev https://dev.chatsee.ai/api
qa https://qa.chatsee.ai/api
demo https://gcp-demo.chatsee.ai/api
poc https://app.chatsee.ai/api

Or pass any full URL (e.g. "https://my-custom-host.com/api").

Classifiers source (redaction)

Redaction classifiers are fetched from the same environment you select via api_base_url (endpoint …/v1/redaction/fetch_classifiers). Override with redaction_classifiers_url if needed.

Usage (tracking)

from chatsee import ChatseeTracker

tracker = ChatseeTracker(
    agent_id="agent_1",
    tenant_id="tenant_1",
    api_base_url="qa",  # or "dev" / "demo" / "poc"
    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.5.tar.gz (16.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.5-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatsee_ai-0.9.5.tar.gz
  • Upload date:
  • Size: 16.2 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.5.tar.gz
Algorithm Hash digest
SHA256 1bb3f01aa187087eb45ffe719eef45f0730580b326b8b0b9972fd2c39d9e477b
MD5 d8b2dfcb16861bbe27dafaca23db086b
BLAKE2b-256 19531d0293d821f2934a1360ae6b1a64732d0ee05da9d56573923d8285418085

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatsee_ai-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 15.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b492f3045090eaa41f33569a882db17972726dfeb6cfe6eb739dd05e797643d5
MD5 af6445ec061016b83f89b13d8c429aaa
BLAKE2b-256 d70ce3c16ea6bdfbb2a05db8ee1c87ebfd12359d229c1889c31781ed73c578b4

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