
    ~im                        d dl mZ d dlZd dlmZmZ d dlmZ ddlm	Z	m
Z
mZ ddlmZmZ dd	lmZ dd
lmZmZ ddlmZmZ ddlmZ ddlmZ ddlmZmZmZ ddlm Z  ddgZ! G d de          Z" G d de          Z#dS )    )annotationsN)IterableOptional)Literal   )BodyQueryHeaders   )CompletionsAsyncCompletions)cached_property)SyncAPIResourceAsyncAPIResource)with_sts_tokenasync_with_sts_token)make_request_options)CreateContextResponse)TTLTypesTruncationStrategyto_optional_ttl)ChatCompletionMessageParamContextAsyncContextc            	      P    e Zd Zedd            Zedddddddddd            ZdS )r   returnr   c                *    t          | j                  S N)r   _clientselfs    z/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkarkruntime/resources/context/context.pycompletionszContext.completions&   s    4<(((    Nsession)ttlmodetruncation_strategyextra_headersextra_query
extra_bodytimeoutmodelstrmessages$Iterable[ChatCompletionMessageParam]r&   Optional[TTLTypes] | Noner'   #Literal['session', 'common_prefix']r(   #Optional[TruncationStrategy] | Noner)   Headers | Noner*   Query | Noner+   Body | Noner,   float | httpx.Timeout | Noner   c       	   
         t          |          }|                     d|||||dt          ||||	          t                    S Nz/context/create)r-   r'   r/   r&   r(   )r)   r*   r+   r,   )bodyoptionscast_tor   _postr   r   )
r!   r-   r/   r&   r'   r(   r)   r*   r+   r,   s
             r"   createzContext.create*   sm     c""zz$':  )+'%	   *  
 
 	
r$   )r   r   )r-   r.   r/   r0   r&   r1   r'   r2   r(   r3   r)   r4   r*   r5   r+   r6   r,   r7   r   r   )__name__
__module____qualname__r   r#   r   r?    r$   r"   r   r   %   ss        ) ) ) _)  *.4=CG(,$("&04
 
 
 
 
 ^
 
 
r$   c            	      P    e Zd Zedd            Zedddddddddd            ZdS )r   r   r   c                *    t          | j                  S r   )r   r   r    s    r"   r#   zAsyncContext.completionsM   s    ---r$   r%   N)r'   r&   r(   r)   r*   r+   r,   r-   r.   r'   r2   r/   r0   r&   r1   r(   r3   r)   r4   r*   r5   r+   r6   r,   r7   r   c       	   
        K   t          |          }|                     d|||||dt          ||||	          t                     d {V S r9   r=   )
r!   r-   r'   r/   r&   r(   r)   r*   r+   r,   s
             r"   r?   zAsyncContext.createQ   s       c""ZZ$':  )+'%	   *   
 
 
 
 
 
 
 
 	
r$   )r   r   )r-   r.   r'   r2   r/   r0   r&   r1   r(   r3   r)   r4   r*   r5   r+   r6   r,   r7   r   r   )r@   rA   rB   r   r#   r   r?   rC   r$   r"   r   r   L   st        . . . _. 
 5>)-CG(,$("&04
 
 
 
 
 
 
 
r$   )$
__future__r   httpxtypingr   r   typing_extensionsr   _typesr   r	   r
   r#   r   r   _compatr   	_resourcer   r   _utils._utilsr   r   _base_clientr   types.contextr   #types.context.context_create_paramsr   r   r   
types.chatr   __all__r   r   rC   r$   r"   <module>rT      s   # " " " " "  % % % % % % % % % % % % % % * * * * * * * * * * 6 6 6 6 6 6 6 6 & & & & & & : : : : : : : : A A A A A A A A      3 2 2 2 2 2         
 5 4 4 4 4 4n
%$
 $
 $
 $
 $
o $
 $
 $
N$
 $
 $
 $
 $
# $
 $
 $
 $
 $
r$   