typesafeai-go
Small independent Go client for TypeSafe's System One API with typed Noul, Choice and Score questions and answers.
Overview
typesafeai-go is a small Go client for the TypeSafe AI API, developed independently from the official Python and JavaScript SDKs. You build a map of typed questions (NoulQuestion, ChoiceQuestion, ScoreQuestion), create a SystemOneClient with your key and an http.Client, and send a SystemOneRequest with state, model and questions; answers come back as typed values that you type-assert.
The quickstart asks whether 42 is even with explicit true and false descriptions. A more detailed example is in the repository. Requests specify the model explicitly, for example ModelJevLatest, and answers come back as typed values that the caller type-asserts, as the noul example shows. A more detailed example lives in examples/noul.go.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Yes / no | Is the following number even?: 42 | even · odd |
How it works
- Create a SystemOneClient with your key.
- Build typed questions and a request.
- Call Do with a context.
- Type-assert and read answers.
Strengths
- Minimal and explicit API.
- Bring your own http.Client.
Caveats
- Small project with limited documentation.
- Requires a TypeSafe key.
Getting started
go get github.com/chez-shanpu/typesafeai-goAt a glance
- Type
- Library
- Status
- beta
- Language
- Go
- Runtime
- library
- Has code
- yes
Use cases and integrations
How curated lists describe it
Go SDK for TypeSafe AI API https://docs.typesafe.ai/api.
hellogumbo/awesome-jev
Frequently asked questions
Is it official?
No, it is developed independently.
How are answers read?
By type-asserting entries in resp.Answers.
Can I choose the HTTP client?
Yes, you pass one to NewSystemOneClient.
Related projects
Hack Club's lightweight LLM proxy, listed for adding a Jev forwarding endpoint behind its auth, limits and usage logging.
MCP serverproductionTypeScriptAx, a DSPy-style multi-language LLM framework, listed with a native TypeSafe provider for Boolean, Choice, Score and raw Jev questions.
PluginproductionTypeScriptEffect TypeScript library whose @effect/ai-typesafe package maps classify, probability and rating operations to Jev questions.
ProjectproductionTypeScriptPHP monorepo whose Polyglot module adds a TypeSafe driver for typed Noul, Choice and Score decisions alongside LLM inference.
ProjectproductionPHPGo MCP server giving any client typed Jev decisions via OpenRouter or TypeSafe, with validated answers and no paid retries.
MCP serverproductionGoSimon Willison's LLM plugin that adds Jev as a model for yes/no, choice and score questions from the command line.
PluginproductionPython