Evaluator
Evaluator utilities for data models and type definitions used throughout the maxim sdk.
Evaluator
This class represents an evaluator.
LocalEvaluatorReturn
This class represents the return value of a local evaluator.
__init__
This class represents the return value of a local evaluator.
Arguments:
Name | Description |
---|---|
score | The score of the evaluator. |
reasoning | The reasoning of the evaluator. |
PassFailCriteriaOnEachEntry
This class represents the pass fail criteria on each entry.
__init__
This class represents the pass fail criteria on each entry.
Arguments:
Name | Description |
---|---|
score_should_be | The score should be. |
value | The value of the pass fail criteria. |
PassFailCriteriaForTestrunOverall
This class represents the pass fail criteria for the overall testrun.
__init__
This class represents the pass fail criteria for the overall testrun.
Arguments:
Name | Description |
---|---|
overall_should_be | The overall should be. |
value | The value of the pass fail criteria. |
for_result | The for result. |
PassFailCriteria
This class represents the pass fail criteria.
__init__
This class represents the pass fail criteria.
Arguments:
Name | Description |
---|---|
on_each_entry_pass_if | The pass fail criteria on each entry. |
for_testrun_overall_pass_if | The pass fail criteria for the overall testrun. |
LocalEvaluatorResultParameter
This class represents the result parameter of a local evaluator.
__init__
This class represents the result parameter of a local evaluator.
Arguments:
Name | Description |
---|---|
output | The output of the local evaluator. |
context_to_evaluate | The context to evaluate. |
LocalEvaluationResult
This class represents the result of a local evaluation.
__init__
This class represents the result of a local evaluation.
Arguments:
Name | Description |
---|---|
result | The result of the local evaluation. |
name | The name of the local evaluation. |
pass_fail_criteria | The pass fail criteria of the local evaluation. |
LocalEvaluationResultWithId
This class represents the result of a local evaluation with an id.
__init__
This class represents the result of a local evaluation with an id.
Arguments:
Name | Description |
---|---|
result | The result of the local evaluation. |
name | The name of the local evaluation. |
pass_fail_criteria | The pass fail criteria of the local evaluation. |
id | The id of the local evaluation. |