
    4Rj{b                       d dl mZ d dlmZmZmZmZ d dlmZ d dl	Z	ddl
mZ ddlmZmZmZmZmZ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 ddlm Z m!Z!m"Z"m#Z#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/m0Z0 ddl1m2Z2m3Z3 ddl4m5Z5m6Z6 ddl7m8Z8 ddl9m:Z: ddl;m<Z< ddl=m>Z> ddl?m@Z@ ddgZA G d de)      ZB G d de*      ZC G d d      ZD G d d      ZE G d d       ZF G d! d"      ZGy)#    )annotations)ListMappingOptionalcast)chainN   )_legacy_response   )VersionsAsyncVersionsVersionsWithRawResponseAsyncVersionsWithRawResponseVersionsWithStreamingResponse"AsyncVersionsWithStreamingResponse)deepcopy_with_paths)	BodyOmitQueryHeadersNotGiven	FileTypesSequenceNotStromit	not_given)is_givenextract_filespath_templatemaybe_transformstrip_not_givenasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncPageCursorAsyncPageCursor)skill_list_paramsskill_create_params)AsyncPaginatormake_request_options)AnthropicBetaParam)SkillListResponse)SkillCreateResponse)SkillDeleteResponse)SkillRetrieveResponseSkillsAsyncSkillsc            	         e Zd Zedd       Zedd       Zedd       Zeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ	eddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ
eeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd
Zeddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)r2   c                ,    t        | j                        S N)r   _clientselfs    n/var/www/html/meridian/meridian-ai/venv/lib/python3.12/site-packages/anthropic/resources/beta/skills/skills.pyversionszSkills.versions0   s    %%    c                    t        |       S a  
        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/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
        )SkillsWithRawResponser8   s    r:   with_raw_responsezSkills.with_raw_response4   s     %T**r<   c                    t        |       S z
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/anthropics/anthropic-sdk-python#with_streaming_response
        )SkillsWithStreamingResponser8   s    r:   with_streaming_responsezSkills.with_streaming_response>   s     +400r<   Ndisplay_titlebetasextra_headersextra_query
extra_bodytimeoutc                  i t        dt        |      r#dj                  t        d |D        dg            nt        i      |xs i }ddi|xs i }t        ||dddgg      }t        t        t        t        t        f   |      ddgg      }	d	|d
<   | j                  dt        |t        j                        |	t        ||||      t               S )  
        Create Skill

        Args:
          files: Files to upload for the skill.

              All files must be in the same top-level directory and must include a SKILL.md
              file at the root of that directory.

          display_title: Display title for the skill.

              This is a human-readable label that is not included in the prompt sent to the
              model.

          betas: Optional header to specify the beta version(s) you want to use.

          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
        anthropic-beta,c              3  2   K   | ]  }t        |        y wr6   str.0es     r:   	<genexpr>z Skills.create.<locals>.<genexpr>o        5Lc!f5L   skills-2025-10-02filesrF   r[   <array>pathsmultipart/form-dataContent-Type/v1/skills?beta=truerH   rI   rJ   rK   bodyr[   optionscast_to)r    r   joinr   r   r   r   r   r   rR   object_postr   r*   SkillCreateParamsr,   r/   
r9   r[   rF   rG   rH   rI   rJ   rK   rd   extracted_filess
             r:   createzSkills.createG   s
   J	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX"!. y!"
 (WS&[-A4(HRY[dQePfg )>n%zz" ':'L'LM!(+Q[el (  
 	
r<   rG   rH   rI   rJ   rK   c          
     $   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	      S )
  
        Get Skill

        Args:
          skill_id: Unique identifier for the skill.

              The format and length of IDs may change over time.

          betas: Optional header to specify the beta version(s) you want to use.

          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
        7Expected a non-empty value for `skill_id` but received rN   rO   c              3  2   K   | ]  }t        |        y wr6   rQ   rS   s     r:   rV   z"Skills.retrieve.<locals>.<genexpr>   rW   rX   rY   /v1/skills/{skill_id}?beta=trueskill_idrb   re   rf   

ValueErrorr    r   rg   r   r   _getr   r,   r1   r9   ru   rG   rH   rI   rJ   rK   s          r:   retrievezSkills.retrieve   s    < VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXyy;hO(+Q[el *  
 	
r<   limitpagesourcerG   rH   rI   rJ   rK   c               @   i t        dt        |      r#dj                  t        d |D        dg            nt        i      |xs i }ddi|xs i }| j                  dt        t           t        ||||t        |||dt        j                              t              S )	  
        List Skills

        Args:
          limit: Number of results to return per page.

              Maximum value is 100. Defaults to 20.

          page: Pagination token for fetching a specific page of results.

              Pass the value from a previous response's `next_page` field to get the next page
              of results.

          source: Filter skills by source.

              If provided, only skills from the specified source will be returned:

              - `"custom"`: only return user-created skills
              - `"anthropic"`: only return Anthropic-created skills

          betas: Optional header to specify the beta version(s) you want to use.

          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
        rN   rO   c              3  2   K   | ]  }t        |        y wr6   rQ   rS   s     r:   rV   zSkills.list.<locals>.<genexpr>   rW   rX   rY   ra   r}   r~   r   rH   rI   rJ   rK   queryr~   re   model)r    r   rg   r   r   _get_api_listr'   r.   r,   r   r)   SkillListParams	r9   r}   r~   r   rG   rH   rI   rJ   rK   s	            r:   listzSkills.list   s    X	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!" 12(+'%%!& $"(
 &55 $# " 
 	
r<   c          
     $   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	      S )

  
        Delete Skill

        Args:
          skill_id: Unique identifier for the skill.

              The format and length of IDs may change over time.

          betas: Optional header to specify the beta version(s) you want to use.

          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
        rq   rN   rO   c              3  2   K   | ]  }t        |        y wr6   rQ   rS   s     r:   rV   z Skills.delete.<locals>.<genexpr>.  rW   rX   rY   rs   rt   rb   rv   
rx   r    r   rg   r   r   _deleter   r,   r0   rz   s          r:   deletezSkills.delete  s    < VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX||;hO(+Q[el (  
 	
r<   )returnr   )r   r?   )r   rC   r[   zSequenceNotStr[FileTypes]rF   Optional[str] | OmitrG   List[AnthropicBetaParam] | OmitrH   Headers | NonerI   Query | NonerJ   Body | NonerK   'float | httpx.Timeout | None | NotGivenr   r/   ru   rR   rG   r   rH   r   rI   r   rJ   r   rK   r   r   r1   )r}   
int | Omitr~   r   r   r   rG   r   rH   r   rI   r   rJ   r   rK   r   r   z!SyncPageCursor[SkillListResponse]ru   rR   rG   r   rH   r   rI   r   rJ   r   rK   r   r   r0   __name__
__module____qualname__r"   r;   r@   rD   r   r   rm   r{   r   r    r<   r:   r2   r2   /   s   & & + + 1 1 /315 )-$("&;DD
 )D
 ,	D

 /D
 &D
 "D
  D
 9D
 
D
T 26 )-$("&;D1
1
 /	1
 &1
 "1
  1
 91
 
1
l !%)'+15 )-$("&;DI
 I
 #	I

 %I
 /I
 &I
 "I
  I
 9I
 
+I
^ 26 )-$("&;D1
1
 /	1
 &1
 "1
  1
 91
 
1
r<   c            	         e Zd Zedd       Zedd       Zedd       Zeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ	eddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ
eeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd
Zeddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)r3   c                ,    t        | j                        S r6   )r   r7   r8   s    r:   r;   zAsyncSkills.versions@  s    T\\**r<   c                    t        |       S r>   )AsyncSkillsWithRawResponser8   s    r:   r@   zAsyncSkills.with_raw_responseD  s     *$//r<   c                    t        |       S rB   ) AsyncSkillsWithStreamingResponser8   s    r:   rD   z#AsyncSkills.with_streaming_responseN  s     055r<   NrE   c                 K   i t        dt        |      r#dj                  t        d |D        dg            nt        i      |xs i }ddi|xs i }t        ||dddgg      }t        t        t        t        t        f   |      ddgg      }	d	|d
<   | j                  dt        |t        j                         d{   |	t        ||||      t                d{   S 7 %7 w)rM   rN   rO   c              3  2   K   | ]  }t        |        y wr6   rQ   rS   s     r:   rV   z%AsyncSkills.create.<locals>.<genexpr>  rW   rX   rY   rZ   r[   r\   r]   r_   r`   ra   Nrb   rc   )r    r   rg   r   r   r   r   r   r   rR   rh   ri   r!   r*   rj   r,   r/   rk   s
             r:   rm   zAsyncSkills.createW  s    J	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX"!. y!"
 (WS&[-A4(HRY[dQePfg )>n%ZZ",T3F3X3XYY!(+Q[el (   
 
 	
Y
s$   B=C)?C%
  C) C'!C)'C)rn   c          
     @  K   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	       d
{   S 7 w)rp   rq   rN   rO   c              3  2   K   | ]  }t        |        y wr6   rQ   rS   s     r:   rV   z'AsyncSkills.retrieve.<locals>.<genexpr>  rW   rX   rY   rs   rt   rb   rv   Nrw   rz   s          r:   r{   zAsyncSkills.retrieve  s     < VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXYY;hO(+Q[el *  
 
 	
 
   BBBBr|   c               @   i t        dt        |      r#dj                  t        d |D        dg            nt        i      |xs i }ddi|xs i }| j                  dt        t           t        ||||t        |||dt        j                              t              S )	r   rN   rO   c              3  2   K   | ]  }t        |        y wr6   rQ   rS   s     r:   rV   z#AsyncSkills.list.<locals>.<genexpr>  rW   rX   rY   ra   r   r   r   )r    r   rg   r   r   r   r(   r.   r,   r   r)   r   r   s	            r:   r   zAsyncSkills.list  s    X	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!" !23(+'%%!& $"(
 &55 $# " 
 	
r<   c          
     @  K   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	       d
{   S 7 w)r   rq   rN   rO   c              3  2   K   | ]  }t        |        y wr6   rQ   rS   s     r:   rV   z%AsyncSkills.delete.<locals>.<genexpr>>  rW   rX   rY   rs   rt   rb   rv   Nr   rz   s          r:   r   zAsyncSkills.delete  s     < VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX\\;hO(+Q[el ( " 
 
 	
 
r   )r   r   )r   r   )r   r   r   r   )r}   r   r~   r   r   r   rG   r   rH   r   rI   r   rJ   r   rK   r   r   zEAsyncPaginator[SkillListResponse, AsyncPageCursor[SkillListResponse]]r   r   r   r<   r:   r3   r3   ?  s   + + 0 0 6 6 /315 )-$("&;DD
 )D
 ,	D

 /D
 &D
 "D
  D
 9D
 
D
T 26 )-$("&;D1
1
 /	1
 &1
 "1
  1
 91
 
1
l !%)'+15 )-$("&;DI
 I
 #	I

 %I
 /I
 &I
 "I
  I
 9I
 
OI
^ 26 )-$("&;D1
1
 /	1
 &1
 "1
  1
 91
 
1
r<   c                  &    e Zd ZddZedd       Zy)r?   c                2   || _         t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j
                        | _        t        j                  |j                        | _        y r6   )_skillsr
   to_raw_response_wrapperrm   r{   r   r   r9   skillss     r:   __init__zSkillsWithRawResponse.__init__P  ss    &>>MM
 )@@OO
 %<<KK
	 '>>MM
r<   c                @    t        | j                  j                        S r6   )r   r   r;   r8   s    r:   r;   zSkillsWithRawResponse.versions`  s    &t||'<'<==r<   Nr   r2   r   None)r   r   r   r   r   r   r"   r;   r   r<   r:   r?   r?   O  s    
  > >r<   r?   c                  &    e Zd ZddZedd       Zy)r   c                2   || _         t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j
                        | _        t        j                  |j                        | _        y r6   )r   r
   async_to_raw_response_wrapperrm   r{   r   r   r   s     r:   r   z#AsyncSkillsWithRawResponse.__init__f  ss    &DDMM
 )FFOO
 %BBKK
	 'DDMM
r<   c                @    t        | j                  j                        S r6   )r   r   r;   r8   s    r:   r;   z#AsyncSkillsWithRawResponse.versionsv  s    +DLL,A,ABBr<   Nr   r3   r   r   )r   r   r   r   r<   r:   r   r   e  s    
  C Cr<   r   c                  &    e Zd ZddZedd       Zy)rC   c                    || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        y r6   )r   r%   rm   r{   r   r   r   s     r:   r   z$SkillsWithStreamingResponse.__init__|  s[    2MM
 5OO
 1KK
	 3MM
r<   c                @    t        | j                  j                        S r6   )r   r   r;   r8   s    r:   r;   z$SkillsWithStreamingResponse.versions  s    ,T\\-B-BCCr<   Nr   )r   r   r   r   r<   r:   rC   rC   {  s    
  D Dr<   rC   c                  &    e Zd ZddZedd       Zy)r   c                    || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        y r6   )r   r&   rm   r{   r   r   r   s     r:   r   z)AsyncSkillsWithStreamingResponse.__init__  s[    8MM
 ;OO
 7KK
	 9MM
r<   c                @    t        | j                  j                        S r6   )r   r   r;   r8   s    r:   r;   z)AsyncSkillsWithStreamingResponse.versions  s    1$,,2G2GHHr<   Nr   )r   r   r   r   r<   r:   r   r     s    
  I Ir<   r   )H
__future__r   typingr   r   r   r   	itertoolsr   httpx r
   r;   r   r   r   r   r   r   _filesr   _typesr   r   r   r   r   r   r   r   r   _utilsr   r   r   r   r    r!   _compatr"   	_resourcer#   r$   	_responser%   r&   
paginationr'   r(   
types.betar)   r*   _base_clientr+   r,   types.anthropic_beta_paramr-   types.beta.skill_list_responser.    types.beta.skill_create_responser/    types.beta.skill_delete_responser0   "types.beta.skill_retrieve_responser1   __all__r2   r3   r?   r   rC   r   r   r<   r:   <module>r      s    # 0 0   !  +
 
 
 w v ' ; Z : A A = @ D D H]
#M
_ M
`M
" M
`> >,C C,D D,I Ir<   