typesafe-sdk-go (dwisiswant0)
Go SDK for TypeSafe's System One API with named typed questions, flexible state and criteria types, and a reusable client.
Overview
This Go SDK, published under the go.dw1.io module path, calls TypeSafe's System One API. You create one client and reuse it, then send a SystemOneRequest whose Questions map names each NoulQuestion, ChoiceQuestion or ScoreQuestion; answers come back under the same names as typed answer structs.
State, instructions and criterion descriptions accept strings, JSON objects or arrays, and Go structs or json.RawMessage values can be used directly. It requires Go 1.27.1+, reads TYPESAFE_API_KEY, and has documentation on pkg.go.dev. RawQuestion sends complete JSON for future question types, ExtraBody adds top-level fields, and unknown answer types are kept with their original JSON, so new API features can be used before the SDK models them. Timeouts default to 10 seconds per attempt.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Yes / no | Is this urgent? | Time-sensitive · Can wait |
| Choice | Which team should handle this? | billing · technical |
| Score | How frustrated is the customer? | Calm · Frustrated · Very angry |
How it works
- Create a client with NewClient.
- Build named questions and state.
- Call SystemOne under a context deadline.
- Type-assert answers and act.
Strengths
- Flexible state and criteria types including Go structs.
- Reusable client with idle connection cleanup.
Caveats
- Requires a recent Go toolchain (1.27.1).
- Answers require type assertions.
- Community SDK.
Getting started
go get go.dw1.io/typesafe-sdk-go@latestAt 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.
hellogumbo/awesome-jev
Frequently asked questions
What Go version is needed?
Go 1.27.1 or newer.
Can I pass Go structs as state?
Yes, along with strings, JSON objects, arrays and json.RawMessage.
How are answers matched to questions?
By the names you give in the Questions map.
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