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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
930d42fd73cfed6f25bccae488ce0f30f6043eaedd8682ef59734e79ab94a876
|
|
| MD5 |
00952aaee568d1c4673fd1838cff1d89
|
|
| BLAKE2b-256 |
28e2ac317772d4d5cfabf3cecdeacd83cc838523e240bb4e1cf256837e6005bb
|
Provenance
The following attestation bundles were made for typesafe_sdk-0.7.0.tar.gz:
Publisher:
publish.yml on typesafe-ai/typesafe-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typesafe_sdk-0.7.0.tar.gz -
Subject digest:
930d42fd73cfed6f25bccae488ce0f30f6043eaedd8682ef59734e79ab94a876 - Sigstore transparency entry: 2884090215
- Sigstore integration time:
-
Permalink:
typesafe-ai/typesafe-sdk-python@2ce5c65f13646cab6e6f782328194c9d85f3300a -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/typesafe-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ce5c65f13646cab6e6f782328194c9d85f3300a -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6d2257c4b04b8d4d81cff2b55489b4188795fd44fb40b9cef26ff243b2d1080
|
|
| MD5 |
bd89bb72cbe1dd8a7a2528fcacb75099
|
|
| BLAKE2b-256 |
d32a16f4163e6d8827ef80b2ed7a400c80688e1ebf571c10f143f792bdafc654
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typesafe_sdk-0.7.0-py3-none-any.whl -
Subject digest:
c6d2257c4b04b8d4d81cff2b55489b4188795fd44fb40b9cef26ff243b2d1080 - Sigstore transparency entry: 2884090221
- Sigstore integration time:
-
Permalink:
typesafe-ai/typesafe-sdk-python@2ce5c65f13646cab6e6f782328194c9d85f3300a -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/typesafe-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ce5c65f13646cab6e6f782328194c9d85f3300a -
Trigger Event:
push
-
Statement type: