root.validators¶
Classes¶
Functions¶
|
Deprecated name for Validator; please use Validator. |
|
Deprecated name for Validator; please use Validator. |
Module Contents¶
- class root.validators.AValidator(*, evaluator_id: str | None = None, evaluator_name: str | None = None, prompt: str | None = None, model: root.skills.ModelName | None = None, threshold: float = 0.0)¶
- Parameters:
evaluator_id (Optional[str])
evaluator_name (Optional[str])
prompt (Optional[str])
model (Optional[root.skills.ModelName])
threshold (float)
- evaluator_id¶
- evaluator_name¶
- model¶
- prompt¶
- threshold¶
- class root.validators.Validator(*, evaluator_id: str | None = None, evaluator_name: str | None = None, prompt: str | None = None, model: root.skills.ModelName | None = None, threshold: float = 0.0)¶
- Parameters:
evaluator_id (Optional[str])
evaluator_name (Optional[str])
prompt (Optional[str])
model (Optional[root.skills.ModelName])
threshold (float)
- evaluator_id¶
- evaluator_name¶
- model¶
- prompt¶
- threshold¶
- root.validators.APredicateValidator(evaluator_id: str, threshold: float) AValidator ¶
Deprecated name for Validator; please use Validator.
- Parameters:
evaluator_id (str)
threshold (float)
- Return type: