AzureAIProjectsModelFactory.EndpointBasedEvaluatorDefinition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public static Azure.AI.Projects.Evaluation.EndpointBasedEvaluatorDefinition EndpointBasedEvaluatorDefinition(BinaryData initParameters = default, BinaryData dataSchema = default, System.Collections.Generic.IDictionary<string,Azure.AI.Projects.Evaluation.EvaluatorMetric> metrics = default, string connectionName = default);
static member EndpointBasedEvaluatorDefinition : BinaryData * BinaryData * System.Collections.Generic.IDictionary<string, Azure.AI.Projects.Evaluation.EvaluatorMetric> * string -> Azure.AI.Projects.Evaluation.EndpointBasedEvaluatorDefinition
Public Shared Function EndpointBasedEvaluatorDefinition (Optional initParameters As BinaryData = Nothing, Optional dataSchema As BinaryData = Nothing, Optional metrics As IDictionary(Of String, EvaluatorMetric) = Nothing, Optional connectionName As String = Nothing) As EndpointBasedEvaluatorDefinition
Parameters
- initParameters
- BinaryData
The JSON schema (Draft 2020-12) for the evaluator's input parameters. This includes parameters like type, properties, required.
- dataSchema
- BinaryData
The JSON schema (Draft 2020-12) for the evaluator's input data. This includes parameters like type, properties, required.
- metrics
- IDictionary<String,EvaluatorMetric>
List of output metrics produced by this evaluator.
- connectionName
- String
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).
Returns
A new EndpointBasedEvaluatorDefinition instance for mocking.