+
    ~j                       ^ RI Ht ^ RIt^ RIt^ RIHtHt ^ RIHt ^ RIt^RI	H
t
 ^RIHtHtHt ^RIHt ^RIHtHtHtHtHtHtHtHt ^R	IHtHtHtHt ^R
IH t  ^RI!H"t"H#t# ^RI$H%t%H&t&H't'H(t(H)t)H*t* ^RI+H,t,H-t- ^RI.H/t/H0t0 ^RI1H2t2 ^RI3H4t4 ^RI5Ht RR.t6 ! R R]"4      t7 ! R R]#4      t8 ! R R4      t9 ! R R4      t: ! R R4      t; ! R R4      t<R# )    )annotationsN)Mappingcast)Literal)_legacy_response)FilePurposefile_list_paramsfile_create_params)deepcopy_with_paths)BodyOmitQueryHeadersNotGiven	FileTypesomit	not_given)extract_filespath_templatemaybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)StreamedBinaryAPIResponseAsyncStreamedBinaryAPIResponseto_streamed_response_wrapper"async_to_streamed_response_wrapper#to_custom_streamed_response_wrapper)async_to_custom_streamed_response_wrapper)SyncCursorPageAsyncCursorPage)AsyncPaginatormake_request_options)
FileObject)FileDeleted)r   Files
AsyncFilesc                  \   ] tR t^$tRt]R R l4       t]R R l4       tR]RRR	RR
RR]	/R R llt
RRR	RR
RR]	/R R lltR]R]R]R]RRR	RR
RR]	/R R lltRRR	RR
RR]	/R R lltRRR	RR
RR]	/R R llt]P                   ! R4      RRR	RR
RR]	/R R ll4       tRRRR#/R  R! lltR"tR# )$r'   d
Files are used to upload documents that can be used with features like Assistants and Fine-tuning.
c                   V ^8  d   QhRR/# )   returnFilesWithRawResponse )formats   "k/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/openai/resources/files.py__annotate__Files.__annotate__*   s     * *#7 *    c                    \        V 4      # z
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
)r.   selfs   &r1   with_raw_responseFiles.with_raw_response)   s     $D))r4   c                   V ^8  d   QhRR/# )r,   r-   FilesWithStreamingResponser/   )r0   s   "r1   r2   r3   4   s     0 0)C 0r4   c                    \        V 4      # z
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/openai/openai-python#with_streaming_response
)r<   r7   s   &r1   with_streaming_responseFiles.with_streaming_response3   s     *$//r4   expires_afterextra_headersNextra_query
extra_bodytimeoutc               8    V ^8  d   QhRRRRRRRRR	R
RRRRRR/# r,   filer   purposer   rA   z&file_create_params.ExpiresAfter | OmitrB   Headers | NonerC   Query | NonerD   Body | NonerE   'float | httpx.Timeout | None | NotGivenr-   r%   r/   )r0   s   "r1   r2   r3   <   f     \
 \
 \
 	\

 >\
 &\
 "\
  \
 9\
 
\
r4   c               *   \        RVRVRV/R..4      p\        \        \        \        \
        3,          V4      R..R7      p	RR/T;'       g    / CpV P                  R\        V\        P                  4      V	\        VVVVRR	/R
7      \        R7      # )<	  Upload a file that can be used across various endpoints.

Individual files can be
up to 512 MB, and each project can store up to 2.5 TB of files in total. There
is no organization-wide storage limit. Uploads to this endpoint are rate-limited
to 1,000 requests per minute per authenticated user.

- The Assistants API supports files up to 2 million tokens and of specific file
  types. See the
  [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools)
  for details.
- The Fine-tuning API only supports `.jsonl` files. The input also has certain
  required formats for fine-tuning
  [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input)
  or
  [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
  models.
- The Batch API only supports `.jsonl` files up to 200 MB in size. The input
  also has a specific required
  [format](https://platform.openai.com/docs/api-reference/batch/request-input).
- For Retrieval or `file_search` ingestion, upload files here first. If you need
  to attach multiple uploaded files to the same vector store, use
  [`/vector_stores/{vector_store_id}/file_batches`](https://platform.openai.com/docs/api-reference/vector-stores-file-batches/createBatch)
  instead of attaching them one by one. Vector store attachment has separate
  limits from file upload, including 2,000 attached files per minute per
  organization.

Please [contact us](https://help.openai.com/) if you need to increase these
storage limits.

Args:
  file: The File object (not file name) to be uploaded.

  purpose:
      The intended purpose of the uploaded file. One of:

      - `assistants`: Used in the Assistants API
      - `batch`: Used in the Batch API
      - `fine-tune`: Used for fine-tuning
      - `vision`: Images used for vision fine-tuning
      - `user_data`: Flexible file type for any purpose
      - `evals`: Used for eval data sets

  expires_after: The expiration policy for a file. By default, files with `purpose=batch` expire
      after 30 days and all other files are persisted until they are manually deleted.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rH   rI   rA   pathsContent-Typemultipart/form-data/filesbearer_authTrB   rC   rD   rE   securitybodyfilesoptionscast_to)r   r   r   r   strobject_postr   r
   FileCreateParamsr$   r%   
r8   rH   rI   rA   rB   rC   rD   rE   rZ   r[   s
   &$$$$$$$  r1   createFiles.create<   s    F #7
 XJ
 d73;#7>xjQ ()>X=CVCVTVXzz '9'J'JK(+'%'.   
 	
r4   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# r,   file_idr^   rB   rJ   rC   rK   rD   rL   rE   rM   r-   r%   r/   )r0   s   "r1   r2   r3      F     #
 #
#
 &#
 "#
  #
 9#
 
#
r4   c                   V'       g   \        RV: 24      hV P                  \        RVR7      \        VVVVRR/R7      \        R7      # )&  
Returns information about a specific file.

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
6Expected a non-empty value for `file_id` but received /files/{file_id}rg   rV   TrW   r\   r]   
ValueError_getr   r$   r%   r8   rg   rB   rC   rD   rE   s   &&$$$$r1   retrieveFiles.retrieve   s^    . UV]U`abbyy,g>(+'%'.   

 
	
r4   afterlimitorderrI   c               <    V ^8  d   QhRRRRRRRRRR	R
RRRRRRR/	# )r,   ru   
str | Omitrv   
int | Omitrw   Literal['asc', 'desc'] | OmitrI   rB   rJ   rC   rK   rD   rL   rE   rM   r-   zSyncCursorPage[FileObject]r/   )r0   s   "r1   r2   r3      sf     <
 <
 <
 	<

 -<
 <
 &<
 "<
  <
 9<
 
$<
r4   c                   V P                  R\        \        ,          \        VVVV\	        RVRVRVRV/\
        P                  4      RR/R7      \        R	7      # 
a|  Returns a list of files.

Args:
  after: A cursor for use in pagination.

`after` is an object ID that defines your place
      in the list. For instance, if you make a list request and receive 100 objects,
      ending with obj_foo, your subsequent call can include after=obj_foo in order to
      fetch the next page of the list.

  limit: A limit on the number of objects to be returned. Limit can range between 1 and
      10,000, and the default is 10,000.

  order: Sort order by the `created_at` timestamp of the objects. `asc` for ascending
      order and `desc` for descending order.

  purpose: Only return files with the given purpose.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rU   ru   rv   rw   rI   rV   T)rB   rC   rD   rE   queryrX   )pager\   model)_get_api_listr!   r%   r$   r   r	   FileListParams	r8   ru   rv   rw   rI   rB   rC   rD   rE   s	   &$$$$$$$$r1   list
Files.list   sw    P !!
+(+'%%!7	 %33 (.  ' " 
 	
r4   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# r,   rg   r^   rB   rJ   rC   rK   rD   rL   rE   rM   r-   r&   r/   )r0   s   "r1   r2   r3      F     #
 #
#
 &#
 "#
  #
 9#
 
#
r4   c                   V'       g   \        RV: 24      hV P                  \        RVR7      \        VVVVRR/R7      \        R7      # )/  
Delete a file and remove it from all vector stores.

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rk   rl   rm   rV   TrW   rn   rp   _deleter   r$   r&   rr   s   &&$$$$r1   deleteFiles.delete   s^    . UV]U`abb||,g>(+'%'.    

 
	
r4   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# r,   rg   r^   rB   rJ   rC   rK   rD   rL   rE   rM   r-   z+_legacy_response.HttpxBinaryResponseContentr/   )r0   s   "r1   r2   r3   "  F     $
 $
$
 &$
 "$
  $
 9$
 
5$
r4   c                   V'       g   \        RV: 24      hRR/T;'       g    / CpV P                  \        RVR7      \        VVVVRR/R7      \        P
                  R	7      # )
'  
Returns the contents of the specified file.

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rk   Acceptapplication/binary/files/{file_id}/contentrm   rV   TrW   rn   rp   rq   r   r$   r   HttpxBinaryResponseContentrr   s   &&$$$$r1   contentFiles.content"  s|    . UV]U`abb!#7QM<O<ORQyy4gF(+'%'. %??  

 
	
r4   .The `.content()` method should be used insteadc               0    V ^8  d   QhRRRRRRRRR	R
RR/# r,   rg   r^   rB   rJ   rC   rK   rD   rL   rE   rM   r-   r/   )r0   s   "r1   r2   r3   I  F     #
 #
#
 &#
 "#
  #
 9#
 
#
r4   c                   V'       g   \        RV: 24      hV P                  \        RVR7      \        VVVVRR/R7      \        R7      # )r   rk   r   rm   rV   TrW   rn   rp   rq   r   r$   r^   rr   s   &&$$$$r1   retrieve_contentFiles.retrieve_contentH  s^    0 UV]U`abbyy4gF(+'%'.   

 
	
r4   poll_interval      @max_wait_secondsc               (    V ^8  d   QhRRRRRRRR/# r,   idr^   r   floatr   r-   r%   r/   )r0   s   "r1   r2   r3   n  2       	
   
r4   c               *   0 Rmp\         P                   ! 4       pV P                  V4      pVP                  V9  dX   V P                  V4       V P                  V4      p\         P                   ! 4       V,
          V8  g   KV  \	        RV RV R24      hV# )EWaits for the given file to be processed, default timeout is 30 mins.Giving up on waiting for file  to finish processing after 	 seconds.>   errordeleted	processedtimers   status_sleepRuntimeErrorr8   r   r   r   TERMINAL_STATESstartrH   s   &&$$   r1   wait_for_processingFiles.wait_for_processingn  s     <		}}R kk0KK&==$Dyy{U"%55"4RD8TUeTffop  r4   r/     __name__
__module____qualname____firstlineno____doc__r   r9   r?   r   r   rc   rs   r   r   r   typing_extensions
deprecatedr   r   __static_attributes__r/   r4   r1   r'   r'   $   s    * * 0 0\

 AE\
 )-\
 %)\
 #'\
 <E\
|#
 )-#
 %)#
 #'#
 <E#
J<
 !<
 !	<

 04<
 #<
 )-<
 %)<
 #'<
 <E<
|#
 )-#
 %)#
 #'#
 <E#
J$
 )-$
 %)$
 #'$
 <E$
L !!"RS#
 )-#
 %)#
 #'#
 <E#
 T#
J  #	
 #* r4   c                  \   ] tR tRtRt]R R l4       t]R R l4       tR]RR	R
R	RR	R]	/R R llt
RR	R
R	RR	R]	/R R lltR]R]R]R]RR	R
R	RR	R]	/R R lltRR	R
R	RR	R]	/R R lltRR	R
R	RR	R]	/R R llt]P                   ! R4      RR	R
R	RR	R]	/R R ll4       tRRR R$/R! R" lltR#tR	# )%r(   i  r*   c                   V ^8  d   QhRR/# )r,   r-   AsyncFilesWithRawResponser/   )r0   s   "r1   r2   AsyncFiles.__annotate__  s     / /#< /r4   c                    \        V 4      # r6   )r   r7   s   &r1   r9   AsyncFiles.with_raw_response  s     )..r4   c                   V ^8  d   QhRR/# )r,   r-   AsyncFilesWithStreamingResponser/   )r0   s   "r1   r2   r     s     5 5)H 5r4   c                    \        V 4      # r>   )r   r7   s   &r1   r?   "AsyncFiles.with_streaming_response  s     /t44r4   rA   rB   NrC   rD   rE   c               8    V ^8  d   QhRRRRRRRRR	R
RRRRRR/# rG   r/   )r0   s   "r1   r2   r     rN   r4   c               Z  "   \        RVRVRV/R..4      p\        \        \        \        \
        3,          V4      R..R7      p	RR/T;'       g    / CpT P                  R\        V\        P                  4      G Rj  xL
 V	\        VVVVR	R
/R7      \        R7      G Rj  xL
 #  L( L5i)rP   rH   rI   rA   rQ   rS   rT   rU   NrV   TrW   rY   )r   r   r   r   r^   r_   r`   r   r
   ra   r$   r%   rb   s
   &$$$$$$$  r1   rc   AsyncFiles.create  s     F #7
 XJ
 d73;#7>xjQ ()>X=CVCVTVXZZ,T3E3V3VWW(+'%'.    
 
 	
W
s$   A<B+>B'
?#B+"B)#B+)B+c               0    V ^8  d   QhRRRRRRRRR	R
RR/# rf   r/   )r0   s   "r1   r2   r     rh   r4   c                  "   V'       g   \        RV: 24      hV P                  \        RVR7      \        VVVVRR/R7      \        R7      G Rj  xL
 #  L5i)	rj   rk   rl   rm   rV   TrW   rn   Nro   rr   s   &&$$$$r1   rs   AsyncFiles.retrieve  sk     . UV]U`abbYY,g>(+'%'.   

 

 
	
 

   AAAAru   rv   rw   rI   c               <    V ^8  d   QhRRRRRRRRRR	R
RRRRRRR/	# )r,   ru   ry   rv   rz   rw   r{   rI   rB   rJ   rC   rK   rD   rL   rE   rM   r-   z7AsyncPaginator[FileObject, AsyncCursorPage[FileObject]]r/   )r0   s   "r1   r2   r   !  sg     <
 <
 <
 	<

 -<
 <
 &<
 "<
  <
 9<
 
A<
r4   c                   V P                  R\        \        ,          \        VVVV\	        RVRVRVRV/\
        P                  4      RR/R7      \        R	7      # r}   )r   r"   r%   r$   r   r	   r   r   s	   &$$$$$$$$r1   r   AsyncFiles.list!  sw    P !! ,(+'%%!7	 %33 (.  ' " 
 	
r4   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# r   r/   )r0   s   "r1   r2   r   _  r   r4   c                  "   V'       g   \        RV: 24      hV P                  \        RVR7      \        VVVVRR/R7      \        R7      G Rj  xL
 #  L5i)	r   rk   rl   rm   rV   TrW   rn   Nr   rr   s   &&$$$$r1   r   AsyncFiles.delete_  sk     . UV]U`abb\\,g>(+'%'.   " 

 

 
	
 

r   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# r   r/   )r0   s   "r1   r2   r     r   r4   c                  "   V'       g   \        RV: 24      hRR/T;'       g    / CpV P                  \        RVR7      \        VVVVRR/R7      \        P
                  R	7      G R
j  xL
 #  L5i)r   rk   r   r   r   rm   rV   TrW   rn   Nr   rr   s   &&$$$$r1   r   AsyncFiles.content  s     . UV]U`abb!#7QM<O<ORQYY4gF(+'%'. %??  

 

 
	
 

s   #A1AA1*A/+A1r   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# r   r/   )r0   s   "r1   r2   r     r   r4   c                  "   V'       g   \        RV: 24      hV P                  \        RVR7      \        VVVVRR/R7      \        R7      G Rj  xL
 #  L5i)	r   rk   r   rm   rV   TrW   rn   Nr   rr   s   &&$$$$r1   r   AsyncFiles.retrieve_content  sk     0 UV]U`abbYY4gF(+'%'.   

 

 
	
 

r   r   r   r   c               (    V ^8  d   QhRRRRRRRR/# r   r/   )r0   s   "r1   r2   r     r   r4   c               n  "   0 Rmp\         P                   ! 4       pV P                  V4      G Rj  xL
 pVP                  V9  dh   V P                  V4      G Rj  xL
  V P                  V4      G Rj  xL
 p\         P                   ! 4       V,
          V8  g   Kf  \	        RV RV R24      hV#  L~ LV L?5i)r   Nr   r   r   >   r   r   r   r   r   s   &&$$   r1   r   AsyncFiles.wait_for_processing  s      <		]]2&&kk0++m,,,r**Dyy{U"%55"4RD8TUeTffop   ',*s9   .B5B/)B5B1B53B34"B5B51B53B5r/   r   r   r/   r4   r1   r(   r(     s    / / 5 5\

 AE\
 )-\
 %)\
 #'\
 <E\
|#
 )-#
 %)#
 #'#
 <E#
J<
 !<
 !	<

 04<
 #<
 )-<
 %)<
 #'<
 <E<
|#
 )-#
 %)#
 #'#
 <E#
J$
 )-$
 %)$
 #'$
 <E$
L !!"RS#
 )-#
 %)#
 #'#
 <E#
 T#
J  #	
 #* r4   c                  "    ] tR tRtR R ltRtR# )r.   i  c                    V ^8  d   QhRRRR/# r,   r[   r'   r-   Noner/   )r0   s   "r1   r2   !FilesWithRawResponse.__annotate__  s     
 
e 
 
r4   c                	   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP
                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        R # N)	_filesr   to_raw_response_wrapperrc   rs   r   r   r   r   r8   r[   s   &&r1   __init__FilesWithRawResponse.__init__  s    &>>LL
 )@@NN
 %<<JJ
	 '>>LL
 (??MM
 44&& 	r4   r   r   rc   r   r   rs   r   Nr   r   r   r   r   r   r/   r4   r1   r.   r.         
 
r4   r.   c                  "    ] tR tRtR R ltRtR# )r   i  c                    V ^8  d   QhRRRR/# r,   r[   r(   r-   r   r/   )r0   s   "r1   r2   &AsyncFilesWithRawResponse.__annotate__  s     
 
j 
T 
r4   c                	   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP
                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        R # r   )	r   r   async_to_raw_response_wrapperrc   rs   r   r   r   r   r   s   &&r1   r   "AsyncFilesWithRawResponse.__init__  s    &DDLL
 )FFNN
 %BBJJ
	 'DDLL
 (EEMM
 ::&& 	r4   r   Nr   r/   r4   r1   r   r     r   r4   r   c                  "    ] tR tRtR R ltRtR# )r<   i  c                    V ^8  d   QhRRRR/# r   r/   )r0   s   "r1   r2   'FilesWithStreamingResponse.__annotate__  s     
 
e 
 
r4   c                	T   Wn         \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP
                  4      V n        \        VP                  \        4      V n        \        VP                  4      V n	        R # r   )
r   r   rc   rs   r   r   r   r   r   r   r   s   &&r1   r   #FilesWithStreamingResponse.__init__  s    2LL
 5NN
 1JJ
	 3LL
 ;MM%

 )&& 	r4   r   Nr   r/   r4   r1   r<   r<         
 
r4   r<   c                  "    ] tR tRtR R ltRtR# )r   i7  c                    V ^8  d   QhRRRR/# r   r/   )r0   s   "r1   r2   ,AsyncFilesWithStreamingResponse.__annotate__8  s     
 
j 
T 
r4   c                	T   Wn         \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP
                  4      V n        \        VP                  \        4      V n        \        VP                  4      V n	        R # r   )
r   r   rc   rs   r   r   r    r   r   r   r   s   &&r1   r   (AsyncFilesWithStreamingResponse.__init__8  s    8LL
 ;NN
 7JJ
	 9LL
 AMM*

 /&& 	r4   r   Nr   r/   r4   r1   r   r   7  r  r4   r   )=
__future__r   r   r   typingr   r   r   httpx r   typesr   r	   r
   r   r   _typesr   r   r   r   r   r   r   r   _utilsr   r   r   r   _compatr   	_resourcer   r   	_responser   r   r   r   r   r    
paginationr!   r"   _base_clientr#   r$   types.file_objectr%   types.file_deletedr&   types.file_purpose__all__r'   r(   r.   r   r<   r   r/   r4   r1   <module>r     s    #     %   E E ( U U U Y Y % 9  9 ? * , ,L
!_O _D_! _D
 
4
 
4
 
6
 
r4   