CodeBasedEvaluatorDefinition interface

Code-based evaluator definition using python code

Extends

Properties

blob_uri

The blob URI for the evaluator storage

code_text

Inline code text for the evaluator

entry_point

The entry point Python file name for the uploaded evaluator code (e.g. 'answer_length_evaluator.py')

image_tag

The container image tag to use for evaluator code execution

type

The type discriminator, always 'code'.

Inherited Properties

data_schema

The JSON schema (Draft 2020-12) for the evaluator's input data. This includes parameters like type, properties, required.

init_parameters

The JSON schema (Draft 2020-12) for the evaluator's input parameters. This includes parameters like type, properties, required.

metrics

List of output metrics produced by this evaluator

Property Details

blob_uri

The blob URI for the evaluator storage

blob_uri?: string

Property Value

string

code_text

Inline code text for the evaluator

code_text?: string

Property Value

string

entry_point

The entry point Python file name for the uploaded evaluator code (e.g. 'answer_length_evaluator.py')

entry_point?: string

Property Value

string

image_tag

The container image tag to use for evaluator code execution

image_tag?: string

Property Value

string

type

The type discriminator, always 'code'.

type: "code"

Property Value

"code"

Inherited Property Details

data_schema

The JSON schema (Draft 2020-12) for the evaluator's input data. This includes parameters like type, properties, required.

data_schema?: Record<string, unknown>

Property Value

Record<string, unknown>

Inherited From EvaluatorDefinition.data_schema

init_parameters

The JSON schema (Draft 2020-12) for the evaluator's input parameters. This includes parameters like type, properties, required.

init_parameters?: Record<string, unknown>

Property Value

Record<string, unknown>

Inherited From EvaluatorDefinition.init_parameters

metrics

List of output metrics produced by this evaluator

metrics?: Record<string, EvaluatorMetric>

Property Value

Record<string, EvaluatorMetric>

Inherited From EvaluatorDefinition.metrics