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.6.0.tar.gz (20.0 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.6.0-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typesafe_sdk-0.6.0.tar.gz
  • Upload date:
  • Size: 20.0 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.6.0.tar.gz
Algorithm Hash digest
SHA256 78540639bde10a56d378f35690264799c00d1ffd7c0fa56b27838d0aa1a4bb34
MD5 9e18624e461299786d6e15be8820f64a
BLAKE2b-256 8ac759ba48e1018d8ce6c3a1bf41531f9b13e61f991ef4d7b19029b5fbfb45f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for typesafe_sdk-0.6.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.6.0-py3-none-any.whl.

File metadata

  • Download URL: typesafe_sdk-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 32.7 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21559d5558e95a7ee008d0a044a60bb5bb2d3b1ec426fe158a7f37af35ba3232
MD5 593afbca5edba1d6ae5323f8ce69147a
BLAKE2b-256 2e0de99f9622354aeb7205ee4ffded0ac7b4cc38f0981e463e90940578cc10f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for typesafe_sdk-0.6.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

0.7.0

2 files

This release

0.6.0 This release

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