Proyek
Lihat di GitHub
typesafe-ai/typesafe-sdk-python
Tentang
The official Python library for the TypeSafe API
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- +1
- dalam 7 hari
- +3
- dalam 15 hari
- +4
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliTypeSafe AI Python SDK
Python SDK for TypeSafe AI.
Quickstart
Install the SDK:
uv add typesafe-sdk
Extras (for example, typesafe-sdk[http2]) supported:
http2: enable HTTP/2 supportpil: send Pillow imageszstd: compress request bodies on Python 3.13 and earlier
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={"ticket": "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.
Jelajahi proyek terkait
Memuat…