Skip to main content

TypeSafe AI Python SDK

Python SDK for TypeSafe AI.

Quickstart

Install the SDK:

uv add typesafe-sdk

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typesafe_sdk-0.7.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typesafe_sdk-0.7.0-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file typesafe_sdk-0.7.0.tar.gz.

File metadata

  • Download URL: typesafe_sdk-0.7.0.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typesafe_sdk-0.7.0.tar.gz
Algorithm Hash digest
SHA256 930d42fd73cfed6f25bccae488ce0f30f6043eaedd8682ef59734e79ab94a876
MD5 00952aaee568d1c4673fd1838cff1d89
BLAKE2b-256 28e2ac317772d4d5cfabf3cecdeacd83cc838523e240bb4e1cf256837e6005bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for typesafe_sdk-0.7.0.tar.gz:

Publisher: publish.yml on typesafe-ai/typesafe-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typesafe_sdk-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: typesafe_sdk-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typesafe_sdk-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6d2257c4b04b8d4d81cff2b55489b4188795fd44fb40b9cef26ff243b2d1080
MD5 bd89bb72cbe1dd8a7a2528fcacb75099
BLAKE2b-256 d32a16f4163e6d8827ef80b2ed7a400c80688e1ebf571c10f143f792bdafc654

See more details on using hashes here.

Provenance

The following attestation bundles were made for typesafe_sdk-0.7.0-py3-none-any.whl:

Publisher: publish.yml on typesafe-ai/typesafe-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 files

0.6.0

2 files

0.5.7

2 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