Metadata-Version: 2.4
Name: tala
Version: 31.1.2
Summary: Python library and developer toolkit for the TDM dialogue platform
Author-email: Talkamatic <dev@talkamatic.se>
Project-URL: Homepage, https://www.talkamatic.se
Project-URL: Documentation, https://docs.talkamatic.se
Project-URL: Repository, https://github.com/ordstrom-ai/tala
Keywords: tala,tdm,ddd,ddds,dialogue,conversation,AI
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
Requires-Dist: azure-data-tables==12.5.0
Requires-Dist: azure-identity>=1.16.0
Requires-Dist: azure-monitor-ingestion>=1.0.0
Requires-Dist: iso8601>=0.1.14
Requires-Dist: Jinja2<4,>=3.0.1
Requires-Dist: lxml>=4.6.3
Requires-Dist: paho-mqtt==2.1.0
Requires-Dist: prompt-toolkit>=3.0.19
Requires-Dist: requests>=2.26.0
Requires-Dist: structlog>=21.1.0
Requires-Dist: websocket-client>=1.8.0

# 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.

## Installation

Tala currently targets Python 3.11. Install it from PyPI:

```bash
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:

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

To specify a dialogue domain description:

```bash
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.

## 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](https://github.com/ordstrom-ai/tala/blob/main/docs/requestor.md)
for configuration and a complete example.

## Documentation and support

- [Platform documentation](https://docs.talkamatic.se)
- [Source code](https://github.com/ordstrom-ai/tala)
- [Issue tracker](https://github.com/ordstrom-ai/tala/issues)
- [Release history](https://github.com/ordstrom-ai/tala/releases)

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