プロジェクト
GitHubで見る
typesafe-ai/typesafe-sdk-python
概要
The official Python library for the TypeSafe API
開発ツール計測したスター増加
- 24時間
- +1
- 7日間
- +3
- 15日間
- +4
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルTypeSafe 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.
関連プロジェクトを探す
読み込み中…