U
    Zh/                  8   @  s   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@mAZAmBZCmDZDmEZEmFZFmGZGmHZH edd	d
ZIG dd deZG dd deeeeI ZG dd deCZBG dd deeeeI ZeeeeeI eBeeI eee+e*eEeDeFeGeHe&e$eee7e:e8e>eeee%e"eeee5e9e6e@e<eAe=e.e3e2e;e'e/e,e e(e0e)e4e?ee#e1e-e!f6 eddf ZJdeKd< d	S )    )annotations)Optional)UnionGenericTypeVar	Annotated	TypeAlias   )PropertyInfo)GenericModel)6ParsedResponseResponseErrorEventResponseFailedEventResponseQueuedEventResponseCreatedEventResponseTextDoneEventResponseAudioDoneEventResponseCompletedEventResponseTextDeltaEventResponseAudioDeltaEventResponseIncompleteEventResponseInProgressEventResponseRefusalDoneEventResponseRefusalDeltaEventResponseMcpCallFailedEventResponseReasoningDoneEventResponseOutputItemDoneEventResponseReasoningDeltaEventResponseContentPartDoneEventResponseOutputItemAddedEventResponseContentPartAddedEventResponseMcpCallCompletedEventResponseMcpCallInProgressEventResponseMcpListToolsFailedEvent ResponseAudioTranscriptDoneEvent!ResponseAudioTranscriptDeltaEvent!ResponseMcpCallArgumentsDoneEvent!ResponseReasoningSummaryDoneEvent"ResponseImageGenCallCompletedEvent"ResponseMcpCallArgumentsDeltaEvent"ResponseMcpListToolsCompletedEvent"ResponseReasoningSummaryDeltaEvent#ResponseImageGenCallGeneratingEvent#ResponseImageGenCallInProgressEvent#ResponseMcpListToolsInProgressEvent#ResponseWebSearchCallCompletedEvent#ResponseWebSearchCallSearchingEvent$ResponseFileSearchCallCompletedEvent$ResponseFileSearchCallSearchingEvent$ResponseWebSearchCallInProgressEvent%ResponseFileSearchCallInProgressEvent%ResponseImageGenCallPartialImageEvent%ResponseReasoningSummaryPartDoneEvent%ResponseReasoningSummaryTextDoneEvent&ResponseFunctionCallArgumentsDoneEvent&ResponseOutputTextAnnotationAddedEvent&ResponseReasoningSummaryPartAddedEvent&ResponseReasoningSummaryTextDeltaEvent'ResponseFunctionCallArgumentsDeltaEvent(ResponseCodeInterpreterCallCodeDoneEvent)ResponseCodeInterpreterCallCodeDeltaEvent)ResponseCodeInterpreterCallCompletedEvent*ResponseCodeInterpreterCallInProgressEvent,ResponseCodeInterpreterCallInterpretingEventTextFormatTN)defaultc                   @  s   e Zd ZU ded< dS )r   strsnapshotN__name__
__module____qualname____annotations__ rK   rK   J/tmp/pip-unpacked-wheel-693nel7n/openai/lib/streaming/responses/_events.pyr   H   s   
r   c                   @  s   e Zd ZU dZded< dS )r   NzOptional[TextFormatT]parsed)rG   rH   rI   rM   rJ   rK   rK   rK   rL   r   L   s   
r   c                   @  s   e Zd ZU ded< dS )r<   rD   rE   NrF   rK   rK   rK   rL   r<   P   s   
r<   c                   @  s   e Zd ZU ded< dS )r   zParsedResponse[TextFormatT]responseNrF   rK   rK   rK   rL   r   T   s   
r   type)Zdiscriminatorr   ResponseStreamEvent)L
__future__r   typingr   Ztyping_extensionsr   r   r   r   r   _utilsr
   _compatr   Ztypes.responsesr   r   r   r   r   r   ZRawResponseTextDoneEventr   r   ZRawResponseCompletedEventr   Z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.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   Z*RawResponseFunctionCallArgumentsDeltaEventr=   r>   r?   r@   rA   rB   rP   rJ   rK   rK   rK   rL   <module>   s    9: