Skip to main content

Tala

Tala is the Python library and developer toolkit used by the TDM dialogue platform. It provides shared dialogue models, tools for working with dialogue domain descriptions, natural-language generation components, and clients for platform services.

Tala is intended for developers building dialogue applications with TDM or extending components of the platform.

Tala and TDM

TDM (Talkamatic Dialogue Manager) maintains the conversation state and decides how a dialogue proceeds.

A dialogue domain description (DDD) defines the application-specific knowledge and behaviour used by TDM, including questions, actions, dialogue plans, and service interfaces. Tala provides Python representations and supporting tools for these descriptions and for the information exchanged between platform components.

What’s included

  • Dialogue models — Python representations of questions, propositions, actions, plans, and other dialogue concepts.
  • Domain-description tools — Loading, compilation, and validation of DDDs in supported formats.
  • Natural-language generation — Components for producing dialogue utterances.
  • Platform clients and utilities — Integration with dialogue services and the Requestor service for language-model requests.
  • Interaction testing — Utilities for testing dialogue interactions.
  • Interactive command-line client — tala-interact, for communicating with a running dialogue service.
  • XML DDD migration — tala-migrate-ddd, for converting V1 XML DDD sources into a separate, validated V2 XML document.

Installation

Tala currently targets Python 3.12. Install it from PyPI:

python -m pip install tala

Tala provides libraries and a client; installing it does not start a TDM dialogue service. Features that communicate with platform services require access to those services and the corresponding configuration.

Interact with a dialogue service

Use tala-interact to connect to an existing dialogue interaction endpoint:

tala-interact "https://your-host/interact/your-id"

To specify a dialogue domain description:

tala-interact "https://your-host/interact/your-id" --ddd my_ddd

Replace the example URL with the endpoint provided by your dialogue-service deployment. The service must be running and accessible from your machine.

Migrate a V1 XML DDD

tala-migrate-ddd path/to/ddd.config.json --output domain-v2.xml

Inputs are preserved, existing output paths are refused, and unsupported constructs are diagnosed rather than dropped. See the migration guide for the CLI, reusable Python API, and compatibility limits. This does not enable automatic V2 package loading.

Streaming pronunciation replacements

The SSE and MQTT clients can replace configured spellings in streamed text for TTS pronunciation. This compatibility feature is enabled by default. Set PRONUNCIATION_REPLACEMENTS_ENABLED=false in a service's environment to disable replacements and their word-boundary buffering. The setting is read when each stream session opens. When the selected replacement model is empty, chunks are passed through without word-boundary lookahead automatically. A non-empty model still uses replacement buffering, even for utterances that do not match one of its entries.

Language-model requests

Tala includes GPTRequest, a Python client for the platform’s Requestor service, which handles language-model requests. The client supports OpenAI-compatible response formats, including structured JSON Schema output, and reports completion status and errors for invalid structured responses.

Using this client requires a configured Requestor endpoint and a model deployment available through that service. See the Requestor client guide for configuration and a complete example.

Documentation and support

For bug reports, include the Tala version, relevant platform component versions, and a minimal example where possible.

Metadata

Release files for tala 31.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tala 31.19.0
File Size Uploaded Provenance Actions
tala-31.19.0.tar.gz 518.1 kB With provenance Details for tala-31.19.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tala 31.19.0
File Interpreter ABI Platform Actions
tala-31.19.0-py3-none-any.whl Python 3 none any Details for tala-31.19.0-py3-none-any.whl

Total release size: 821.1 kB

Release files / tala-31.19.0.tar.gz

Download URL tala-31.19.0.tar.gz
Size 518.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ed373b73e821ab8ad7221ff7a24854af6d45c5ea7323ee0d7b9b6bc979ae49da
BLAKE2b-256 checksum
How to use checksums
a78ca9cb882b4b1d283977d4bdc0ec573bd6b0c7243cfd830911044adb728a04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / tala-31.19.0-py3-none-any.whl

Download URL tala-31.19.0-py3-none-any.whl
Size 303.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fe16001a39db6d2c7cea010adab0f9408cfcd8957e25dea15b7fe8eea3c4a87
BLAKE2b-256 checksum
How to use checksums
d970d498d7ebbb1b4bcefa00adfa5d3eb56d24f3cca351ab271e441a99ccf57b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for tala 31.19.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tala-31.19.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

31.19.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page