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.5.7.tar.gz (19.1 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.5.7-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typesafe_sdk-0.5.7.tar.gz
  • Upload date:
  • Size: 19.1 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.5.7.tar.gz
Algorithm Hash digest
SHA256 4293adef6ac1cbfa7dec22e487a303b3862cfd46324a085fcaa3e6978b460c4d
MD5 ea652ac7604fdfff099353a81044a467
BLAKE2b-256 a8bb595551be8c0786d830b4d115367cefc7ae16542ef4f45de2239abc8a1d92

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: typesafe_sdk-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 31.6 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.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 739c8fbd69a372dcf9810154a08fcf77622d9f617cafda57c9825f228a92af03
MD5 4c490f72e88e15bd8ce9e5d4a888362a
BLAKE2b-256 2a910f924e2a447e60e73438dd23a5c619c10bc943176353ab0f7f07c847432d

See more details on using hashes here.

Provenance

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

0.6.0

2 files

This release

0.5.7 This release

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