Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.0.1a0.tar.gz (2.6 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.0.1a0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file typesafe_sdk-0.0.1a0.tar.gz.

File metadata

  • Download URL: typesafe_sdk-0.0.1a0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for typesafe_sdk-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 9994249658e2275f3fc52c2b3cadbead82639e0d0ac0bdd512af8ca069f8bcf6
MD5 5fd3725309d1fe5dc53bd46b422b3b81
BLAKE2b-256 2ab3da9256812273b01fe0bb7623f8f5f70ade490ee0588dee4afdfc237d6258

See more details on using hashes here.

File details

Details for the file typesafe_sdk-0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: typesafe_sdk-0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for typesafe_sdk-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 50bdb1447ecb9be50c6155687becf741f762d62c8d7cf784769de51917800de0
MD5 b1ee225422008adf944193d3617437aa
BLAKE2b-256 302ecfe1cc9196e6462874b001da9d32cad2515b4a1141492b5aec611039c612

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.0

2 files

0.6.0

2 files

0.5.7

2 files

This release

0.0.1a0 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