TypeSafe Godot SDK 0.1.0 Scripts 4.7 Community
Submitted by user iamno1special; MIT; 2026-09-24
TypeSafe SDK for Godot 4
Evaluate game state with TypeSafe's System One model (jev) directly
from GDScript. Ask typed questions about text or structured state
and get back calibrated, code-ready answers.
Question types:
- Noul: yes/no questions, answered as a probability from 0 to 1.
- Choice: pick one option from a set you define, with per-option
probabilities and a confidence score.
- Score: rate state along an ordered rubric, with legend,
probabilities, and a confidence score.
What's included:
- Signal-based async TypeSafeClient (plus AsyncTypeSafeClient)
with await support.
- models.list() to inspect the models available to your account.
- Configurable RetryPolicy with exponential backoff, Retry-After
header support, and a total timeout budget.
- Typed errors for every failure: 400/401/403/404/422/429/5xx,
plus connection loss, timeouts, and invalid responses.
- Per-call overrides for model, retry policy, timeout,
extra headers, and extra request fields.
- Forward-compatible parsing that handles unknown answer kinds
and new response fields gracefully.
- Secret-redacting debug logging via TYPESAFE_LOG_LEVEL.
Reads configuration from TYPESAFE_API_KEY, TYPESAFE_BASE_URL,
and TYPESAFE_DEFAULT_MODEL. At parity with the official TypeSafe
Python SDK and HTTP API reference. Tested on Godot 4.7.
TypeSafe Links:
- TypeSafe: https://typesafe.ai
- Documentation: https://docs.typesafe.ai
- Python SDK guide: https://docs.typesafe.ai/sdk/python
- HTTP API reference: https://docs.typesafe.ai/api
- Console (create an API key): https://console.typesafe.ai
- Official Python SDK source: https://github.com/typesafe-ai/typesafe-sdk-python
View files Download Submit an issue Recent Edits