Skip to content

CallbackEvaluator

junjo.evaluation.CallbackEvaluator

Kind: Class

SDK version: 0.69.0

Documentation channel: Stable release

CallbackEvaluator(*, key: str, version: int, expectation_type: TypeForm[ExpectationT], callback: Callable[[object, ExpectationT, EvaluationContext, ResourcesT], EvaluationResult | Awaitable[EvaluationResult]], role: EvaluationRole = EvaluationRole.JUDGE, timeout_seconds: float = 60.0)

View source

Run an application callback that returns the SDK EvaluationResult.

key = key

View source

Public attribute.

version = version

View source

Public attribute.

role = role

View source

Public attribute.

timeout_seconds = timeout_seconds

View source

Public attribute.

expectation_schema: Mapping[str, object]

View source

Public attribute.