example.ts
Options
Our evaluators are validated against a particular provider and model during development. Evaluators default to that same provider and model at runtime – for example, Grade Level Appropriateness will always use Google Gemini out of the box, because it was validated against Google Gemini during development. As a result, each evaluator requires specific API keys when being configured (e.g.,
googleApiKey, openaiApiKey, etc.).We recommend using the validated provider and model, but the SDK does allow you to override that default with the
modelOverride option.Evaluators are validated and tested against their default models. Results with
other models (using
modelOverride) may vary.Logging
Customize how your evaluator logs information.Log level
Control logging verbosity:Custom logger
You can configure your evaluator with a custom logger:Telemetry
We collect limited usage and performance telemetry by default. This may include performance metrics (latency, token usage), technical metadata (such as SDK version and evaluator type) and related diagnostic information. This telemetry helps us improve evaluator quality, identify edge cases, and optimize performance. You can disable telemetry collection through the configuration options.What you’ll need
While telemetry data collection is not required, we recommend enabling it so
that we can better support your team’s use cases.
What we collect
payload.json