Ir al contenido principal

Interface: AssertionHandle

Interface: AssertionHandle

Chainable handle returned by every assertion to control its severity. Mirrors eve: assertions are gates by default; .soft() demotes to a tracked metric; .atLeast(n) is a soft, score-thresholded assertion.

Methods

atLeast()

atLeast(threshold: number): AssertionHandle;

Set the pass threshold for a scored assertion: it passes only when the score is at least threshold. Keeps the current severity (gate unless also chained with .soft()).

Parameters

ParameterType
thresholdnumber

Returns

AssertionHandle


gate()

gate(): AssertionHandle;

Promote to a hard gate — failure fails the eval (non-zero exit).

Returns

AssertionHandle


soft()

soft(): AssertionHandle;

Demote to a tracked metric — doesn't fail unless running with strict.

Returns

AssertionHandle

Databricks Developer Hub

¿Todo listo para lanzar tu próxima aplicación basada en agentes en minutos?

Leer la documentación