← 开源

The official Python library for the TypeSafe API

AI EngineeringAccess modelsPython
增长势头
+124 小时新增 Star+0.3%
321
Star
57
Fork
+4
本周
2
贡献者
创建于 2026-09-04 · 更新于 2026-12-05 · 今日第 7611 名
主要开发者
danielgafni
README

TypeSafe AI Python SDK

Python SDK for TypeSafe AI.

Quickstart

Install the SDK:

uv add typesafe-sdk

Extras (for example, typesafe-sdk[http2]) supported:

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.

排名相邻
同类项目

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载