+
    ~jj                       ^ RI Ht ^ RIHt ^ RIHtHt ^ RIt^RI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Ht ^R	IHt ^R
IHtHt ^RI H!t!H"t" ^RI#H$t$ ^RI%H&t&H't' ^RI(H)t) ^RI*H+t+ ^RI,H-t- ^RI.H/t/ ^RI0H1t1 RR.t2 ! R R]4      t3 ! R R]4      t4 ! R R4      t5 ! R R4      t6 ! R R4      t7 ! R R4      t8R# )    )annotations)List)LiteraloverloadN)_legacy_response)completion_create_params)BodyOmitQueryHeadersNotGivenSequenceNotStromit	not_given)is_givenrequired_argsmaybe_transformstrip_not_givenasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)DEFAULT_TIMEOUT)StreamAsyncStream)make_request_options)
Completion)
ModelParam)MetadataParam)AnthropicBetaParamCompletionsAsyncCompletionsc                  h   ] tR t^t]R R l4       t]R R l4       t]R]R]R]R]R	]R
]R]RRRRRRR]	/R R ll4       t
]R]R]R]R	]R
]R]RRRRRRR]	/
R R ll4       t
]R]R]R]R	]R
]R]RRRRRRR]	/
R R ll4       t
]! . RO. RO4      R]R]R]R]R	]R
]R]RRRRRRR]	/R R ll4       t
RtR# )r#   c                   V ^8  d   QhRR/# )   returnCompletionsWithRawResponse )formats   "t/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/anthropic/resources/completions.py__annotate__Completions.__annotate__   s     0 0#= 0    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/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
)r)   selfs   &r,   with_raw_responseCompletions.with_raw_response   s     *$//r/   c                   V ^8  d   QhRR/# )r'   r(    CompletionsWithStreamingResponser*   )r+   s   "r,   r-   r.   (   s     6 6)I 6r/   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/anthropics/anthropic-sdk-python#with_streaming_response
)r7   r2   s   &r,   with_streaming_response#Completions.with_streaming_response'   s     055r/   metadatastop_sequencesstreamtemperaturetop_ktop_pbetasextra_headersNextra_query
extra_bodytimeoutc               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# r'   max_tokens_to_sampleintmodelr    promptstrr<   MetadataParam | Omitr=   SequenceNotStr[str] | Omitr>   zLiteral[False] | Omitr?   float | Omitr@   
int | OmitrA   rB   List[AnthropicBetaParam] | OmitrC   Headers | NonerD   Query | NonerE   Body | NonerF   'float | httpx.Timeout | None | NotGivenr(   r   r*   )r+   s   "r,   r-   r.   1        d d "d 	d
 d 'd 3d &d "d d d /d &d  "!d"  #d$ 9%d& 
'dr/   c                   R# a  [Legacy] Create a Text Completion.

        The Text Completions API is a legacy API.

        We recommend using the
        [Messages API](https://docs.claude.com/en/api/messages) going forward.

        Future models and features will not be compatible with Text Completions. See our
        [migration guide](https://docs.claude.com/en/api/migrating-from-text-completions-to-messages)
        for guidance in migrating from Text Completions to Messages.

        Args:
          max_tokens_to_sample: The maximum number of tokens to generate before stopping.

              Note that our models may stop _before_ reaching this maximum. This parameter
              only specifies the absolute maximum number of tokens to generate.

          model: The model that will complete your prompt.

See
              [models](https://docs.anthropic.com/en/docs/models-overview) for additional
              details and options.

          prompt: The prompt that you want Claude to complete.

              For proper response generation you will need to format your prompt using
              alternating `

Human:` and `

Assistant:` conversational turns. For example:

              ```
              "

Human: {userQuestion}

Assistant:"
              ```

              See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
              our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
              for more details.

          metadata: An object describing metadata about the request.

          stop_sequences: Sequences that will cause the model to stop generating.

              Our models stop on `"

Human:"`, and may include additional built-in stop
              sequences in the future. By providing the stop_sequences parameter, you may
              include additional strings that will cause the model to stop generating.

          stream: Whether to incrementally stream the response using server-sent events.

              See [streaming](https://docs.claude.com/en/api/streaming) for details.

          temperature: Amount of randomness injected into the response.

              Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
              for analytical / multiple choice, and closer to `1.0` for creative and
              generative tasks.

              Note that even with `temperature` of `0.0`, the results will not be fully
              deterministic.

          top_k: Only sample from the top K options for each subsequent token.

              Used to remove "long tail" low probability responses.
              [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).

              Recommended for advanced use cases only.

          top_p: Use nucleus sampling.

              In nucleus sampling, we compute the cumulative distribution over all the options
              for each subsequent token in decreasing probability order and cut it off once it
              reaches a particular probability specified by `top_p`.

              Recommended for advanced use cases only.

          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
        Nr*   r3   rI   rK   rL   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   s   &$$$$$$$$$$$$$$r,   createCompletions.create0       J 	r/   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# )r'   rI   rJ   rK   r    rL   rM   r>   Literal[True]r<   rN   r=   rO   r?   rP   r@   rQ   rA   rB   rR   rC   rS   rD   rT   rE   rU   rF   rV   r(   zStream[Completion]r*   )r+   s   "r,   r-   r.      s     d d "d 	d
 d d 'd 3d "d d d /d &d  "!d"  #d$ 9%d& 
'dr/   c                   R# a  [Legacy] Create a Text Completion.

        The Text Completions API is a legacy API.

        We recommend using the
        [Messages API](https://docs.claude.com/en/api/messages) going forward.

        Future models and features will not be compatible with Text Completions. See our
        [migration guide](https://docs.claude.com/en/api/migrating-from-text-completions-to-messages)
        for guidance in migrating from Text Completions to Messages.

        Args:
          max_tokens_to_sample: The maximum number of tokens to generate before stopping.

              Note that our models may stop _before_ reaching this maximum. This parameter
              only specifies the absolute maximum number of tokens to generate.

          model: The model that will complete your prompt.

See
              [models](https://docs.anthropic.com/en/docs/models-overview) for additional
              details and options.

          prompt: The prompt that you want Claude to complete.

              For proper response generation you will need to format your prompt using
              alternating `

Human:` and `

Assistant:` conversational turns. For example:

              ```
              "

Human: {userQuestion}

Assistant:"
              ```

              See [prompt validation](https://docs.claude.com/en/api/prompt-validation) and
              our guide to [prompt design](https://docs.claude.com/en/docs/intro-to-prompting)
              for more details.

          stream: Whether to incrementally stream the response using server-sent events.

              See [streaming](https://docs.claude.com/en/api/streaming) for details.

          metadata: An object describing metadata about the request.

          stop_sequences: Sequences that will cause the model to stop generating.

              Our models stop on `"

Human:"`, and may include additional built-in stop
              sequences in the future. By providing the stop_sequences parameter, you may
              include additional strings that will cause the model to stop generating.

          temperature: Amount of randomness injected into the response.

              Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
              for analytical / multiple choice, and closer to `1.0` for creative and
              generative tasks.

              Note that even with `temperature` of `0.0`, the results will not be fully
              deterministic.

          top_k: Only sample from the top K options for each subsequent token.

              Used to remove "long tail" low probability responses.
              [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).

              Recommended for advanced use cases only.

          top_p: Use nucleus sampling.

              In nucleus sampling, we compute the cumulative distribution over all the options
              for each subsequent token in decreasing probability order and cut it off once it
              reaches a particular probability specified by `top_p`.

              Recommended for advanced use cases only.

          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
        Nr*   r3   rI   rK   rL   r>   r<   r=   r?   r@   rA   rB   rC   rD   rE   rF   s   &$$$$$$$$$$$$$$r,   r[   r\      r]   r/   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# )r'   rI   rJ   rK   r    rL   rM   r>   boolr<   rN   r=   rO   r?   rP   r@   rQ   rA   rB   rR   rC   rS   rD   rT   rE   rU   rF   rV   r(   Completion | Stream[Completion]r*   )r+   s   "r,   r-   r.      s     d d "d 	d
 d d 'd 3d "d d d /d &d  "!d"  #d$ 9%d& 
)'dr/   c                   R# ra   r*   rb   s   &$$$$$$$$$$$$$$r,   r[   r\      r]   r/   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# )r'   rI   rJ   rK   r    rL   rM   r<   rN   r=   rO   r>   %Literal[False] | Literal[True] | Omitr?   rP   r@   rQ   rA   rB   rR   rC   rS   rD   rT   rE   rU   rF   rV   r(   re   r*   )r+   s   "r,   r-   r.   f  s     2
 2
 "2
 	2

 2
 '2
 32
 62
 "2
 2
 2
 /2
 &2
  "!2
"  #2
$ 9%2
& 
)'2
r/   c               	   \        V4      '       g"   V P                  P                  \        8X  d   R p/ \	        R\        V
4      '       d   RP                  R V
 4       4      M\        /4      CT;'       g    / CpT P                  R\        RVRVRVRVR	VR
VRVRVRV	/	V'       d   \        P                  M\        P                  4      \        WWR7      \        T;'       g    R\        \        ,          R7      # )X  anthropic-beta,c              3  8   "   T F  p\        V4      x  K  	  R # 5iNrM   .0es   & r,   	<genexpr>%Completions.create.<locals>.<genexpr>}       9P%Q#a&&%   /v1/completerI   rK   rL   r<   r=   r>   r?   r@   rA   rC   rD   rE   rF   Fbodyoptionscast_tor>   
stream_cls)r   _clientrF   r   r   joinr   _postr   r   CompletionCreateParamsStreaming"CompletionCreateParamsNonStreamingr   r   r   rZ   s   &$$$$$$$$$$$$$$r,   r[   r\   e  s   *   T\\%9%9_%LG
/T\]bTcTc9P%9P1Pirst
""
 zz *,@Uf$nf!;UU
  )HH-PP  )+Q[ ??Uj)/  
 	
r/   r*   rI   rK   rL   rI   rK   rL   r>   __name__
__module____qualname____firstlineno__r   r4   r:   r   r   r   r[   r   __static_attributes__r*   r/   r,   r#   r#      sR   0 0 6 6 d *.d 6:d )-d %)d !d #d 26d )-d  %)!d" #'#d$ <E%d dL d *.d 6:d %)d !d #d 26d )-d  %)!d" #'#d$ <E%d dL d *.d 6:d %)d !d #d 26d )-d  %)!d" #'#d$ <E%d dL >@uv2
 *.2
 6:2
 9=2
 %)2
 !2
 #2
 262
 )-2
  %)!2
" #'#2
$ <E%2
 w2
r/   c                  h   ] 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RRRR]	/R R ll4       t
]R]R]R	]R
]R]R]RRRRRRR]	/
R R ll4       t
]R]R]R	]R
]R]R]RRRRRRR]	/
R R ll4       t
]! . RO. RO4      R]R]R]R	]R
]R]R]RRRRRRR]	/R R ll4       t
RtR# )r$   i  c                   V ^8  d   QhRR/# )r'   r(   AsyncCompletionsWithRawResponser*   )r+   s   "r,   r-   AsyncCompletions.__annotate__  s     5 5#B 5r/   c                    \        V 4      # r1   )r   r2   s   &r,   r4   "AsyncCompletions.with_raw_response  s     /t44r/   c                   V ^8  d   QhRR/# )r'   r(   %AsyncCompletionsWithStreamingResponser*   )r+   s   "r,   r-   r     s     ; ;)N ;r/   c                    \        V 4      # r9   )r   r2   s   &r,   r:   (AsyncCompletions.with_streaming_response  s     5T::r/   r<   r=   r>   r?   r@   rA   rB   rC   NrD   rE   rF   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# rH   r*   )r+   s   "r,   r-   r     rW   r/   c                  "   R# 5irY   r*   rZ   s   &$$$$$$$$$$$$$$r,   r[   AsyncCompletions.create       J 	   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# )r'   rI   rJ   rK   r    rL   rM   r>   r_   r<   rN   r=   rO   r?   rP   r@   rQ   rA   rB   rR   rC   rS   rD   rT   rE   rU   rF   rV   r(   zAsyncStream[Completion]r*   )r+   s   "r,   r-   r     s     d d "d 	d
 d d 'd 3d "d d d /d &d  "!d"  #d$ 9%d& 
!'dr/   c                  "   R# 5ira   r*   rb   s   &$$$$$$$$$$$$$$r,   r[   r     r   r   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# )r'   rI   rJ   rK   r    rL   rM   r>   rd   r<   rN   r=   rO   r?   rP   r@   rQ   rA   rB   rR   rC   rS   rD   rT   rE   rU   rF   rV   r(   $Completion | AsyncStream[Completion]r*   )r+   s   "r,   r-   r   ~  s     d d "d 	d
 d d 'd 3d "d d d /d &d  "!d"  #d$ 9%d& 
.'dr/   c                  "   R# 5ira   r*   rb   s   &$$$$$$$$$$$$$$r,   r[   r   }  r   r   c               T    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRR/# )r'   rI   rJ   rK   r    rL   rM   r<   rN   r=   rO   r>   rh   r?   rP   r@   rQ   rA   rB   rR   rC   rS   rD   rT   rE   rU   rF   rV   r(   r   r*   )r+   s   "r,   r-   r     s     2
 2
 "2
 	2

 2
 '2
 32
 62
 "2
 2
 2
 /2
 &2
  "!2
"  #2
$ 9%2
& 
.'2
r/   c               	(  "   \        V4      '       g"   V P                  P                  \        8X  d   R p/ \	        R\        V
4      '       d   RP                  R V
 4       4      M\        /4      CT;'       g    / CpT P                  R\        RVRVRVRVR	VR
VRVRVRV	/	V'       d   \        P                  M\        P                  4      G Rj  xL
 \        WWR7      \        T;'       g    R\        \        ,          R7      G Rj  xL
 #  L= L5i)rj   rk   rl   c              3  8   "   T F  p\        V4      x  K  	  R # 5irn   ro   rp   s   & r,   rs   *AsyncCompletions.create.<locals>.<genexpr>  ru   rv   rw   rI   rK   rL   r<   r=   r>   r?   r@   rA   Nrx   Fry   )r   r~   rF   r   r   r   r   r   r   r   r   r   r   r   r   rZ   s   &$$$$$$$$$$$$$$r,   r[   r     s    *   T\\%9%9_%LG
/T\]bTcTc9P%9P1Pirst
""
 ZZ,*,@Uf$nf!;UU
  )HH-PP   )+Q[ ??U":./   
 
 	

s+   A6D9ADD
8D	D
DDr*   r   r   r   r*   r/   r,   r$   r$     sR   5 5 ; ; d *.d 6:d )-d %)d !d #d 26d )-d  %)!d" #'#d$ <E%d dL d *.d 6:d %)d !d #d 26d )-d  %)!d" #'#d$ <E%d dL d *.d 6:d %)d !d #d 26d )-d  %)!d" #'#d$ <E%d dL >@uv2
 *.2
 6:2
 9=2
 %)2
 !2
 #2
 262
 )-2
  %)!2
" #'#2
$ <E%2
 w2
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'   completionsr#   r(   Noner*   )r+   s   "r,   r-   'CompletionsWithRawResponse.__annotate__       
 
K 
D 
r/   c                	\    Wn         \        P                  ! VP                  4      V n        R # rn   )_completionsr   to_raw_response_wrapperr[   r3   r   s   &&r,   __init__#CompletionsWithRawResponse.__init__  s#    '&>>
r/   r   r[   Nr   r   r   r   r   r   r*   r/   r,   r)   r)         
 
r/   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*   )r+   s   "r,   r-   ,AsyncCompletionsWithRawResponse.__annotate__$       
 
$4 
 
r/   c                	\    Wn         \        P                  ! VP                  4      V n        R # rn   )r   r   async_to_raw_response_wrapperr[   r   s   &&r,   r   (AsyncCompletionsWithRawResponse.__init__$  s#    '&DD
r/   r   Nr   r*   r/   r,   r   r   #  r   r/   r   c                  "    ] tR tRtR R ltRtR# )r7   i,  c                    V ^8  d   QhRRRR/# r   r*   )r+   s   "r,   r-   -CompletionsWithStreamingResponse.__annotate__-  r   r/   c                	F    Wn         \        VP                  4      V n        R # rn   )r   r   r[   r   s   &&r,   r   )CompletionsWithStreamingResponse.__init__-  s    '2
r/   r   Nr   r*   r/   r,   r7   r7   ,  r   r/   r7   c                  "    ] tR tRtR R ltRtR# )r   i5  c                    V ^8  d   QhRRRR/# r   r*   )r+   s   "r,   r-   2AsyncCompletionsWithStreamingResponse.__annotate__6  r   r/   c                	F    Wn         \        VP                  4      V n        R # rn   )r   r   r[   r   s   &&r,   r   .AsyncCompletionsWithStreamingResponse.__init__6  s    '8
r/   r   Nr   r*   r/   r,   r   r   5  r   r/   r   )9
__future__r   typingr   typing_extensionsr   r   httpx r   typesr   _typesr	   r
   r   r   r   r   r   r   _utilsr   r   r   r   r   _compatr   	_resourcer   r   	_responser   r   
_constantsr   
_streamingr   r   _base_clientr   types.completionr   types.model_paramr    types.metadata_paramr!   types.anthropic_beta_paramr"   __all__r#   r$   r)   r   r7   r   r*   r/   r,   <module>r      s    #  /   , Z Z Z e e % 9 X ( , / ) * 0 ;,
-|
/ |
~|
' |
~
 

 

 

 
r/   