TypeSafe AI Go SDK (unofficial)
September 17, 2026 ยท View on GitHub
Unofficial Go SDK for TypeSafe AI and its Jev API. Abstractions kept very minimal.
Quickstart
Install the SDK (Go 1.26 or newer):
go get github.com/guillemus/jev-go
Set TYPESAFE_API_KEY in your environment, then create and use the client:
package main
import (
"context"
"fmt"
"log"
"os"
"github.com/guillemus/jev-go"
)
func main() {
client := jev.NewClient(os.Getenv("TYPESAFE_API_KEY"))
response, err := client.SystemOne(context.Background(), jev.Request{
State: map[string]string{
"document": "I was charged twice. Please fix this ASAP.",
},
Questions: map[string]jev.Question{
"category": jev.Choice("What is this ticket about?", map[string]any{
"billing": nil,
"technical": nil,
"other": nil,
}),
},
})
if err != nil {
log.Fatal(err)
}
fmt.Println(response.Answers["category"].Choice)
}
Supports Noul, Choice, Score, structured inputs, and model listing.
Use jev.NewClientWithConfig for custom settings.
Documentation
Learn what TypeSafe can do in the TypeSafe docs. See the examples for usage and the Go API reference for client types and options.