Skip to content

Jev directory

TypeSafe Go — 2389-research

A Go client for the TypeSafe System One API with zero dependencies outside the standard library: typed Noul, Choice and Score questions whose answers are read back through the handles that asked them.
Stars
2
Language
Go
License
MIT
Reading time
2 min
Published by
Community
Author
2389-research
Last verified
Oct 2026

This is one of several Jev listings for the same project. The canonical entry is TypeSafe Go — sd109.

Highlights

  • Question handles carry their own id and answer type, so you read answers back through the question that asked it and the compiler checks the answer's shape.
  • From checks that the response carries every documented payload field: a truncated answer reports ErrIncompleteAnswer instead of reading as a confident zero.
  • Noul returns a float64 probability of yes, Choice returns winner, full distribution and confidence, and Score returns a weighted value over ordered levels.
  • Retries are built in: two retries, 500 ms doubling to 5 s with 25% jitter, honoring Retry-After.
  • Config comes from TYPESAFE_API_KEY, TYPESAFE_BASE_URL and TYPESAFE_DEFAULT_MODEL, or options like WithModel and WithTimeout.

Quickstart

bash
go get github.com/2389-research/typesafe-go

Watch out

Grounded in the truncated repository README and GitHub metadata reviewed on 2026-10-15; the README was cut off mid-sentence in the retry documentation. The compiler cannot check ids, so two handles sharing an id disagreeing about the type fail at read time with ErrWrongType rather than at compile time.

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