Skip to main content

TypeSafe AI Python SDK

Python SDK for TypeSafe AI.

Quickstart

Install the SDK:

uv add typesafe-sdk

Extras (for example, typesafe-sdk[http2]) supported:

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={"ticket": "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.6

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.6
File Size Uploaded Provenance Actions
typesafe_sdk-0.7.6.tar.gz 34.2 kB With provenance Details for typesafe_sdk-0.7.6.tar.gz

Built distribution (wheel)

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

Total release size: 84.2 kB

Release files / typesafe_sdk-0.7.6.tar.gz

Download URL typesafe_sdk-0.7.6.tar.gz
Size 34.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f2d9757bee46f7435c405ecb5763344b14daecd5043f176eac291a8b5ca33609
BLAKE2b-256 checksum
How to use checksums
c079a97acbe27941c8d07c69d3e86bc23621bc48f417d40d78d32efc0d61394e
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 Nov 25, 2026.

Transparency log

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

Download URL typesafe_sdk-0.7.6-py3-none-any.whl
Size 50.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a558ed92367a1ff6bac9c69e072e845f730515cbd604e383da879b5b4a16371b
BLAKE2b-256 checksum
How to use checksums
7bdb0aacea030d67eaa83fc7bf2ade814377794f7901c831677b651587d56014
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 Nov 25, 2026.

Transparency log

Security for typesafe-sdk 0.7.6

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 typesafe_sdk-0.7.6.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 25, 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.

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