Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt

Use this file to discover all available pages before exploring further.


Function: createCustomCodeMetric()

function createCustomCodeMetric(
  params: CreateCustomCodeMetricParams,
): Promise<BaseScorerVersionResponse>;
Defined in: src/utils/metrics.ts Creates a custom code-based metric.

Parameters

params

CreateCustomCodeMetricParams The parameters for creating the custom code metric.

Returns

Promise<BaseScorerVersionResponse> A promise that resolves with the created scorer version.