Skip to content
System One

RadixILS-Dev/typesafe-sdk-go

A Go client library for the TypeSafe API, wrapping Jev's endpoints for Go projects.

RadixILS-Dev/typesafe-sdk-go on GitHub

Stars
0
Forks
1
Language
Go
License
MIT
Last push
18 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

// SystemOne evaluates named questions against JSON-serializable state.
// Question validation belongs to the API. The context bounds the entire call,
// including retry waits; each attempt sends the same encoded body.
func (c *Client) SystemOne(ctx context.Context, state any, questions Questions) (*SystemOneResponse, error) {
	body, err := json.Marshal(struct {
		State     any       `json:"state"`
		Model     string    `json:"model"`
		Questions Questions `json:"questions"`
	}{state, c.config.Model, questions})
	if err != nil {
		return nil, fmt.Errorf("typesafe: encode request: %w", err)
	}
	data, headers, err := c.request(ctx, http.MethodPost, "/v1/systemone", body)
	if err != nil {
		return nil, err

View in client.go

Open on GitHub

More like this

Keep browsing