TypeSafe AI Python SDK
Python SDK for TypeSafe AI.
Quickstart
Install the SDK:
uv add typesafe-sdk
Add the http2 extra (typesafe-sdk[http2]) to enable HTTP/2 support.
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.
Metadata
Release files for typesafe-sdk 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typesafe_sdk-0.7.2.tar.gz | 23.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typesafe_sdk-0.7.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.6 kB
Release files / typesafe_sdk-0.7.2.tar.gz
| Download URL | typesafe_sdk-0.7.2.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2434f4af5cdfc45d6ab5ff27048e8b257207f786b60456e69995e345b32e77e1
|
|
BLAKE2b-256 checksum How to use checksums |
42ac8bad2c02c038b85039cdb198ba106650d54bade0c0c986c68dc6e9cef8c3
|
| 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 Sep 26, 2026.
Transparency logRelease files / typesafe_sdk-0.7.2-py3-none-any.whl
| Download URL | typesafe_sdk-0.7.2-py3-none-any.whl |
|---|---|
| Size | 36.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a961148187d52e18276ed7f2d02617cfac48e3b97673cb631a8749397d43d1e
|
|
BLAKE2b-256 checksum How to use checksums |
995e2b97ba9b0b77612e3a480ddb60c0c0325b4809ef57a7b565341d65ef7bec
|
| 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 Sep 26, 2026.
Transparency log