@naturali/sdk 0.294.0 → 0.294.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 +12 -1
- package/dist/index.d.cts +189 -10
- package/dist/index.d.mts +189 -10
- package/dist/index.mjs +12 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3164,6 +3164,17 @@ var Evaluations = class {
|
|
|
3164
3164
|
});
|
|
3165
3165
|
}
|
|
3166
3166
|
/**
|
|
3167
|
+
* Check an eval's probes
|
|
3168
|
+
*
|
|
3169
|
+
* Grades every probe of the eval's `criteria` with the criterion's scorers, as a run does before its first item, and reports each one without creating a run. A probe holds when the criterion's verdict on it (every scorer it binds passed) is the `passed` it declares; the report passes when every probe holds. The scorers run under the authority a run of the eval holds and are metered as a run's. An eval without `criteria` reports no probes.
|
|
3170
|
+
*/
|
|
3171
|
+
static checkEvalProbes(options) {
|
|
3172
|
+
return (options.client ?? client).post({
|
|
3173
|
+
url: "/v1/projects/{project_id}/evals/{eval_id}/probes",
|
|
3174
|
+
...options
|
|
3175
|
+
});
|
|
3176
|
+
}
|
|
3177
|
+
/**
|
|
3167
3178
|
* Get an eval run
|
|
3168
3179
|
*
|
|
3169
3180
|
* Returns a run's status, counts, and aggregate scores
|
|
@@ -6090,7 +6101,7 @@ var Tasks = class {
|
|
|
6090
6101
|
/**
|
|
6091
6102
|
* Update a task
|
|
6092
6103
|
*
|
|
6093
|
-
* Updates a task's payload, title, or
|
|
6104
|
+
* Updates a task's payload, title, assignee or metadata. `state` is never directly writable — move it with a transition; sending a `state` field is rejected as an unknown field (`VALIDATION_FAILED`). `payload` is shallow-merged over the existing payload (PATCH semantics): keys the request omits are preserved. The payload is caller-owned; the automation result lives in the read-only `last_result` field, which no patch can reach. The merged payload is validated against the workflow's `payload_schema`. `metadata`, unlike `payload`, replaces the stored bag whole.
|
|
6094
6105
|
*/
|
|
6095
6106
|
static updateTask(options) {
|
|
6096
6107
|
return (options.client ?? client).patch({
|