+
    ~j1r                       ^ RI Ht ^ RIHt ^ RIt^RIHt ^RIHtH	t	H
t
HtHtHtHt ^RI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Ht ^RIHt ^RI H!t!H"t" ^RI#H$t$H%t% ^RI&H't'H(t( ^RI)H*t* ^RI+H,t, ^RI-H.t. RR.t/ ! R R]4      t0 ! R R]4      t1 ! R R4      t2 ! R R4      t3 ! R R4      t4 ! R R4      t5R# )    )annotations)IterableN)_legacy_response)BodyOmitQueryHeadersNotGivenomit	not_given)path_templatemaybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncPage	AsyncPage)AnthropicError)AsyncPaginatormake_request_options)batch_list_paramsbatch_create_params)JSONLDecoderAsyncJSONLDecoder)MessageBatch)DeletedMessageBatch)MessageBatchIndividualResponseBatchesAsyncBatchesc                     ] tR t^t]R R l4       t]R R l4       tRRRRRRR	]/R
 R lltRRRRRRR	]/R R llt	R]
R]
R]
RRRRRRR	]/R R lltRRRRRRR	]/R R lltRRRRRRR	]/R R lltRRRRRRR	]/R R lltRtR# )r!   c                   V ^8  d   QhRR/# )   returnBatchesWithRawResponse )formats   "y/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/anthropic/resources/messages/batches.py__annotate__Batches.__annotate__   s     , ,#9 ,    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Batches.with_raw_response   s     &d++r-   c                   V ^8  d   QhRR/# )r%   r&   BatchesWithStreamingResponser(   )r)   s   "r*   r+   r,   '   s     2 2)E 2r-   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
)r5   r0   s   &r*   with_streaming_responseBatches.with_streaming_response&   s     ,D11r-   extra_headersNextra_query
extra_bodytimeoutc               0    V ^8  d   QhRRRRRRRRR	R
RR/# r%   requestsz%Iterable[batch_create_params.Request]r:   Headers | Noner;   Query | Noner<   Body | Noner=   'float | httpx.Timeout | None | NotGivenr&   r   r(   )r)   s   "r*   r+   r,   /   H     (
 (
 8(
 &(
 "(
  (
 9(
 
(
r-   c               ~    V P                  R\        RV/\        P                  4      \	        W#WER7      \
        R7      # )  
Send a batch of Message creation requests.

The Message Batches API can be used to process multiple Messages API requests at
once. Once a Message Batch is created, it begins processing immediately. Batches
can take up to 24 hours to complete.

Learn more about the Message Batches API in our
[user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)

Args:
  requests: List of requests for prompt completion. Each is an individual request to create
      a Message.

  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
/v1/messages/batchesr@   r:   r;   r<   r=   bodyoptionscast_to)_postr   r   BatchCreateParamsr   r   r1   r@   r:   r;   r<   r=   s   &$$$$$r*   createBatches.create/   sG    B zz" *h!79L9^9^_(+Q[ !  
 	
r-   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# r%   message_batch_idstrr:   rA   r;   rB   r<   rC   r=   rD   r&   r   r(   )r)   s   "r*   r+   r,   Y   F     '
 '
'
 &'
 "'
  '
 9'
 
'
r-   c          
         V'       g   \        RV: 24      hV P                  \        RVR7      \        W#WER7      \        R7      # )b  This endpoint is idempotent and can be used to poll for Message Batch
completion.

To access the results of a Message Batch, make a request to the
`results_url` field in the response.

Learn more about the Message Batches API in our
[user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)

Args:
  message_batch_id: ID of the Message Batch.

  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
?Expected a non-empty value for `message_batch_id` but received '/v1/messages/batches/{message_batch_id}rU   rI   rL   rM   
ValueError_getr   r   r   r1   rU   r:   r;   r<   r=   s   &&$$$$r*   retrieveBatches.retrieveY   sQ    >  ^_o^rsttyyCVfg(+Q[ !  
 	
r-   after_id	before_idlimitc               8    V ^8  d   QhRRRRRRRRRR	R
RRRRR/# )r%   rd   
str | Omitre   rf   
int | Omitr:   rA   r;   rB   r<   rC   r=   rD   r&   zSyncPage[MessageBatch]r(   )r)   s   "r*   r+   r,      s\     :
 :
 :
 	:

 :
 &:
 ":
  :
 9:
 
 :
r-   c                   V P                  R\        \        ,          \        VVVV\	        RVRVRV/\
        P                  4      R7      \        R7      # ab  List all Message Batches within a Workspace.

Most recently created batches are
returned first.

Learn more about the Message Batches API in our
[user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)

Args:
  after_id: ID of the object to use as a cursor for pagination. When provided, returns the
      page of results immediately after this object.

  before_id: ID of the object to use as a cursor for pagination. When provided, returns the
      page of results immediately before this object.

  limit: Number of items to return per page.

      Defaults to `20`. Ranges from `1` to `1000`.

  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
rH   rd   re   rf   )r:   r;   r<   r=   query)pagerL   model)_get_api_listr   r   r   r   r   BatchListParamsr1   rd   re   rf   r:   r;   r<   r=   s   &$$$$$$$r*   listBatches.list   sh    P !!",'(+'%%"H#Y
 &55 # " 
 	
r-   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# r%   rU   rV   r:   rA   r;   rB   r<   rC   r=   rD   r&   r   r(   )r)   s   "r*   r+   r,      F     '
 '
'
 &'
 "'
  '
 9'
 
'
r-   c          
         V'       g   \        RV: 24      hV P                  \        RVR7      \        W#WER7      \        R7      # )R  
Delete a Message Batch.

Message Batches can only be deleted once they've finished processing. If you'd
like to delete an in-progress batch, you must first cancel it.

Learn more about the Message Batches API in our
[user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)

Args:
  message_batch_id: ID of the Message Batch.

  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
rZ   r[   r\   rI   r]   r_   _deleter   r   r   ra   s   &&$$$$r*   deleteBatches.delete   sQ    >  ^_o^rstt||CVfg(+Q[ (  
 	
r-   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# rT   r(   )r)   s   "r*   r+   r,      F     -
 -
-
 &-
 "-
  -
 9-
 
-
r-   c          
         V'       g   \        RV: 24      hV P                  \        RVR7      \        W#WER7      \        R7      # )  Batches may be canceled any time before processing ends.

Once cancellation is
initiated, the batch enters a `canceling` state, at which time the system may
complete any in-progress, non-interruptible requests before finalizing
cancellation.

The number of canceled requests is specified in `request_counts`. To determine
which requests were canceled, check the individual results within the batch.
Note that cancellation may not result in any canceled requests if they were
non-interruptible.

Learn more about the Message Batches API in our
[user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)

Args:
  message_batch_id: ID of the Message Batch.

  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
rZ   ./v1/messages/batches/{message_batch_id}/cancelr\   rI   r]   r_   rN   r   r   r   ra   s   &&$$$$r*   cancelBatches.cancel   sR    J  ^_o^rsttzzJ]mn(+Q[ !  
 	
r-   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# )r%   rU   rV   r:   rA   r;   rB   r<   rC   r=   rD   r&   z,JSONLDecoder[MessageBatchIndividualResponse]r(   )r)   s   "r*   r+   r,     sF     1
 1
1
 &1
 "1
  1
 91
 
61
r-   c          
     P   V'       g   \        RV: 24      hV P                  VR7      pVP                  '       g   \        RVP                   24      hRR/T;'       g    / CpV P                  \        VP                  VR7      \        W#WER7      \        \        ,          RR7      # )	  
Streams the results of a Message Batch as a `.jsonl` file.

Each line in the file is a JSON object containing the result of a single request
in the Message Batch. Results are not guaranteed to be in the same order as
requests. Use the `custom_id` field to match results to requests.

Learn more about the Message Batches API in our
[user guide](https://docs.claude.com/en/docs/build-with-claude/batch-processing)

Args:
  message_batch_id: ID of the Message Batch.

  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
rZ   r\   BNo `results_url` for the given batch; Has it finished processing? Acceptapplication/binaryrI   TrL   rM   stream)
r_   rb   results_urlr   processing_statusr`   r   r   r   r    r1   rU   r:   r;   r<   r=   batchs   &&$$$$ r*   resultsBatches.results  s    @  ^_o^rstt/?@    TUZUlUlTmn  "#7QM<O<ORQyy%++>NO(+Q[ !!?@  
 	
r-   r(   __name__
__module____qualname____firstlineno__r   r2   r8   r   rQ   rb   r   rr   r{   r   r   __static_attributes__r(   r-   r*   r!   r!      sd   , , 2 2(
 )-(
 %)(
 #'(
 <E(
T'
 )-'
 %)'
 #''
 <E'
R:
  $:
 !%	:

 !:
 )-:
 %):
 #':
 <E:
x'
 )-'
 %)'
 #''
 <E'
R-
 )--
 %)-
 #'-
 <E-
^1
 )-1
 %)1
 #'1
 <E1
 1
r-   c                     ] tR tRt]R R l4       t]R R l4       tRRRRR	RR
]/R R lltRRRRR	RR
]/R R llt	R]
R]
R]
RRRRR	RR
]/R R lltRRRRR	RR
]/R R lltRRRRR	RR
]/R R lltRRRRR	RR
]/R R lltRtR# )r"   iJ  c                   V ^8  d   QhRR/# )r%   r&   AsyncBatchesWithRawResponser(   )r)   s   "r*   r+   AsyncBatches.__annotate__L  s     1 1#> 1r-   c                    \        V 4      # r/   )r   r0   s   &r*   r2   AsyncBatches.with_raw_responseK  s     +400r-   c                   V ^8  d   QhRR/# )r%   r&   !AsyncBatchesWithStreamingResponser(   )r)   s   "r*   r+   r   V  s     7 7)J 7r-   c                    \        V 4      # r7   )r   r0   s   &r*   r8   $AsyncBatches.with_streaming_responseU  s     166r-   r:   Nr;   r<   r=   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# r?   r(   )r)   s   "r*   r+   r   ^  rE   r-   c                  "   T P                  R\        RV/\        P                  4      G Rj  xL
 \	        W#WER7      \
        R7      G Rj  xL
 #  L" L5i)rG   rH   r@   NrI   rJ   )rN   r   r   rO   r   r   rP   s   &$$$$$r*   rQ   AsyncBatches.create^  sZ     B ZZ",j(-CEXEjEjkk(+Q[ !   
 
 	
k
s!   ,AA
AAAAc               0    V ^8  d   QhRRRRRRRRR	R
RR/# rT   r(   )r)   s   "r*   r+   r     rW   r-   c          
        "   V'       g   \        RV: 24      hV P                  \        RVR7      \        W#WER7      \        R7      G Rj  xL
 #  L5i)rY   rZ   r[   r\   rI   r]   Nr^   ra   s   &&$$$$r*   rb   AsyncBatches.retrieve  s^     >  ^_o^rsttYYCVfg(+Q[ !  
 
 	
 
   A	AAArd   re   rf   c               8    V ^8  d   QhRRRRRRRRRR	R
RRRRR/# )r%   rd   rh   re   rf   ri   r:   rA   r;   rB   r<   rC   r=   rD   r&   z5AsyncPaginator[MessageBatch, AsyncPage[MessageBatch]]r(   )r)   s   "r*   r+   r     s\     :
 :
 :
 	:

 :
 &:
 ":
  :
 9:
 
?:
r-   c                   V P                  R\        \        ,          \        VVVV\	        RVRVRV/\
        P                  4      R7      \        R7      # rk   )ro   r   r   r   r   r   rp   rq   s   &$$$$$$$r*   rr   AsyncBatches.list  sh    P !!"<((+'%%"H#Y
 &55 # " 
 	
r-   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# ru   r(   )r)   s   "r*   r+   r     rv   r-   c          
        "   V'       g   \        RV: 24      hV P                  \        RVR7      \        W#WER7      \        R7      G Rj  xL
 #  L5i)rx   rZ   r[   r\   rI   r]   Nry   ra   s   &&$$$$r*   r{   AsyncBatches.delete  s^     >  ^_o^rstt\\CVfg(+Q[ ( " 
 
 	
 
r   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# rT   r(   )r)   s   "r*   r+   r     r~   r-   c          
        "   V'       g   \        RV: 24      hV P                  \        RVR7      \        W#WER7      \        R7      G Rj  xL
 #  L5i)r   rZ   r   r\   rI   r]   Nr   ra   s   &&$$$$r*   r   AsyncBatches.cancel  s_     J  ^_o^rsttZZJ]mn(+Q[ !   
 
 	
 
r   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# )r%   rU   rV   r:   rA   r;   rB   r<   rC   r=   rD   r&   z1AsyncJSONLDecoder[MessageBatchIndividualResponse]r(   )r)   s   "r*   r+   r   E  sF     1
 1
1
 &1
 "1
  1
 91
 
;1
r-   c          
       "   V'       g   \        RV: 24      hV P                  VR7      G Rj  xL
 pVP                  '       g   \        RVP                   24      hRR/T;'       g    / CpV P                  \        VP                  VR7      \        W#WER7      \        \        ,          RR	7      G Rj  xL
 #  L L5i)
r   rZ   r\   Nr   r   r   rI   Tr   )
r_   rb   r   r   r   r`   r   r   r   r    r   s   &&$$$$ r*   r   AsyncBatches.resultsE  s     @  ^_o^rsttmm5EmFF    TUZUlUlTmn  "#7QM<O<ORQYY%++>NO(+Q[ &&DE  
 
 	
 G
s.   -B>B:B>#B>*AB>5B<6B><B>r(   r   r(   r-   r*   r"   r"   J  sd   1 1 7 7(
 )-(
 %)(
 #'(
 <E(
T'
 )-'
 %)'
 #''
 <E'
R:
  $:
 !%	:

 !:
 )-:
 %):
 #':
 <E:
x'
 )-'
 %)'
 #''
 <E'
R-
 )--
 %)-
 #'-
 <E-
^1
 )-1
 %)1
 #'1
 <E1
 1
r-   c                  "    ] tR tRtR R ltRtR# )r'   iy  c                    V ^8  d   QhRRRR/# r%   batchesr!   r&   Noner(   )r)   s   "r*   r+   #BatchesWithRawResponse.__annotate__z       
 
 
D 
r-   c                	   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP
                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        R # N)_batchesr   to_raw_response_wrapperrQ   rb   rr   r{   r   r1   r   s   &&r*   __init__BatchesWithRawResponse.__init__z  s    &>>NN
 )@@
 %<<LL
	 '>>NN
 '>>NN
r-   r   r   rQ   r{   rr   rb   Nr   r   r   r   r   r   r(   r-   r*   r'   r'   y      
 
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+   (AsyncBatchesWithRawResponse.__annotate__       
 
 
 
r-   c                	   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP
                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        R # r   )r   r   async_to_raw_response_wrapperrQ   rb   rr   r{   r   r   s   &&r*   r   $AsyncBatchesWithRawResponse.__init__  s    &DDNN
 )FF
 %BBLL
	 'DDNN
 'DDNN
r-   r   Nr   r(   r-   r*   r   r     r   r-   r   c                  "    ] tR tRtR R ltRtR# )r5   i  c                    V ^8  d   QhRRRR/# r   r(   )r)   s   "r*   r+   )BatchesWithStreamingResponse.__annotate__  r   r-   c                	   Wn         \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP
                  4      V n        \        VP                  4      V n        R # r   )r   r   rQ   rb   rr   r{   r   r   s   &&r*   r   %BatchesWithStreamingResponse.__init__  sp    2NN
 5
 1LL
	 3NN
 3NN
r-   r   Nr   r(   r-   r*   r5   r5     r   r-   r5   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)   s   "r*   r+   .AsyncBatchesWithStreamingResponse.__annotate__  r   r-   c                	   Wn         \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP
                  4      V n        \        VP                  4      V n        R # r   )r   r   rQ   rb   rr   r{   r   r   s   &&r*   r   *AsyncBatchesWithStreamingResponse.__init__  sp    8NN
 ;
 7LL
	 9NN
 9NN
r-   r   Nr   r(   r-   r*   r   r     r   r-   r   )6
__future__r   typingr   httpx r   _typesr   r   r   r	   r
   r   r   _utilsr   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _exceptionsr   _base_clientr   r   types.messagesr   r   _decoders.jsonlr   r   types.messages.message_batchr   $types.messages.deleted_message_batchr   0types.messages.message_batch_individual_responser    __all__r!   r"   r'   r   r5   r   r(   r-   r*   <module>r      s    #     K K K K K & : Y - ) @ D > 8 G ^n
%l
o l
^	l
# l
^	
 
*
 
*
 
*
 
r-   