
    6i                     B    d Z ddlmZ ddlmZ ddlmZ  G d de      Zy)	z;Validators that extend OpenAISchema for structured outputs.    )Optional)Field   )OpenAISchemac                   x    e Zd ZU dZ edd      Zeed<    edd      Ze	e
   ed<    edd	      Ze	e
   ed
<   y)	Validatorzf
    Validate if an attribute is correct and if not,
    return a new value with an error message
    Tz8Whether the attribute is valid based on the requirements)defaultdescriptionis_validNz?The error message if the attribute is not valid, otherwise NonereasonzDIf the attribute is not valid, suggest a new value for the attributefixed_value)__name__
__module____qualname____doc__r   r   bool__annotations__r   r   strr        k/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/instructor/processing/validators.pyr   r   
   sZ    
 NHd  "UFHSM  "'Z"K# r   r   N)r   typingr   pydanticr   function_callsr   r   r   r   r   <module>r      s    A   ( r   