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)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9994249658e2275f3fc52c2b3cadbead82639e0d0ac0bdd512af8ca069f8bcf6
|
|
| MD5 |
5fd3725309d1fe5dc53bd46b422b3b81
|
|
| BLAKE2b-256 |
2ab3da9256812273b01fe0bb7623f8f5f70ade490ee0588dee4afdfc237d6258
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50bdb1447ecb9be50c6155687becf741f762d62c8d7cf784769de51917800de0
|
|
| MD5 |
b1ee225422008adf944193d3617437aa
|
|
| BLAKE2b-256 |
302ecfe1cc9196e6462874b001da9d32cad2515b4a1141492b5aec611039c612
|