
    g                     j    d dl Z 	 d dl mZ  G d de j                  d      Zy# e$ r	 d dlmZ Y %w xY w)    N)NotRequiredc                      e Zd ZU dZee   ed<   ee   ed<   eej                  e	ej                  f      ed<   eej                  e	ej                  f      ed<   eej                  e	ej                  f      ed<   ee   ed<   y)	RequestOptionsaA  
    Additional options for request-specific configuration when calling APIs via the SDK.
    This is used primarily as an optional final parameter for service functions.

    Attributes:
        - timeout_in_seconds: int. The number of seconds to await an API call before timing out.

        - max_retries: int. The max number of retries to attempt if the API call fails.

        - additional_headers: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's header dict

        - additional_query_parameters: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's query parameters dict

        - additional_body_parameters: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's body parameters dict

        - chunk_size: int. The size, in bytes, to process each chunk of data being streamed back within the response. This equates to leveraging `chunk_size` within `requests` or `httpx`, and is only leveraged for file downloads.
    timeout_in_secondsmax_retriesadditional_headersadditional_query_parametersadditional_body_parameters
chunk_sizeN)__name__
__module____qualname____doc__r   int__annotations__typingDictstrAny     P/var/www/openai/venv/lib/python3.12/site-packages/cohere/core/request_options.pyr   r      s~    $ $C((S!!#FKKVZZ$@AA!,V[[fjj-I!JJ +FKKVZZ,H IIC  r   r   F)total)r   r   ImportErrortyping_extensions	TypedDictr   r   r   r   <module>r      s:    ."
!V%%U !	  .-.s   $ 22