+
    Ui                       ^ RI Ht ^ RIHtHtHtHt ^ RIHt ^ RI	t	^RI
Ht ^RIHt ]'       d   ^RIHt . R*Ot ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R  R	]4      t ! R! R
]4      t ! R" R]4      t ! R# R]4      t ! R$ R]4      t ! R% R]4      t ! R& R]4      t ! R' R]4      t  ! R( R]4      t! ! R) R]"4      t#R# )+    )annotations)TYPE_CHECKINGAnyOptionalcast)LiteralN)is_dict)construct_type)ChatCompletionBadRequestErrorAuthenticationErrorPermissionDeniedErrorNotFoundErrorConflictErrorUnprocessableEntityErrorRateLimitErrorInternalServerErrorLengthFinishReasonErrorContentFilterFinishReasonErrorInvalidWebhookSignatureErrorc                      ] tR t^tRtR# )OpenAIError N__name__
__module____qualname____firstlineno____static_attributes__r       Q/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/openai/_exceptions.pyr   r          r    r   c                  v   a  ] tR t^#t$ R]R&   R]R&   R]R&    RtR]R	&   RtR]R
&   R]R&   R V 3R lltRtV ;t	# )APIErrorstrmessagehttpx.Requestrequestobject | NonebodyNzOptional[str]codeparamtypec               (    V ^8  d   QhRRRRRRRR/# )	   r&   r%   r(   r'   r*   r)   returnNoner   )formats   "r!   __annotate__APIError.__annotate__6   s)       m m X\ r    c          	     	  < \         SV `  V4       W n        Wn        W0n        \        V4      '       d   \        \        \        \        \        ,          VP                  R 4      R7      4      V n        \        \        \        \        \        ,          VP                  R4      R7      4      V n        \        \        \        \        VP                  R4      R7      4      V n        R# RV n        RV n        RV n        R# )r+   )type_valuer,   r-   N)super__init__r(   r&   r*   r	   r   r   r
   r   r%   getr+   r,   r-   )selfr&   r(   r*   	__class__s   &&&$r!   r9   APIError.__init__6   s    !	4==S.x}DHHU[L\"]^DIc>TXXV]M^#_`DJS.s$((6BR"STDIDIDJDIr    )r*   r+   r&   r,   r(   r-   )
r   r   r   r   __annotations__r+   r,   r9   r   __classcell__r<   s   @r!   r$   r$   #   s?    L
 D-E=
 r    r$   c                  L   a  ] tR t^Ft$ R]R&   R]R&   RR/R V 3R llltR	tV ;t# )
APIResponseValidationErrorhttpx.Responseresponseintstatus_coder&   Nc               (    V ^8  d   QhRRRRRRRR/# )	r/   rD   rC   r*   r)   r&   
str | Noner0   r1   r   )r2   s   "r!   r3   'APIResponseValidationError.__annotate__J   s*     0 0 0} 0R\ 0hl 0r    c               	   < \         ST `  T;'       g    R VP                  VR7       Wn        VP                  V n        R# )z1Data returned by API invalid for expected schema.r*   N)r8   r9   r(   rD   rF   )r;   rD   r*   r&   r<   s   &&&$r!   r9   #APIResponseValidationError.__init__J   s;    WW$WYaYiYiptu #//r    )rD   rF   r   r   r   r   r>   r9   r   r?   r@   s   @r!   rB   rB   F   s&    0_c 0 0 0r    rB   c                  R   a  ] tR t^Pt$ RtR]R&   R]R&   R]R&   R V 3R	 lltR
tV ;t# )APIStatusErrorz<Raised when an API response has a status code of 4xx or 5xx.rC   rD   rE   rF   rH   
request_idc               (    V ^8  d   QhRRRRRRRR/# )	r/   r&   r%   rD   rC   r*   r)   r0   r1   r   )r2   s   "r!   r3   APIStatusError.__annotate__W   s)     ? ? ?. ? ?Z^ ?r    c               	   < \         SV `  WP                  VR 7       W n        VP                  V n        VP
                  P                  R4      V n        R# )rK   zx-request-idN)r8   r9   r(   rD   rF   headersr:   rP   )r;   r&   rD   r*   r<   s   &&$$r!   r9   APIStatusError.__init__W   sF    "2"2> #//"**..~>r    )rP   rD   rF   )	r   r   r   r   __doc__r>   r9   r   r?   r@   s   @r!   rO   rO   P   s"    F? ?r    rO   c                  6   a  ] tR t^^tRR/R V 3R llltRtV ;t# )APIConnectionErrorr&   zConnection error.c               $    V ^8  d   QhRRRRRR/# )r/   r&   r%   r(   r'   r0   r1   r   )r2   s   "r!   r3   APIConnectionError.__annotate___   s"     6 63 6} 6Y] 6r    c               	*   < \         SV `  WR R7       R # )NrK   r8   r9   )r;   r&   r(   r<   s   &$$r!   r9   APIConnectionError.__init___   s    5r    r   r   r   r   r   r9   r   r?   r@   s   @r!   rX   rX   ^   s    6)< 6 6 6r    rX   c                  .   a  ] tR t^ctR V 3R lltRtV ;t# )APITimeoutErrorc                    V ^8  d   QhRRRR/# )r/   r(   r'   r0   r1   r   )r2   s   "r!   r3   APITimeoutError.__annotate__d   s     H H H$ Hr    c                	*   < \         SV `  R VR7       R# )zRequest timed out.)r&   r(   Nr\   )r;   r(   r<   s   &&r!   r9   APITimeoutError.__init__d   s    !5wGr    r   r^   r@   s   @r!   r`   r`   c   s    H Hr    r`   c                  &    ] tR t^ht$ RtR]R&   RtR# )r   i  zLiteral[400]rF   r   Nr   r   r   r   rF   r>   r   r   r    r!   r   r   h        #K#r    c                  &    ] tR t^lt$ RtR]R&   RtR# )r   i  zLiteral[401]rF   r   Nrf   r   r    r!   r   r   l   rg   r    c                  &    ] tR t^pt$ RtR]R&   RtR# )r   i  zLiteral[403]rF   r   Nrf   r   r    r!   r   r   p   rg   r    c                  &    ] tR t^tt$ RtR]R&   RtR# )r   i  zLiteral[404]rF   r   Nrf   r   r    r!   r   r   t   rg   r    c                  &    ] tR t^xt$ RtR]R&   RtR# )r   i  zLiteral[409]rF   r   Nrf   r   r    r!   r   r   x   rg   r    c                  &    ] tR t^|t$ RtR]R&   RtR# )r   i  zLiteral[422]rF   r   Nrf   r   r    r!   r   r   |   rg   r    c                  &    ] tR t^t$ RtR]R&   RtR# )r   i  zLiteral[429]rF   r   Nrf   r   r    r!   r   r      rg   r    c                      ] tR t^tRtR# )r   r   Nr   r   r    r!   r   r      r"   r    c                  <   a  ] tR t^t$ R]R&    R V 3R lltRtV ;t# )r   r   
completionc                    V ^8  d   QhRRRR/# )r/   rp   r   r0   r1   r   )r2   s   "r!   r3   $LengthFinishReasonError.__annotate__   s     % %n % %r    c               	   < R pVP                   '       d   VRVP                    2,          p\        SV `	  V4       Wn        R# )z@Could not parse response content as the length limit was reachedz - N)usager8   r9   rp   )r;   rp   msgr<   s   &$ r!   r9    LengthFinishReasonError.__init__   s>    PS))*++C$r    )rp   rM   r@   s   @r!   r   r      s    % %r    c                  .   a  ] tR t^tR V 3R lltRtV ;t# )r   c                   V ^8  d   QhRR/# )r/   r0   r1   r   )r2   s   "r!   r3   +ContentFilterFinishReasonError.__annotate__   s     
 
$ 
r    c                	&   < \         SV `  R 4       R# )zRCould not parse response content as the request was rejected by the content filterNr\   )r;   r<   s   &r!   r9   'ContentFilterFinishReasonError.__init__   s    `	
r    r   r^   r@   s   @r!   r   r      s    
 
r    c                      ] tR t^tRtRtR# )r   zqRaised when a webhook signature is invalid, meaning the computed signature does not match the expected signature.r   N)r   r   r   r   rV   r   r   r    r!   r   r      s    {r    )r   r   r   r   r   r   r   r   r   r   r   )$
__future__r   typingr   r   r   r   typing_extensionsr   httpx_utilsr	   _modelsr
   
types.chatr   __all__	Exceptionr   r$   rB   rO   rX   r`   r   r   r   r   r   r   r   r   r   r   
ValueErrorr   r   r    r!   <module>r      s    # 5 5 %   #*	) 	 {  F0 0?X ?6 6
H( H
$n $$. $$N $$N $$N $$~ $$^ $	. 	%k %"
[ 
|: |r    