Versions in this module Expand all Collapse all v1 v1.144.0 Sep 25, 2026 v1.143.0 Sep 24, 2026 Changes in this version + func ObserveUsage(ctx context.Context, record UsageRecord) + func WithUsageObserver(ctx context.Context, observer func(UsageRecord)) context.Context + type Evaluator interface + Evaluate func(ctx context.Context, state any) (*Result, error) + type Result struct + Choice string + Confidence *float64 + Cost *float64 + Model string + Probabilities map[string]float64 + Probability *float64 + Score *float64 + Type string + Usage Usage + type Usage struct + InputTokens int64 + OutputTokens int64 + type UsageRecord struct + Cost *float64 + Model string + Usage *Usage