root.validators

Classes

Functions

APredicateValidator(→ AValidator)

Deprecated name for Validator; please use Validator.

PredicateValidator(→ 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:

AValidator

root.validators.PredicateValidator(evaluator_id: str, threshold: float) Validator

Deprecated name for Validator; please use Validator.

Parameters:
  • evaluator_id (str)

  • threshold (float)

Return type:

Validator