Skip to main content

This is a command line SDK for managing TDM-based dialogue domain descriptions (DDDs). For further information, see talkamatic.se.

Installation

Install the latest version of Tala with pip:

pip3 install tala

CLI

Tala ships a single CLI entry point: tala-interact.

tala-interact https://host/interact/<id>
tala-interact https://host/interact/<id> --ddd my_ddd

Requestor GPT API

GPTRequest in tala.utils.requestor can pass an OpenAI-compatible response_format to Requestor. For example, strict JSON Schema output can be requested like this:

from tala.utils.requestor import GPTRequest, GPTStructuredOutputError

request = GPTRequest(
    messages=[{"role": "user", "content": "Return the status."}],
    model="gpt-6-luna-2026-09-22",
    response_format={
        "type": "json_schema",
        "json_schema": {
            "name": "status",
            "strict": True,
            "schema": {
                "type": "object",
                "properties": {"status": {"type": "string"}},
                "required": ["status"],
                "additionalProperties": False,
            },
        },
    },
)
request.make()

try:
    result = request.json_response
except GPTStructuredOutputError as error:
    print(f"Invalid structured response for request {error.request_id}")
else:
    print(result)

print(request.completion_status)

Accessing json_response waits for the request to finish and parses its JSON. Malformed JSON returned for a structured response raises GPTStructuredOutputError, which includes the request ID, rather than being replaced with the default response. completion_status exposes the Requestor status, such as completed, truncated, refused, incomplete, or error.

For generic JSON-mode requests, allow_json_repair controls the legacy retry that asks the model to repair invalid JSON. It defaults to True; set it to False to disable that retry. Structured responses raise GPTStructuredOutputError for malformed JSON instead of using generic repair.

Metadata

Release files for tala 31.1.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.1.0
File Size Uploaded Provenance Actions
tala-31.1.0.tar.gz 370.6 kB Without provenance Details for tala-31.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 779.5 kB

Release files / tala-31.1.0.tar.gz

Download URL tala-31.1.0.tar.gz
Size 370.6 kB
Tags Source
SHA-256 checksum
How to use checksums
37a029e3427e340b8f6a889158bace4dc8c0f55b68c72d3e3d97e8b3224336cd
BLAKE2b-256 checksum
How to use checksums
f89598fec65090618807ff32c58d19a25d968b553048fb7a6712b7978422fb78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL tala-31.1.0-py3-none-any.whl
Size 408.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83756c22569df9382949bd4a7f5bd31d16a6a3a151cc36928d017236195ff343
BLAKE2b-256 checksum
How to use checksums
b78943ac6e8cfd298ffe0b69395be2fae7ae4b775579c868be69990a0dd69cac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for tala 31.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1.0 This release

2 release files No 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