
    is                          d dl mZ dedefdZy)    )Anyschema_nodereturnc                 J   t        | t        t        f      s| | S t        | t              r9d| v r| d   dk(  rd| d<   | j	                         D ]  \  }}t        |      | |<    | S t        | t              r#t        |       D ]  \  }}t        |      | |<    | S t        d|        )z
    Recursively set the additionalProperties property to False for all objects in the JSON Schema.
    This makes the JSON Schema strict (i.e. no additional properties are allowed).
    typeobjectFadditionalPropertieszUnexpected type: )	
isinstancestrbooldictitemsrec_strict_json_schemalist	enumerate
ValueError)r   keyvalueis       d/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/mistralai/extra/utils/_pydantic_helper.pyr   r      s    
 +T{+{/B+t$[ [%8H%D27K./%++- 	=JC5e<K	=  
K	&!+. 	;HAu3E:KN	;  ,[M:;;    N)typingr   r    r   r   <module>r      s      r   