Version 1.37.0: v2-Endpunkt für Scores und bessere Fehlermeldungen
Inngest 1.37.0 ergänzt einen v2-REST-Endpunkt POST /v2/runs/{runId}/scores zum Erfassen von Scores, verbessert Fehlermeldungen bei Antworten, die nicht vom SDK stammen, und zeigt fehlgeschlagene Versuche ohne Step als „Function Error“ an.
Release Notes
#4453 feat(api): add v2 score endpoint
Adds a v2 REST scoring endpoint for recording named scores against a function run or individual steps in a run. This
POST /v2/runs/{runId}/scoreswith body:
[ { "name": "accuracy", "value": 0.95, "stepId": "step 1" } ]Scores are run scoped when
stepIdis omitted. Score values can be a number or boolean. Scores can be submitted in batches of up to 100. Experiment scores are supported at run level only (I copied this from the sdk, shout if we don't want to support this in the api) like so:[ { "name": "accuracy", "value": 0.95, "experiment": { "id": "model-routing", "variant": "baseline" } } ]#4566 fix(execution): improve copy for error responses that do not come from the SDK
Augment responses to better identify when error responses do not come the SDK but rather intermediary proxies or app timeouts.
#4571 fix: Display errored attempts without step as
Function Errorrather than FinalizationErrored attempts that never resolved to a step are displayed as "Function error" rather than "Finalization" in the trace view. …