64 lines
2.1 KiB
TypeScript
64 lines
2.1 KiB
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { CacheEnabledMode } from "./CacheEnabledMode";
|
|
|
|
/**
|
|
* Parameters for the run_evaluation tool (visible to LLM).
|
|
*/
|
|
export type RunEvaluationToolParams = {
|
|
/**
|
|
* Name of the evaluation to run (must be defined in config).
|
|
* Either `evaluation_name` or both (`function_name`, `evaluator_names`) must be provided.
|
|
*/
|
|
evaluation_name?: string;
|
|
/**
|
|
* Name of the function to evaluate when using `evaluator_names`.
|
|
* Either `evaluation_name` or both (`function_name`, `evaluator_names`) must be provided.
|
|
*/
|
|
function_name?: string;
|
|
/**
|
|
* Function-scoped evaluator names to run.
|
|
* Either `evaluation_name` or both (`function_name`, `evaluator_names`) must be provided.
|
|
*/
|
|
evaluator_names?: Array<string>;
|
|
/**
|
|
* Name of the dataset to evaluate on.
|
|
* Either dataset_name or datapoint_ids must be provided, but not both.
|
|
*/
|
|
dataset_name?: string;
|
|
/**
|
|
* Specific datapoint IDs to evaluate.
|
|
* Either dataset_name or datapoint_ids must be provided, but not both.
|
|
*/
|
|
datapoint_ids?: Array<string>;
|
|
/**
|
|
* Name of the variant to evaluate.
|
|
*/
|
|
variant_name: string;
|
|
/**
|
|
* Number of concurrent inference requests to make.
|
|
*/
|
|
concurrency: number;
|
|
/**
|
|
* Maximum number of datapoints to evaluate from the dataset.
|
|
*/
|
|
max_datapoints?: number;
|
|
/**
|
|
* Precision targets for adaptive stopping.
|
|
* Maps evaluator names to target confidence interval half-widths.
|
|
* When the CI half-width for an evaluator falls below its target,
|
|
* evaluation may stop early for that evaluator.
|
|
*/
|
|
precision_targets: { [key in string]: number };
|
|
/**
|
|
* Cache configuration for inference requests.
|
|
* Defaults to On (caching enabled) to match the evaluations CLI behavior.
|
|
*/
|
|
inference_cache: CacheEnabledMode;
|
|
/**
|
|
* Include per-datapoint results in the response.
|
|
* When true, the response will include individual results for each datapoint.
|
|
* Default is false to avoid response bloat for large evaluations.
|
|
*/
|
|
include_datapoint_results: boolean;
|
|
};
|