getBenchmarkClaimsWithHttpInfo method
Lists the effective published claims: what the leaderboard will use for each (benchmark, model) after the seed, the import and any stored correction are layered.
Lists the effective published claims: what the leaderboard will use for each (benchmark, model) after the seed, the import and any stored correction are layered. It answers the operator's question — what does this arena currently believe someone else reported, and did we ship that or fix it. Effective values only. The history of a key lives in the append-only file and is not what this op is for; a list that returned every superseded row would make the common question the hard one.
Note: This method returns the HTTP Response.
Parameters:
-
String benchmark: Benchmark filters to one benchmark id. Empty returns every benchmark.
-
String model: Model filters to one model. Empty returns every model.
-
String provider: Provider filters to one lab or leaderboard — the way to read what a single source claims across every model it covers.
-
String source_: Source filters to one citation, which is the finest grain there is: a source is what makes two claims about one model independent rather than a restatement of each other.
-
String protocol: Protocol filters by HOW a claim was scored, so provider cards can be read apart from third parties running their own harness.
Implementation
Future<Response> getBenchmarkClaimsWithHttpInfo({ String? benchmark, String? model, String? provider, String? source_, String? protocol, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/benchmark/claims';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (benchmark != null) {
queryParams.addAll(_queryParams('', 'Benchmark', benchmark));
}
if (model != null) {
queryParams.addAll(_queryParams('', 'Model', model));
}
if (provider != null) {
queryParams.addAll(_queryParams('', 'Provider', provider));
}
if (source_ != null) {
queryParams.addAll(_queryParams('', 'Source', source_));
}
if (protocol != null) {
queryParams.addAll(_queryParams('', 'Protocol', protocol));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}