
    ̺ia                       S SK Jr  S SKJrJrJrJr  S SKJr  S SK	r	SSK
Jr  SSKJrJrJrJrJrJr  SS	KJrJrJrJrJrJrJrJrJr  SS
KJrJrJ r J!r!J"r"J#r#  SSK$J%r%  SSK&J'r'J(r(  SSK)J*r*J+r+  SSK,J-r-J.r.  SSK/J0r0J1r1  SSK2J3r3J4r4  SSK5J6r6  SSK7J8r8  SSK9J:r:  SSK;J<r<  SSK=J>r>  SS/r? " S S\'5      r@ " S S\(5      rA " S S5      rB " S S5      rC " S S5      rD " S  S!5      rEg)"    )annotations)ListMappingOptionalcast)chainN   )_legacy_response   )VersionsAsyncVersionsVersionsWithRawResponseAsyncVersionsWithRawResponseVersionsWithStreamingResponse"AsyncVersionsWithStreamingResponse)	BodyOmitQueryHeadersNotGiven	FileTypesSequenceNotStromit	not_given)is_givenextract_filesmaybe_transformstrip_not_givendeepcopy_minimal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            	      6   \ rS rSr\SS j5       r\SS j5       r\SS j5       r\\\SSS\	S.               SS jjr
\SSS\	S.             SS	 jjr\\\\SSS\	S
.                 SS jjr\SSS\	S.             SS jjrSrg)r1   5   c                ,    [        U R                  5      $ N)r   _clientselfs    e/var/www/piano.thomer.com/venv/lib/python3.13/site-packages/anthropic/resources/beta/skills/skills.pyversionsSkills.versions6   s    %%    c                    [        U 5      $ 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/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
)SkillsWithRawResponser8   s    r:   with_raw_responseSkills.with_raw_response:   s     %T**r=   c                    [        U 5      $ 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_responseSkills.with_streaming_responseD   s     +400r=   Ndisplay_titlefilesbetasextra_headersextra_query
extra_bodytimeoutc                  0 [        S[        U5      (       a#  SR                  [        S U 5       S/5      5      O[        05      EU=(       d    0 EnSS0U=(       d    0 En[        UUS.5      n[        [        [        [        [        4   U5      SS//S9n	S	US
'   U R                  S[        U[        R                  5      U	[        XEXgS9[         S9$ )  
Create Skill

Args:
  display_title: Display title for the skill.

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

  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.

  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  8   #    U  H  n[        U5      v   M     g 7fr6   str.0es     r:   	<genexpr> Skills.create.<locals>.<genexpr>u        5Lec!ffe   skills-2025-10-02rI   rJ   rJ   <array>pathsmultipart/form-dataContent-Type/v1/skills?beta=truerL   rM   rN   rO   bodyrJ   optionscast_to)r   r   joinr   r   r   r   r   r   rV   object_postr   r)   SkillCreateParamsr+   r.   
r9   rI   rJ   rK   rL   rM   rN   rO   rh   extracted_filess
             r:   createSkills.createM   s    J	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!.
 (WS&[-A4(HRY[dQePfg )>n%zz" ':'L'LM!(+Q[ (  
 	
r=   rK   rL   rM   rN   rO   c          
     0   U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  SU S3[        X4XVS9[        S	9$ )
  
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 rR   rS   c              3  8   #    U  H  n[        U5      v   M     g 7fr6   rU   rW   s     r:   rZ   "Skills.retrieve.<locals>.<genexpr>   r\   r]   r^   /v1/skills/
?beta=truerf   ri   rj   	
ValueErrorr   r   rk   r   r   _getr+   r0   r9   skill_idrK   rL   rM   rN   rO   s          r:   retrieveSkills.retrieve   s    < VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXyy(:.(+Q[ *  
 	
r=   limitpagesourcerK   rL   rM   rN   rO   c               R   0 [        S[        U5      (       a#  SR                  [        S U 5       S/5      5      O[        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  S[        [           [        UUUU[        UUUS.[        R                  5      S9[        S9$ )	<  
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
rR   rS   c              3  8   #    U  H  n[        U5      v   M     g 7fr6   rU   rW   s     r:   rZ   Skills.list.<locals>.<genexpr>   r\   r]   r^   re   r   r   r   rL   rM   rN   rO   queryr   ri   model)r   r   rk   r   r   _get_api_listr&   r-   r+   r   r(   SkillListParams	r9   r   r   r   rK   rL   rM   rN   rO   s	            r:   listSkills.list   s    X	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!" 12(+'%%!& $"(
 &55 $# " 
 	
r=   c          
     0   U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  SU S3[        X4XVS9[        S	9$ )
  
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
rv   rR   rS   c              3  8   #    U  H  n[        U5      v   M     g 7fr6   rU   rW   s     r:   rZ    Skills.delete.<locals>.<genexpr>3  r\   r]   r^   ry   rz   rf   r{   	r}   r   r   rk   r   r   _deleter+   r/   r   s          r:   deleteSkills.delete  s    < VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX||(:.(+Q[ (  
 	
r=    )returnr   )r   r@   )r   rE   rI   Optional[str] | OmitrJ   z*Optional[SequenceNotStr[FileTypes]] | OmitrK   List[AnthropicBetaParam] | OmitrL   Headers | NonerM   Query | NonerN   Body | NonerO   'float | httpx.Timeout | None | NotGivenr   r.   r   rV   rK   r   rL   r   rM   r   rN   r   rO   r   r   r0   )r   
int | Omitr   r   r   r   rK   r   rL   r   rM   r   rN   r   rO   r   r   z!SyncPageCursor[SkillListResponse]r   rV   rK   r   rL   r   rM   r   rN   r   rO   r   r   r/   __name__
__module____qualname____firstlineno__r!   r;   rA   rF   r   r   rq   r   r   r   __static_attributes__r   r=   r:   r1   r1   5   s   & & + + 1 1 /3<@15 )-$("&;DC
 ,C
 :	C

 /C
 &C
 "C
  C
 9C
 
C
R 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
 1
r=   c            	      6   \ rS rSr\SS j5       r\SS j5       r\SS j5       r\\\SSS\	S.               SS jjr
\SSS\	S.             SS	 jjr\\\\SSS\	S
.                 SS jjr\SSS\	S.             SS jjrSrg)r2   iD  c                ,    [        U R                  5      $ r6   )r   r7   r8   s    r:   r;   AsyncSkills.versionsE  s    T\\**r=   c                    [        U 5      $ r?   )AsyncSkillsWithRawResponser8   s    r:   rA   AsyncSkills.with_raw_responseI  s     *$//r=   c                    [        U 5      $ rD   ) AsyncSkillsWithStreamingResponser8   s    r:   rF   #AsyncSkills.with_streaming_responseS  s     055r=   NrH   c                 #    0 [        S[        U5      (       a#  SR                  [        S U 5       S/5      5      O[        05      EU=(       d    0 EnSS0U=(       d    0 En[        UUS.5      n[        [        [        [        [        4   U5      SS//S9n	S	US
'   U R                  S[        U[        R                  5      I Sh  vN U	[        XEXgS9[         S9I Sh  vN $  N N7f)rQ   rR   rS   c              3  8   #    U  H  n[        U5      v   M     g 7fr6   rU   rW   s     r:   rZ   %AsyncSkills.create.<locals>.<genexpr>  r\   r]   r^   r_   rJ   r`   ra   rc   rd   re   Nrf   rg   )r   r   rk   r   r   r   r   r   r   rV   rl   rm   r    r)   rn   r+   r.   ro   s
             r:   rq   AsyncSkills.create\  s    J	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!.
 (WS&[-A4(HRY[dQePfg )>n%ZZ",T3F3X3XYY!(+Q[ (   
 
 	
Y
s$   CC)C%
C) C'!C)'C)rs   c          
     L  #    U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  SU S3[        X4XVS9[        S	9I S
h  vN $  N7f)ru   rv   rR   rS   c              3  8   #    U  H  n[        U5      v   M     g 7fr6   rU   rW   s     r:   rZ   'AsyncSkills.retrieve.<locals>.<genexpr>  r\   r]   r^   ry   rz   rf   r{   Nr|   r   s          r:   r   AsyncSkills.retrieve  s     < VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVXYY(:.(+Q[ *  
 
 	
 
   BB$B"B$r   c               R   0 [        S[        U5      (       a#  SR                  [        S U 5       S/5      5      O[        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  S[        [           [        UUUU[        UUUS.[        R                  5      S9[        S9$ )	r   rR   rS   c              3  8   #    U  H  n[        U5      v   M     g 7fr6   rU   rW   s     r:   rZ   #AsyncSkills.list.<locals>.<genexpr>  r\   r]   r^   re   r   r   r   )r   r   rk   r   r   r   r'   r-   r+   r   r(   r   r   s	            r:   r   AsyncSkills.list  s    X	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX!!" !23(+'%%!& $"(
 &55 $# " 
 	
r=   c          
     L  #    U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  SU S3[        X4XVS9[        S	9I S
h  vN $  N7f)r   rv   rR   rS   c              3  8   #    U  H  n[        U5      v   M     g 7fr6   rU   rW   s     r:   rZ   %AsyncSkills.delete.<locals>.<genexpr>B  r\   r]   r^   ry   rz   rf   r{   Nr   r   s          r:   r   AsyncSkills.delete  s     < VW_Vbcdd	
$ '*hhu5Le5LObNc/d&e"	
 "	
 *+>X=CVTVX\\(:.(+Q[ ( " 
 
 	
 
r   r   )r   r   )r   r   )r   r   r   r   )r   r   r   r   r   r   rK   r   rL   r   rM   r   rN   r   rO   r   r   zEAsyncPaginator[SkillListResponse, AsyncPageCursor[SkillListResponse]]r   r   r   r=   r:   r2   r2   D  s   + + 0 0 6 6 /3<@15 )-$("&;DC
 ,C
 :	C

 /C
 &C
 "C
  C
 9C
 
C
R 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
 1
r=   c                  2    \ rS rSrSS jr\SS j5       rSrg)r@   iS  c                8   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        g r6   )_skillsr
   to_raw_response_wrapperrq   r   r   r   r9   skillss     r:   __init__SkillsWithRawResponse.__init__T  sq    &>>MM
 )@@OO
 %<<KK
	 '>>MM
r=   c                @    [        U R                  R                  5      $ r6   )r   r   r;   r8   s    r:   r;   SkillsWithRawResponse.versionsd  s    &t||'<'<==r=   r   rq   r   r   r   Nr   r1   r   None)r   r   r   r   r   r   r   r!   r;   r   r   r=   r:   r@   r@   S  s    
  > >r=   r@   c                  2    \ rS rSrSS jr\SS j5       rSrg)r   ii  c                8   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        g r6   )r   r
   async_to_raw_response_wrapperrq   r   r   r   r   s     r:   r   #AsyncSkillsWithRawResponse.__init__j  sq    &DDMM
 )FFOO
 %BBKK
	 'DDMM
r=   c                @    [        U R                  R                  5      $ r6   )r   r   r;   r8   s    r:   r;   #AsyncSkillsWithRawResponse.versionsz  s    +DLL,A,ABBr=   r   Nr   r2   r   r   )r   r   r   r   r=   r:   r   r   i  s    
  C Cr=   r   c                  2    \ rS rSrSS jr\SS j5       rSrg)rE   i  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g r6   )r   r$   rq   r   r   r   r   s     r:   r   $SkillsWithStreamingResponse.__init__  sY    2MM
 5OO
 1KK
	 3MM
r=   c                @    [        U R                  R                  5      $ r6   )r   r   r;   r8   s    r:   r;   $SkillsWithStreamingResponse.versions  s    ,T\\-B-BCCr=   r   Nr   )r   r   r   r   r=   r:   rE   rE     s    
  D Dr=   rE   c                  2    \ rS rSrSS jr\SS j5       rSrg)r   i  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g r6   )r   r%   rq   r   r   r   r   s     r:   r   )AsyncSkillsWithStreamingResponse.__init__  sY    8MM
 ;OO
 7KK
	 9MM
r=   c                @    [        U R                  R                  5      $ r6   )r   r   r;   r8   s    r:   r;   )AsyncSkillsWithStreamingResponse.versions  s    1$,,2G2GHHr=   r   Nr   )r   r   r   r   r=   r:   r   r     s    
  I Ir=   r   )F
__future__r   typingr   r   r   r   	itertoolsr   httpx r
   r;   r   r   r   r   r   r   _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_responser/   "types.beta.skill_retrieve_responser0   __all__r1   r2   r@   r   rE   r   r   r=   r:   <module>r      s    # 0 0   ! 
 
 
  ( ; Z : A A = @ D D H]
#L
_ L
^L
" L
^> >,C C,D D,I Ir=   