2026-09-11 22:56:28 +00:00
2026-09-11 22:56:28 +00:00
2026-09-11 22:56:28 +00:00
2026-09-11 22:56:28 +00:00
2026-09-11 22:56:28 +00:00
2026-09-11 22:56:28 +00:00
2026-09-11 22:56:28 +00:00
2026-09-11 22:56:28 +00:00
2026-09-11 22:56:28 +00:00
2026-09-12 00:34:32 +03:00
2026-09-11 22:56:28 +00:00

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.

S
Description
No description provided
Readme MIT
210 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%