Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2026 Changes in this version + const AfterIdKey + const BeforeIdKey + const CacheControlKey + const ContentBlockKey + const FrequencyPenaltyKey + const JSONSchemaKey + const LabelKey + const LimitKey + const MaxIterationsKey + const MaxTokensKey + const OffsetKey + const OutputConfigKey + const OutputDimensionalityKey + const PresencePenaltyKey + const ProviderKey + const SeedKey + const ServiceTierKey + const StopSequencesKey + const SystemPromptKey + const TaskTypeKey + const TemperatureKey + const ThinkingBudgetKey + const ThinkingKey + const TitleKey + const ToolChoiceKey + const ToolChoiceNameKey + const ToolkitKey + const TopKKey + const TopPKey + const UserIdKey + func Apply(o ...Opt) (*opts, error) + type ClientOptFn func(provider string) Opt + type Opt func(*opts) error + func AddAny(key string, value any) Opt + func AddFloat64(key string, value float64) Opt + func AddString(key string, value ...string) Opt + func AddUint(key string, value ...uint) Opt + func ConvertOptsForClient(o *opts, provider string) ([]Opt, error) + func Error(err error) Opt + func NoOp() Opt + func SetAny(key string, value any) Opt + func SetBool(key string, value bool) Opt + func SetFloat64(key string, value float64) Opt + func SetString(key string, value string) Opt + func SetUint(key string, value uint) Opt + func WithClient(fn ClientOptFn) Opt + func WithOpts(options ...Opt) Opt + func WithProgress(fn ProgressFn) Opt + func WithStream(fn StreamFn) Opt + type Options interface + Get func(key string) any + GetBool func(key string) bool + GetFloat64 func(key string) float64 + GetString func(key string) string + GetStringArray func(key string) []string + GetUint func(key string) uint + Has func(key string) bool + Query func(keys ...string) url.Values + type ProgressFn func(status string, percent float64) + type StreamFn func(role, text string)