@naturali/sdk 0.282.0 → 0.282.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +38 -1
- package/dist/index.d.cts +274 -7
- package/dist/index.d.mts +274 -7
- package/dist/index.mjs +38 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1433,7 +1433,7 @@ var AgentVersions = class {
|
|
|
1433
1433
|
*
|
|
1434
1434
|
* When the release carries a `promotion_gate`, the newest `completed` run of the eval it names that was recorded against this agent (`agent_id`) and pinned to the canary version (`agent_version`) must give a claim verdict of `supported`: the run's verdict, made worse by the production and run-age rules its evidence declares. A newer run revokes an older one. Otherwise the call is a `409`, whose `meta` names that run's `eval_run_id`, `claim`, and the claim's `verdict` and `verdict_reasons` when there is one, and the rollout is left running untouched. The run that cleared the gate is recorded as `eval_run_id` on the version that goes live.
|
|
1435
1435
|
*
|
|
1436
|
-
* Every claim the stable version's run supports must be supported by the canary too, unless the release names its eval in `released_claims`. The stable side is judged by its run's verdict alone, so a claim it demonstrated stays required when its traffic stops or its run ages; the canary side by its claim's verdict, which adds the production rules and the run age its run recorded. Otherwise the call is a `409 PROMOTION_CLAIM_UNMET` whose `meta` names the `eval_id`, the stable version's `claim`, and the canary's `eval_run_id`, `verdict` and `verdict_reasons` (null when it
|
|
1436
|
+
* Every claim the stable version's run supports must be supported by the canary too, unless the release names its eval in `released_claims`. The stable side is judged by its run's verdict alone, so a claim it demonstrated stays required when its traffic stops or its run ages; the canary side by its claim's verdict, which adds the production rules and the run age its run recorded. Otherwise the call is a `409 PROMOTION_CLAIM_UNMET` whose `meta` names the `eval_id`, the stable version's `claim`, and the canary's `eval_run_id`, `verdict` and `verdict_reasons` (null when it holds no claim of that eval: no run, or a run that carries no claim). The version that goes live records the claims the canary held (`GET /v1/projects/{project_id}/agents/{agent_id}/versions/{version}/promotion-claims`) and the release's `released_claims`.
|
|
1437
1437
|
*
|
|
1438
1438
|
*/
|
|
1439
1439
|
static promoteAgentRelease(options) {
|
|
@@ -3099,6 +3099,43 @@ var Evaluations = class {
|
|
|
3099
3099
|
});
|
|
3100
3100
|
}
|
|
3101
3101
|
/**
|
|
3102
|
+
* Clear an eval result's label
|
|
3103
|
+
*
|
|
3104
|
+
* Removes the label from one result; a result with none is unchanged.
|
|
3105
|
+
*/
|
|
3106
|
+
static clearEvalResultLabel(options) {
|
|
3107
|
+
return (options.client ?? client).delete({
|
|
3108
|
+
url: "/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/results/{eval_result_id}/label",
|
|
3109
|
+
...options
|
|
3110
|
+
});
|
|
3111
|
+
}
|
|
3112
|
+
/**
|
|
3113
|
+
* Label an eval result
|
|
3114
|
+
*
|
|
3115
|
+
* Records a person's pass/fail verdict on one result, replacing any earlier label. The result's `passed` stays what its scorers said; the label is what each scorer's agreement is measured against (`GET /v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/calibration`).
|
|
3116
|
+
*/
|
|
3117
|
+
static labelEvalResult(options) {
|
|
3118
|
+
return (options.client ?? client).put({
|
|
3119
|
+
url: "/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/results/{eval_result_id}/label",
|
|
3120
|
+
...options,
|
|
3121
|
+
headers: {
|
|
3122
|
+
"Content-Type": "application/json",
|
|
3123
|
+
...options.headers
|
|
3124
|
+
}
|
|
3125
|
+
});
|
|
3126
|
+
}
|
|
3127
|
+
/**
|
|
3128
|
+
* Read an eval run's calibration
|
|
3129
|
+
*
|
|
3130
|
+
* How far each scorer of the run agrees with the results people labeled (`PUT /v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/results/{eval_result_id}/label`), under the fingerprint of the scorers that graded it. Each disagreement is a result whose scorer outcome in `scores` differs from its `human_label`.
|
|
3131
|
+
*/
|
|
3132
|
+
static getEvalRunCalibration(options) {
|
|
3133
|
+
return (options.client ?? client).get({
|
|
3134
|
+
url: "/v1/projects/{project_id}/evals/{eval_id}/runs/{eval_run_id}/calibration",
|
|
3135
|
+
...options
|
|
3136
|
+
});
|
|
3137
|
+
}
|
|
3138
|
+
/**
|
|
3102
3139
|
* Cancel an eval run
|
|
3103
3140
|
*
|
|
3104
3141
|
* Cancels a queued or running run: its outstanding item tasks are dropped so it stops consuming provider budget, and the run settles as `cancelled`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.282.
|
|
3
|
+
"version": "0.282.2",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.282.
|
|
41
|
+
"@naturali/api": "0.282.2",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|