Releases
Typed judgments from Jev, in Go
A stdlib-only Go client for the TypeSafe System One API, plus the jev command-line tool for scripts and agents.
go get github.com/therealbill/typesafe-goclient, err := typesafe.NewClient() // reads TYPESAFE_API_KEY
res, err := client.SystemOne(ctx, "I was charged twice.", typesafe.Questions{
"billing": typesafe.Noul{Instructions: "Is this about billing?"},
"tone": typesafe.Choice{Instructions: "What is the tone?", Criteria: map[string]typesafe.JSONContent{"calm": nil, "angry": nil}},
})
fmt.Println(res.Nouls()["billing"].Noul, res.Choices()["tone"].Choice)Tutorials
Build something that works, step by step, with a checkpoint after each one.
How-to guides
Recipes for retries, typed decoding, gateways, tracing, and driving jev from scripts.
Reference
Every option, type, flag, span attribute, and exit code, generated from the source.
Explanation
Why the core is stdlib-only, how retries and budgets interact, what is and is not traced.