Skip to main content

TypeSafe AI Python SDK

Python SDK for TypeSafe AI.

Quickstart

Install the SDK:

uv add typesafe-sdk

Add the http2 extra (typesafe-sdk[http2]) to enable HTTP/2 support.

Set TYPESAFE_API_KEY in your environment, then instantiate and use the client:

from typesafe_sdk import Choice, TypeSafeClient

with TypeSafeClient() as client:
    response = client.system_one(
        state={"document": "I was charged twice. Please fix this ASAP."},
        questions={
            "category": Choice(
                instructions="What is this ticket about?",
                criteria={"billing": None, "technical": None, "other": None},
            ),
        },
    )

print(response.choices["category"].choice)

learn what TypeSafe is, what it can do, and how to use it in TypeSafe docs.

Documentation

Learn more in SDK docs.

Metadata

Release files for typesafe-sdk 0.7.4

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

Source distribution (sdist)

Source distribution for typesafe-sdk 0.7.4
File Size Uploaded
typesafe_sdk-0.7.4.tar.gz 24.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typesafe-sdk 0.7.4
File Interpreter ABI Platform
typesafe_sdk-0.7.4-py3-none-any.whl Python 3 none any Details

Total release size: 62.1 kB

Release files / typesafe_sdk-0.7.4.tar.gz

Download URL typesafe_sdk-0.7.4.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a20dca217a746db1ac5534ac502de16e1f86a400b4ec09f8594e6221c2bc9558
BLAKE2b-256 checksum
How to use checksums
94123a897e9f424be6f4db0648a955f8fadbe62149d118a03614df897b5a2ec9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 9, 2026.

Transparency log

Release files / typesafe_sdk-0.7.4-py3-none-any.whl

Download URL typesafe_sdk-0.7.4-py3-none-any.whl
Size 37.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61cf3f2fe9da20b68c3d3fe2fb76bbb2f35f8c4a9a65a6b81c43a535d2a53210
BLAKE2b-256 checksum
How to use checksums
a2496cd65684e41e25069f4d12c09cd7e1e3f81477f06acb29bf0d1815e27d1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.5

2 release files

This release

0.7.4 This release

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.7

2 release files

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