Skip to main content

ReAsk

Base class for ReAsk objects. Attributes:
  • incorrect_value Any - The value that failed validation.
  • fail_results List[FailResult] - The results of the failed validations.

FieldReAsk

An implementation of ReAsk that is used to reask for a specific field. Inherits from ReAsk. Attributes:
  • path Optional[List[Any]] - a list of keys that designated the path to the field that failed validation.

SkeletonReAsk

An implementation of ReAsk that is used to reask for structured data when the response does not match the expected schema. Inherits from ReAsk.

NonParseableReAsk

An implementation of ReAsk that is used to reask for structured data when the response is not parseable as JSON. Inherits from ReAsk.

Filter

apply_filters

Recursively filter out any values that are instances of Filter.

Refrain

apply_refrain

Recursively check for any values that are instances of Refrain. If found, return an empty value of the appropriate type.