typesafe-ai/typesafe-sdk-python
Organization repository on GitHub
The official Python library for the TypeSafe API
- Forks
- 49
- Last pushed
- Updated Oct 2026
Repo stats from the GitHub API, cached Oct 2026.Homepage
Jev directory
typesafe-ai/typesafe-sdk-python
Organization repository on GitHub
The official Python library for the TypeSafe API
Repo stats from the GitHub API, cached Oct 2026.Homepage
Add the http2 extra (typesafe-sdk[http2]) to enable HTTP/2 support. Set TYPESAFEAPIKEY in your environment, then instantiate and use the client: learn what TypeSafe is, what it can do, and how to use it in TypeSafe docs.
Quoted from the project's README. Read the full README.
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)Watch out
The async client is a separate class (AsyncTypeSafeClient), and RetryPolicy.timeout caps the total retry budget at 30 seconds by default.
Short answers drawn from the linked project or page.
Original write-ups on what this entry is for.
Posts from builders shipping with Jev right now.