
    Oj                       U d dl mZ d dlmZ d dlmZmZmZmZm	Z	 ddl
mZ ddlmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZEmFZFmGZGmHZHmIZImJZJmKZKmLZL ddlMmNZN dd	lOmPZP  ed
d      ZQ G d de      Z G d deeeeQ         Z G d deE      ZD G d deeeeQ         Zeeg eeeQ   eDeeQ   eee)e(eIeGeJeKeLe*e$e"eee8e<e9e@e0e1e,eHeFeeee#e!eeee5e:e6eBe>eCe?e-e3e2e=e%e.e+e e&e/e'e4eAeePeNe;e7    ed      f   ZRdeSd<   y)    )annotations)Optional)UnionGenericTypeVar	Annotated	TypeAlias   )PropertyInfo)GenericModel):ParsedResponseResponseErrorEventResponseFailedEventResponseQueuedEventResponseCreatedEventResponseTextDoneEventResponseAudioDoneEventResponseCompletedEventResponseTextDeltaEventResponseAudioDeltaEventResponseIncompleteEventResponseInProgressEventResponseRefusalDoneEventResponseRefusalDeltaEventResponseMcpCallFailedEventResponseOutputItemDoneEventResponseContentPartDoneEventResponseOutputItemAddedEventResponseContentPartAddedEventResponseMcpCallCompletedEventResponseMcpCallInProgressEventResponseMcpListToolsFailedEvent ResponseAudioTranscriptDoneEvent!ResponseAudioTranscriptDeltaEvent!ResponseCompactionCompactingEvent!ResponseMcpCallArgumentsDoneEvent!ResponseShellCallCommandDoneEvent"ResponseImageGenCallCompletedEvent"ResponseMcpCallArgumentsDeltaEvent"ResponseMcpListToolsCompletedEvent"ResponseShellCallCommandAddedEvent"ResponseShellCallCommandDeltaEvent#ResponseImageGenCallGeneratingEvent#ResponseImageGenCallInProgressEvent#ResponseMcpListToolsInProgressEvent#ResponseWebSearchCallCompletedEvent#ResponseWebSearchCallSearchingEvent$ResponseCustomToolCallInputDoneEvent$ResponseFileSearchCallCompletedEvent$ResponseFileSearchCallSearchingEvent$ResponseWebSearchCallInProgressEvent%ResponseCustomToolCallInputDeltaEvent%ResponseFileSearchCallInProgressEvent%ResponseImageGenCallPartialImageEvent%ResponseReasoningSummaryPartDoneEvent%ResponseReasoningSummaryTextDoneEvent&ResponseFunctionCallArgumentsDoneEvent&ResponseOutputTextAnnotationAddedEvent&ResponseReasoningSummaryPartAddedEvent&ResponseReasoningSummaryTextDeltaEvent'ResponseFunctionCallArgumentsDeltaEvent'ResponseShellCallOutputContentDoneEvent(ResponseCodeInterpreterCallCodeDoneEvent(ResponseShellCallOutputContentDeltaEvent)ResponseCodeInterpreterCallCodeDeltaEvent)ResponseCodeInterpreterCallCompletedEvent*ResponseCodeInterpreterCallInProgressEvent,ResponseCodeInterpreterCallInterpretingEvent)ResponseReasoningTextDoneEvent)ResponseReasoningTextDeltaEventTextFormatTN)defaultc                      e Zd ZU ded<   y)r   strsnapshotN__name__
__module____qualname____annotations__     }/var/www/origus_pro_usr/data/www/origus.pro/core/.venv/lib/python3.12/site-packages/openai/lib/streaming/responses/_events.pyr   r   N       MrT   r   c                      e Zd ZU dZded<   y)r   NzOptional[TextFormatT]parsed)rO   rP   rQ   rX   rR   rS   rT   rU   r   r   R   s    $(F!(rT   r   c                      e Zd ZU ded<   y)r?   rL   rM   NrN   rS   rT   rU   r?   r?   V   rV   rT   r?   c                      e Zd ZU ded<   y)r   zParsedResponse[TextFormatT]responseNrN   rS   rT   rU   r   r   Z   s    ))rT   r   type)discriminatorr	   ResponseStreamEvent)T
__future__r   typingr   typing_extensionsr   r   r   r   r	   _utilsr   _compatr   types.responsesr   r   r   r   r   r   RawResponseTextDoneEventr   r   RawResponseCompletedEventr   RawResponseTextDeltaEventr   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   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   *RawResponseFunctionCallArgumentsDeltaEventr@   rA   rB   rC   rD   rE   rF   2types.responses.response_reasoning_text_done_eventrG   3types.responses.response_reasoning_text_delta_eventrH   rI   r^   rR   rS   rT   rU   <module>rk      s   "  K K # $; ; ; ; ; ; ; ; ; ; ; ; ; ; ;x b c6 )4lGKDX ).X *6gkFZ * "+	<	. <	.k*<	./<	. 	{+<	.
 	 <	. 	<	. 	*<	. 	)<	. 	2<	. 	1<	. 	2<	. 	3<	. 	5<	. 	*<	. 	&<	.  	%!<	." 	#<	.$ 	%<	.& 	-'<	.( 	.)<	.* 	-+<	., 	/-<	.. 	+/<	.0 	+1<	.2 	*3<	.4 	15<	.6 	07<	.8 	 9<	.: 	;<	.< 	 =<	.> 	%?<	.@ 	$A<	.B 	"C<	.D 	!E<	.F 	G<	.H 	,I<	.J 	-K<	.L 	,M<	.N 	/O<	.P 	.Q<	.R 	/S<	.T 	.U<	.V 	+W<	.X 	,Y<	.Z 	,[<	.\ 	.]<	.^ 	&_<	.` 	+a<	.b 	*c<	.d 	#e<	.f 	'g<	.h 	+i<	.j 	(k<	.l 	,m<	.n 	/o<	.p 	q<	.r 	(s<	.t 	'u<	.v 	.w<	.x 	-y<	.?@ v&A@(B" Y BrT   