Go

Idiomatic Go with context, generics for pagination and no dependencies.

Install

Send a message

Stream the reply

Pagination

Identity tokens

Sign a token on your server so the widget or app knows who the user is — see Identity verification.

Errors and retries

Every SDK retries 429 responses (honouring Retry-After) and — for GET, PUT, DELETE — transient 5xx and network errors, twice by default with exponential back-off. POST is never retried on a server error.

Options

Every call takes a context.Context: cancelling it stops requests, retries, back-off waits and streams. NewE returns an error instead of panicking on an empty key.