example.py
create_config methods
The SDK provides several methods to create a configuration object:
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.,
google_llm_provider_config, openai_llm_provider_config, etc.).We recommend using the validated provider and model, but the SDK does allow you to override that default in your per-instance settings or per-call settings. Please note that your mileage may vary if you use a different model.Logging
Customize how your evaluator logs information.Log level
Control logging verbosity:Custom logger
You can configure your evaluator with a custom logger:Per-instance settings
Override the default for every call on a particular evaluator instance usingdefault_evaluation_settings.
Per-call settings will override per-instance settings for a single run.
Per-call settings
Override models, temperatures, or other configurable evaluator settings for a single run usingevaluation_settings:
Related topics
Quickstart
Install the SDK and run your first evaluator.
Outputs
Understand evaluator output fields and types.
Error handling
Handle configuration, validation, and API errors.