Skip to content

Jev directory

typesafeai (Go client)

A small Go client for the System One API with typed Noul, Choice, and Score question structs, developed independently of the official Python and TypeScript SDKs.
Stars
1
Language
Go
License
APACHE-2.0
Reading time
3 min
Published by
Community
Author
chez-shanpu
Last verified
Sep 2026

Go SDK for TypeSafe AI API https://docs.typesafe.ai/api

Forks
0
Last pushed
Updated Oct 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

A Go client for the TypeSafe AI API. It is developed as a repository independent from the official SDKs (Python / JavaScript-TypeScript). You can send three types of typed questions — Noul (yes/no probability), Choice (options), and Score (ordered levels) — and receive answers in the corresponding types. See examples/noul.go for a more detailed example.

Quoted from the project's README. Read the full README.

Highlights

  • Question values are typed structs, so answers come back as NoulAnswer, ChoiceAnswer, or ScoreAnswer instead of loose maps.
  • A Noul question can describe both the true and false conditions through its criteria field.
  • State accepts any value, including a bare number, and the model is a named constant such as ModelJevLatest.
  • The surface stays deliberately small: one SystemOneClient and one Do method.

Quickstart

go
client := typesafeai.NewSystemOneClient(apiKey, http.DefaultClient)

resp, err := client.Do(context.Background(), &typesafeai.SystemOneRequest{
    State: 42,
    Model: typesafeai.ModelJevLatest,
    Questions: map[string]typesafeai.Question{
        "num": &typesafeai.NoulQuestion{Instructions: "Is the number even?"},
    },
})

Watch out

Apache-2.0. An independent client, not an official TypeSafe SDK; reads TYPESAFE_API_KEY and needs an http.Client.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai