EndpointBasedEvaluatorDefinition interface

Endpoint-based evaluator definition. The customer owns and hosts an HTTP endpoint that implements the evaluation contract. The evaluator references a Project Connection by name; the connection stores the endpoint URL and credentials (API Key or Entra ID). At execution time, the service resolves the connection to obtain the endpoint URL and authentication details, then calls the endpoint for each evaluation row.

Extends

Properties

connection_name

Name of the Project Connection that stores the endpoint URL and credentials. The connection must exist on the project and have a non-empty target URL. Supported auth types: ApiKey (sends api-key header) and AAD/Entra ID (acquires a bearer token via the project's Managed Identity).

schema_version

Version of the contract between the service and the evaluator endpoint. Optional on create; if omitted, the service uses 0.0.1, so existing clients that do not send this property are unaffected. Stored evaluator versions keep the value they were created with. Registration rejects values the service does not support; the type stays extensible so responses can return newer versions. Version 0.0.2 requires metrics to contain exactly one metric, of type ordinal or continuous.

type

The type of the endpoint-based evaluator. Always endpoint.

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

connection_name

Name of the Project Connection that stores the endpoint URL and credentials. The connection must exist on the project and have a non-empty target URL. Supported auth types: ApiKey (sends api-key header) and AAD/Entra ID (acquires a bearer token via the project's Managed Identity).

connection_name: string

Property Value

string

schema_version

Version of the contract between the service and the evaluator endpoint. Optional on create; if omitted, the service uses 0.0.1, so existing clients that do not send this property are unaffected. Stored evaluator versions keep the value they were created with. Registration rejects values the service does not support; the type stays extensible so responses can return newer versions. Version 0.0.2 requires metrics to contain exactly one metric, of type ordinal or continuous.

schema_version?: EndpointEvaluatorSchemaVersion

Property Value

type

The type of the endpoint-based evaluator. Always endpoint.

type: "endpoint"

Property Value

"endpoint"

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