Versions in this module Expand all Collapse all v0 v0.1.0 Nov 6, 2026 Changes in this version + type Answer struct + Choice any + ComputedScore *float64 + Confidence *float64 + ConfidenceSource Protocol + Issues []string + Levels []Level + Probabilities []Distribution + Probability *float64 + Raw json.RawMessage + Score *float64 + Status Status + Type Kind + type Capabilities struct + BooleanChoices bool + MaxChoices int + MaxLevels int + MaxQuestions int + MinChoices int + MinLevels int + Refusal bool + StructuredInstructions bool + type Client struct + func H2O(c Config) (*Client, error) + func Jev(c Config) (*Client, error) + func NewClient(c Config) (*Client, error) + func OpenAI(c Config) (*Client, error) + func (c *Client) Capabilities() Capabilities + func (c *Client) Decide(ctx context.Context, r Request) (*Decision, error) + func (c *Client) Decode(raw []byte, questions []Question) (*Decision, error) + func (c *Client) Encode(r Request) ([]byte, error) + type Config struct + APIKey string + BaseURL string + ExtraBodyKeys []string + HTTPClient *http.Client + Headers http.Header + MaxChoices int + MaxLevels int + MaxQuestions int + MaxRequestBytes int64 + MaxResponseBytes int64 + Model string + Protocol Protocol + Provider string + Timeout time.Duration + type Decision struct + ActualModel string + Answers map[string]Answer + HTTP HTTPMetadata + Issues []string + Metadata map[string]json.RawMessage + Protocol Protocol + Provider string + Raw json.RawMessage + RequestedModel string + Usage json.RawMessage + type Distribution struct + Label string + Probability float64 + Value any + type Error struct + Code string + Feature string + HTTP HTTPMetadata + Protocol Protocol + Provider string + Question string + Status int + func (e *Error) Cause() error + func (e *Error) Diagnostics() []byte + func (e *Error) Error() string + func (e *Error) Is(target error) bool + type HTTPMetadata struct + Headers http.Header + RequestID string + Status int + type Kind string + const Choice + const Predicate + const Score + type Level struct + Description any + Label string + type Option struct + Description any + Value any + type Protocol string + const OpenAIDecisions + const SystemOne + type Question struct + Choices []Option + Criteria map[string]any + Instructions any + Levels []Level + Name string + Type Kind + type Request struct + Input any + Options map[string]any + Questions []Question + type Status string + const Invalid + const OK + const Refused