Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

googlechatai

googlechatai is a polyglot Google Chat AI SDK for building serious Google Chat apps, AI assistants, and workflow extensions without living at the raw REST-object layer. This is the Python package (standard library only, Python 3.10+); a matching Node.js package is published as googlechatai on npm, kept behaviorally aligned through shared fixtures and cross-language conformance tests.

Highlights:

  • Deep normalization of Chat events, messages, actions, cards, and attachments into stable, model-ready structures.
  • A webhook router with slash command, mention, reaction, membership, and dialog handlers, plus dedupe, deadline, and inbound request verification (Chat app bearer tokens and Pub/Sub push OIDC, verified with a stdlib-only RS256 implementation).
  • Dry-run call plans for sends, replies, threads, reactions, and pins, and an executor that turns plans into real API calls with retries, idempotency, and explicit live-mode safety gates.
  • Live streaming of model output through message edits via stream_chat_reply / astream_chat_reply, driven by a deterministic scheduler with patch cadence, size-limit truncate/split, cancellation, and resume.
  • AI-first helpers: conversation context builders, attachment pipelines, placeholder responses, async response handoff, token stores, and queue adapters. Optional FastAPI/ASGI adapters install with pip install "googlechatai[fastapi]".

Status: 0.1.0-beta.1 public-beta release candidate (published Python metadata normalizes this to 0.1.0b1). APIs may change before the stable 0.1.0 release.

Create a first app

The matching Node distribution carries the dependency-free CLI and generates Python projects:

npx googlechatai@next init my-python-chat-app --language python --install
cd my-python-chat-app
.venv/bin/python -m unittest
npx googlechatai@next replay fixtures/mention.json \
  --language python \
  --python .venv/bin/python \
  --handler app.py \
  --expect-text "You said"
npx googlechatai@next doctor

The generated app includes a minimal mention handler, verified and body-bounded callback server, sanitized fixture, test, environment template, and guarded smoke metadata example. Offline tests need no Google credentials.

The CLI also provides event inspection, dry-run Chat request planning, card linting, and configuration diagnosis. It is offline or read-only by default; the only write-capable path is an explicitly guarded smoke --live run in a dedicated test space.

Google Cloud project creation, Chat app registration, deployment, OAuth/admin approval, and installation remain operator steps.

googlechatai is an independent project and is not affiliated with or endorsed by Google LLC. Google Chat is a trademark of Google LLC.

Licensed under the Apache License 2.0. See LICENSE and NOTICE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

googlechatai-0.1.0b2.tar.gz (213.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

googlechatai-0.1.0b2-py3-none-any.whl (177.0 kB view details)

Uploaded Python 3

File details

Details for the file googlechatai-0.1.0b2.tar.gz.

File metadata

  • Download URL: googlechatai-0.1.0b2.tar.gz
  • Upload date:
  • Size: 213.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for googlechatai-0.1.0b2.tar.gz
Algorithm Hash digest
SHA256 1e35ec27999c439dc9fc8a9c883edbcc482a9b7da85de06403a049bdb9b824de
MD5 2370f22cdd874477d1ab27811d5809f1
BLAKE2b-256 f253292d2777ebebf2b194b58f9153c2d9602152de44b6ee0f8b3b2e09fcbf04

See more details on using hashes here.

Provenance

The following attestation bundles were made for googlechatai-0.1.0b2.tar.gz:

Publisher: publish.yml on adamallcock/googlechatai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file googlechatai-0.1.0b2-py3-none-any.whl.

File metadata

  • Download URL: googlechatai-0.1.0b2-py3-none-any.whl
  • Upload date:
  • Size: 177.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for googlechatai-0.1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6e06ad5f3e09507e02128d28b64408e5591309c941253a117a832741b17e520
MD5 9d41647ef0f1ae49c0de24c8359e868b
BLAKE2b-256 a49a396d8ea6c6b9820f27ebec3203a097df32956ed48d0cde34b48137b8c873

See more details on using hashes here.

Provenance

The following attestation bundles were made for googlechatai-0.1.0b2-py3-none-any.whl:

Publisher: publish.yml on adamallcock/googlechatai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page