Function: enableMetrics()
Parameters
options
Configuration optionslogStreamName?
string
Log stream name (overrides env var)
metrics
( |string
| Metric
| LocalMetricConfig
)[]
Metrics to enable. Accepts:
- GalileoScorers enum (e.g., GalileoScorers.Correctness)
- String names (e.g., ‘toxicity’)
- Metric objects (e.g., { name: ‘custom’, version: 2 })
- LocalMetricConfig objects with scorerFn for client-side scoring
projectName?
string
Project name (overrides env var)
Returns
Promise
<LocalMetricConfig
[]>
LocalMetricConfig[] - Client-side metrics that need local processing.
Server-side metrics are automatically registered.