+
    i                    R   R t ^ RIHt ^ RIHtHt ^ RIHtHtH	t	H
t
Ht ^ RIHt ^ RIHtHt ^RIHt ^RIHtHt ^RIHtHt ]'       d2   ^R	IHt ^R
IHt ]! R]]3R7       ! R R]P<                  4      4       tM]P<                  tRt ]! R4      t! ! R R]]	]!,          ]R7      t"R# )z%RootModel class and type definitions.)annotations)copydeepcopy)TYPE_CHECKINGAnyGenericLiteralTypeVar)PydanticUndefined)Selfdataclass_transform)PydanticUserError)_model_construction_repr)	BaseModel_object_setattr)Field)PrivateAttrF)kw_only_defaultfield_specifiersc                      ] tR t^tRtR# )_RootModelMetaclass N)__name__
__module____qualname____firstlineno____static_attributes__r       Z/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pydantic/root_model.pyr   r      s    CFr   r   	RootModelRootModelRootTypec                  &  a  ] tR t^ t$ RtRtRtRtR]R&   V 3R lt	]
3R R lltR]n        ]R(R	 V 3R
 lll4       tR R ltR R ltR R ltR(R R llt]'       d!   RRRRRRRRRRRRRRRRRRRRRRR R/R! R" lltR# V 3R$ lltR% R& ltR'tV ;t# ))r    a  !!! abstract "Usage Documentation"
    [`RootModel` and Custom Root Types](../concepts/models.md#rootmodel-and-custom-root-types)

A Pydantic `BaseModel` for the root object of the model.

Attributes:
    root: The root object of the model.
    __pydantic_root_model__: Whether the model is a RootModel.
    __pydantic_private__: Private fields in the model.
    __pydantic_extra__: Extra fields in the model.

TNr!   rootc                	   < V P                   P                  R 4      pVe   \        RRR7      h\        SV `  ! R/ VB  R# )extraNz<`RootModel` does not support setting `model_config['extra']`zroot-model-extra)coder   )model_configgetr   super__init_subclass__)clskwargsr%   	__class__s   &, r   r*   RootModel.__init_subclass__4   sD      $$W-#NUg  	!+F+r   c                    V ^8  d   QhRRRR/# )   r#   r!   returnNoner   )formats   "r   __annotate__RootModel.__annotate__<   s      N N 1 NRV Nr   c               	    R pV'       d   V\         Jd   \        R4      hTpV P                  P                  WR7       R# )Tz_"RootModel.__init__" accepts either a single positional argument or arbitrary keyword arguments)self_instanceN)r
   
ValueError__pydantic_validator__validate_python)selfr#   data__tracebackhide__s   "&, r   __init__RootModel.__init__<   sB     ,, u  D##33D3Mr   c               $    V ^8  d   QhRRRRRR/# )r0   r#   r!   _fields_setzset[str] | Noner1   r   r   )r3   s   "r   r4   r5   I   s(     K K#4 K? K^b Kr   c                $   < \         SV `  WR7      # )a  Create a new model using the provided root object and update fields set.

Args:
    root: The root object of the model.
    _fields_set: The set of fields to be updated.

Returns:
    The new model.

Raises:
    NotImplemented: If the model is not a subclass of `RootModel`.
)r#   rA   )r)   model_construct)r+   r#   rA   r-   s   &&&r   rC   RootModel.model_constructH   s     w&D&JJr   c                   V ^8  d   QhRR/# )r0   r1   dict[Any, Any]r   )r3   s   "r   r4   r5   X   s     
 
n 
r   c                	6    R V P                   RV P                  /# __dict____pydantic_fields_set__rH   r;   s   &r   __getstate__RootModel.__getstate__X   s     %t'C'C
 	
r   c                    V ^8  d   QhRRRR/# )r0   staterF   r1   r2   r   )r3   s   "r   r4   r5   ^   s     = =. =T =r   c                	V    \        V R VR ,          4       \        V RVR,          4       R# )rJ   rI   N)r   )r;   rO   s   &&r   __setstate__RootModel.__setstate__^   s&    7?X9YZj%
*;<r   c                   V ^8  d   QhRR/# )r0   r1   r   r   )r3   s   "r   r4   r5   b   s      $ r   c                    \        V 4      pVP                  V4      p\        VR\        V P                  4      4       \        VR\        V P
                  4      4       V# )z$Returns a shallow copy of the model.rI   rJ   )type__new__r   r   rI   rJ   )r;   r+   ms   &  r   __copy__RootModel.__copy__b   sK    4jKK:tDMM':;4d4;W;W6XYr   c                    V ^8  d   QhRRRR/# )r0   memozdict[int, Any] | Noner1   r   r   )r3   s   "r   r4   r5   j   s      !6 $ r   c           	         \        V 4      pVP                  V4      p\        VR\        V P                  VR7      4       \        VR\        V P                  4      4       V# )z!Returns a deep copy of the model.rI   )r[   rJ   )rU   rV   r   r   rI   r   rJ   )r;   r[   r+   rW   s   &&  r   __deepcopy__RootModel.__deepcopy__j   sO    4jKK:xD'IJ 	4d4;W;W6XYr   modepythonincludeexcludecontextby_aliasexclude_unsetFexclude_defaultsexclude_noneexclude_computed_fields
round_tripwarningsserialize_as_anyc               L    V ^8  d   QhRRRRRRRRRR	R
RRRRRRRRRRRRRRR/# )r0   r_   zLiteral['json', 'python'] | strra   r   rb   rc   zdict[str, Any] | Nonerd   zbool | Nonere   boolrf   rg   rh   ri   rj   z'bool | Literal['none', 'warn', 'error']rk   r1   r   )r3   s   "r   r4   r5   v   s     	 	 2	 		
 	 +	 "	  	 #	 	 &*	 	 >	 #	 	r   c                   R# )a  This method is included just to get a more accurate return type for type checkers.
It is included in this `if TYPE_CHECKING:` block since no override is actually necessary.

See the documentation of `BaseModel.model_dump` for more details about the arguments.

Generally, this method will have a return type of `RootModelRootType`, assuming that `RootModelRootType` is
not a `BaseModel` subclass. If `RootModelRootType` is a `BaseModel` subclass, then the return
type will likely be `dict[str, Any]`, as `model_dump` calls are recursive. The return type could
even be something different, in the case of a custom serializer.
Thus, `Any` is used here to catch all of these cases.
Nr   )r;   r_   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   s   &$$$$$$$$$$$$r   
model_dumpRootModel.model_dumpv   s    6 r   c                    V ^8  d   QhRRRR/# )r0   otherr   r1   rm   r   )r3   s   "r   r4   r5      s     / /C /D /r   c                	   < \        V\        4      '       g   \        # V P                  R ,          P                  VP                  R ,          P                  8H  ;'       d    \
        SV `  V4      # r#   )
isinstancer    NotImplemented__pydantic_fields__
annotationr)   __eq__)r;   rr   r-   s   &&r   ry   RootModel.__eq__   s_    %++!!''/::e>W>W?

* / /.	/r   c                   V ^8  d   QhRR/# )r0   r1   z_repr.ReprArgsr   )r3   s   "r   r4   r5      s        ~  r   c              #  	.   "   R V P                   3x  R# 5i)r#   Nrt   rK   s   &r   __repr_args__RootModel.__repr_args__   s     diis   r   )N)r   r   r   r   __doc____pydantic_root_model____pydantic_private____pydantic_extra____annotations__r*   r
   r>   __pydantic_base_init__classmethodrC   rL   rQ   rX   r]   r   ro   ry   r}   r   __classcell__)r-   s   @r   r    r        s    #
, 5F N '+H#K K K
= 	 5=	  		
  	 .2	 %)	 #(	 &+	 "'	 -2	  %	 AE	 &+	:/ /   r   )	metaclassN)r    )#r   
__future__r   _annotationsr   r   typingr   r   r   r   r	   pydantic_corer
   typing_extensionsr   r    r   	_internalr   r   mainr   r   fieldsr   PydanticModelFieldr   PydanticModelPrivateAttrModelMetaclassr   __all__r!   r    r   r   r   <module>r      s    + 2  @ @ + 7  1 ,3?
 BTVnAopF1@@F qF-<<
/0 { 	7#45AT { r   