Versions in this module Expand all Collapse all v0 v0.2.0 Sep 21, 2026 Changes in this version type Option + func WithCache(maxEntries int, ttl time.Duration) Option + func WithMaxRetries(n int) Option v0.1.0 Sep 18, 2026 Changes in this version + type Answer interface + type Choice struct + Criteria map[string]string + Instructions string + func (q Choice) MarshalJSON() ([]byte, error) + type ChoiceAnswer struct + Choice string + Confidence float64 + Probabilities map[string]float64 + type Client struct + func NewClient(opts ...Option) (*Client, error) + func (c *Client) ListModels(ctx context.Context) ([]Model, error) + func (c *Client) SystemOne(ctx context.Context, state string, questions map[string]Question, ...) (*SystemOneResponse, error) + type Error struct + Body []byte + Detail json.RawMessage + StatusCode int + func (e *Error) Error() string + type Model struct + Description string + Name string + ReleaseDate string + type Noul struct + Criteria map[string]string + Instructions string + func (q Noul) MarshalJSON() ([]byte, error) + type NoulAnswer struct + Noul float64 + type Option func(*Client) + func WithAPIKey(key string) Option + func WithBaseURL(url string) Option + func WithHTTPClient(hc *http.Client) Option + func WithModel(model string) Option + type Question interface + type Score struct + Criteria []string + Instructions string + func (q Score) MarshalJSON() ([]byte, error) + type ScoreAnswer struct + Confidence float64 + Legend map[string]string + Probabilities map[string]float64 + Score float64 + type SystemOneOption func(*systemOneRequest) + func WithRequestModel(model string) SystemOneOption + type SystemOneResponse struct + Answers map[string]Answer + Model string + Usage Usage + func (r *SystemOneResponse) Choices() map[string]ChoiceAnswer + func (r *SystemOneResponse) Nouls() map[string]NoulAnswer + func (r *SystemOneResponse) Scores() map[string]ScoreAnswer + func (r *SystemOneResponse) UnmarshalJSON(data []byte) error + type Usage struct + InputTokens int + OutputTokens int