types-boto3-bedrock-runtime 1.35.73__py3-none-any.whl → 1.35.75__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,12 +15,14 @@ Copyright 2024 Vlad Emelianov
15
15
  """
16
16
 
17
17
  import sys
18
+ from datetime import datetime
18
19
  from typing import IO, Any, Dict, List, Mapping, Sequence, Union
19
20
 
20
21
  from botocore.eventstream import EventStream
21
22
  from botocore.response import StreamingBody
22
23
 
23
24
  from .literals import (
25
+ AsyncInvokeStatusType,
24
26
  ConversationRoleType,
25
27
  DocumentFormatType,
26
28
  GuardrailActionType,
@@ -32,15 +34,19 @@ from .literals import (
32
34
  GuardrailContextualGroundingFilterTypeType,
33
35
  GuardrailContextualGroundingPolicyActionType,
34
36
  GuardrailConverseContentQualifierType,
37
+ GuardrailConverseImageFormatType,
38
+ GuardrailImageFormatType,
35
39
  GuardrailPiiEntityTypeType,
36
40
  GuardrailSensitiveInformationPolicyActionType,
37
41
  GuardrailStreamProcessingModeType,
38
42
  GuardrailTraceType,
39
43
  ImageFormatType,
40
44
  PerformanceConfigLatencyType,
45
+ SortOrderType,
41
46
  StopReasonType,
42
47
  ToolResultStatusType,
43
48
  TraceType,
49
+ VideoFormatType,
44
50
  )
45
51
 
46
52
  if sys.version_info >= (3, 12):
@@ -51,6 +57,9 @@ else:
51
57
  __all__ = (
52
58
  "ApplyGuardrailRequestRequestTypeDef",
53
59
  "ApplyGuardrailResponseTypeDef",
60
+ "AsyncInvokeOutputDataConfigTypeDef",
61
+ "AsyncInvokeS3OutputDataConfigTypeDef",
62
+ "AsyncInvokeSummaryTypeDef",
54
63
  "BlobTypeDef",
55
64
  "ContentBlockDeltaEventTypeDef",
56
65
  "ContentBlockDeltaTypeDef",
@@ -77,6 +86,8 @@ __all__ = (
77
86
  "DocumentSourceOutputTypeDef",
78
87
  "DocumentSourceTypeDef",
79
88
  "DocumentSourceUnionTypeDef",
89
+ "GetAsyncInvokeRequestRequestTypeDef",
90
+ "GetAsyncInvokeResponseTypeDef",
80
91
  "GuardrailAssessmentTypeDef",
81
92
  "GuardrailConfigurationTypeDef",
82
93
  "GuardrailContentBlockTypeDef",
@@ -87,11 +98,20 @@ __all__ = (
87
98
  "GuardrailConverseContentBlockOutputTypeDef",
88
99
  "GuardrailConverseContentBlockTypeDef",
89
100
  "GuardrailConverseContentBlockUnionTypeDef",
101
+ "GuardrailConverseImageBlockOutputTypeDef",
102
+ "GuardrailConverseImageBlockTypeDef",
103
+ "GuardrailConverseImageBlockUnionTypeDef",
104
+ "GuardrailConverseImageSourceOutputTypeDef",
105
+ "GuardrailConverseImageSourceTypeDef",
106
+ "GuardrailConverseImageSourceUnionTypeDef",
90
107
  "GuardrailConverseTextBlockOutputTypeDef",
91
108
  "GuardrailConverseTextBlockTypeDef",
92
109
  "GuardrailConverseTextBlockUnionTypeDef",
93
110
  "GuardrailCoverageTypeDef",
94
111
  "GuardrailCustomWordTypeDef",
112
+ "GuardrailImageBlockTypeDef",
113
+ "GuardrailImageCoverageTypeDef",
114
+ "GuardrailImageSourceTypeDef",
95
115
  "GuardrailInvocationMetricsTypeDef",
96
116
  "GuardrailManagedWordTypeDef",
97
117
  "GuardrailOutputContentTypeDef",
@@ -118,6 +138,9 @@ __all__ = (
118
138
  "InvokeModelResponseTypeDef",
119
139
  "InvokeModelWithResponseStreamRequestRequestTypeDef",
120
140
  "InvokeModelWithResponseStreamResponseTypeDef",
141
+ "ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef",
142
+ "ListAsyncInvokesRequestRequestTypeDef",
143
+ "ListAsyncInvokesResponseTypeDef",
121
144
  "MessageOutputTypeDef",
122
145
  "MessageStartEventTypeDef",
123
146
  "MessageStopEventTypeDef",
@@ -125,15 +148,22 @@ __all__ = (
125
148
  "MessageUnionTypeDef",
126
149
  "ModelStreamErrorExceptionTypeDef",
127
150
  "ModelTimeoutExceptionTypeDef",
151
+ "PaginatorConfigTypeDef",
128
152
  "PayloadPartTypeDef",
129
153
  "PerformanceConfigurationTypeDef",
154
+ "PromptRouterTraceTypeDef",
130
155
  "PromptVariableValuesTypeDef",
131
156
  "ResponseMetadataTypeDef",
132
157
  "ResponseStreamTypeDef",
158
+ "S3LocationTypeDef",
133
159
  "ServiceUnavailableExceptionTypeDef",
134
160
  "SpecificToolChoiceTypeDef",
161
+ "StartAsyncInvokeRequestRequestTypeDef",
162
+ "StartAsyncInvokeResponseTypeDef",
135
163
  "SystemContentBlockTypeDef",
164
+ "TagTypeDef",
136
165
  "ThrottlingExceptionTypeDef",
166
+ "TimestampTypeDef",
137
167
  "TokenUsageTypeDef",
138
168
  "ToolChoiceTypeDef",
139
169
  "ToolConfigurationTypeDef",
@@ -152,6 +182,12 @@ __all__ = (
152
182
  "ToolUseBlockTypeDef",
153
183
  "ToolUseBlockUnionTypeDef",
154
184
  "ValidationExceptionTypeDef",
185
+ "VideoBlockOutputTypeDef",
186
+ "VideoBlockTypeDef",
187
+ "VideoBlockUnionTypeDef",
188
+ "VideoSourceOutputTypeDef",
189
+ "VideoSourceTypeDef",
190
+ "VideoSourceUnionTypeDef",
155
191
  )
156
192
 
157
193
  class GuardrailOutputContentTypeDef(TypedDict):
@@ -172,6 +208,11 @@ class ResponseMetadataTypeDef(TypedDict):
172
208
  RetryAttempts: int
173
209
  HostId: NotRequired[str]
174
210
 
211
+ class AsyncInvokeS3OutputDataConfigTypeDef(TypedDict):
212
+ s3Uri: str
213
+ kmsKeyId: NotRequired[str]
214
+ bucketOwner: NotRequired[str]
215
+
175
216
  BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
176
217
  ToolUseBlockDeltaTypeDef = TypedDict(
177
218
  "ToolUseBlockDeltaTypeDef",
@@ -253,6 +294,9 @@ class GuardrailStreamConfigurationTypeDef(TypedDict):
253
294
  trace: NotRequired[GuardrailTraceType]
254
295
  streamProcessingMode: NotRequired[GuardrailStreamProcessingModeType]
255
296
 
297
+ class PromptRouterTraceTypeDef(TypedDict):
298
+ invokedModelId: NotRequired[str]
299
+
256
300
  DocumentSourceOutputTypeDef = TypedDict(
257
301
  "DocumentSourceOutputTypeDef",
258
302
  {
@@ -260,6 +304,9 @@ DocumentSourceOutputTypeDef = TypedDict(
260
304
  },
261
305
  )
262
306
 
307
+ class GetAsyncInvokeRequestRequestTypeDef(TypedDict):
308
+ invocationArn: str
309
+
263
310
  class GuardrailTextBlockTypeDef(TypedDict):
264
311
  text: str
265
312
  qualifiers: NotRequired[Sequence[GuardrailContentQualifierType]]
@@ -287,10 +334,21 @@ class GuardrailConverseTextBlockOutputTypeDef(TypedDict):
287
334
  text: str
288
335
  qualifiers: NotRequired[List[GuardrailConverseContentQualifierType]]
289
336
 
337
+ GuardrailConverseImageSourceOutputTypeDef = TypedDict(
338
+ "GuardrailConverseImageSourceOutputTypeDef",
339
+ {
340
+ "bytes": NotRequired[bytes],
341
+ },
342
+ )
343
+
290
344
  class GuardrailConverseTextBlockTypeDef(TypedDict):
291
345
  text: str
292
346
  qualifiers: NotRequired[Sequence[GuardrailConverseContentQualifierType]]
293
347
 
348
+ class GuardrailImageCoverageTypeDef(TypedDict):
349
+ guarded: NotRequired[int]
350
+ total: NotRequired[int]
351
+
294
352
  class GuardrailTextCharactersCoverageTypeDef(TypedDict):
295
353
  guarded: NotRequired[int]
296
354
  total: NotRequired[int]
@@ -337,6 +395,13 @@ ImageSourceOutputTypeDef = TypedDict(
337
395
  },
338
396
  )
339
397
 
398
+ class PaginatorConfigTypeDef(TypedDict):
399
+ MaxItems: NotRequired[int]
400
+ PageSize: NotRequired[int]
401
+ StartingToken: NotRequired[str]
402
+
403
+ TimestampTypeDef = Union[datetime, str]
404
+
340
405
  class ModelTimeoutExceptionTypeDef(TypedDict):
341
406
  message: NotRequired[str]
342
407
 
@@ -347,9 +412,17 @@ PayloadPartTypeDef = TypedDict(
347
412
  },
348
413
  )
349
414
 
415
+ class S3LocationTypeDef(TypedDict):
416
+ uri: str
417
+ bucketOwner: NotRequired[str]
418
+
350
419
  class SpecificToolChoiceTypeDef(TypedDict):
351
420
  name: str
352
421
 
422
+ class TagTypeDef(TypedDict):
423
+ key: str
424
+ value: str
425
+
353
426
  class ToolInputSchemaTypeDef(TypedDict):
354
427
  json: NotRequired[Mapping[str, Any]]
355
428
 
@@ -368,12 +441,31 @@ class InvokeModelResponseTypeDef(TypedDict):
368
441
  performanceConfigLatency: PerformanceConfigLatencyType
369
442
  ResponseMetadata: ResponseMetadataTypeDef
370
443
 
444
+ class StartAsyncInvokeResponseTypeDef(TypedDict):
445
+ invocationArn: str
446
+ ResponseMetadata: ResponseMetadataTypeDef
447
+
448
+ class AsyncInvokeOutputDataConfigTypeDef(TypedDict):
449
+ s3OutputDataConfig: NotRequired[AsyncInvokeS3OutputDataConfigTypeDef]
450
+
371
451
  DocumentSourceTypeDef = TypedDict(
372
452
  "DocumentSourceTypeDef",
373
453
  {
374
454
  "bytes": NotRequired[BlobTypeDef],
375
455
  },
376
456
  )
457
+ GuardrailConverseImageSourceTypeDef = TypedDict(
458
+ "GuardrailConverseImageSourceTypeDef",
459
+ {
460
+ "bytes": NotRequired[BlobTypeDef],
461
+ },
462
+ )
463
+ GuardrailImageSourceTypeDef = TypedDict(
464
+ "GuardrailImageSourceTypeDef",
465
+ {
466
+ "bytes": NotRequired[BlobTypeDef],
467
+ },
468
+ )
377
469
  ImageSourceTypeDef = TypedDict(
378
470
  "ImageSourceTypeDef",
379
471
  {
@@ -417,24 +509,26 @@ DocumentBlockOutputTypeDef = TypedDict(
417
509
  },
418
510
  )
419
511
 
420
- class GuardrailContentBlockTypeDef(TypedDict):
421
- text: NotRequired[GuardrailTextBlockTypeDef]
422
-
423
512
  class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
424
513
  filters: List[GuardrailContentFilterTypeDef]
425
514
 
426
515
  class GuardrailContextualGroundingPolicyAssessmentTypeDef(TypedDict):
427
516
  filters: NotRequired[List[GuardrailContextualGroundingFilterTypeDef]]
428
517
 
429
- class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
430
- text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
431
-
518
+ GuardrailConverseImageBlockOutputTypeDef = TypedDict(
519
+ "GuardrailConverseImageBlockOutputTypeDef",
520
+ {
521
+ "format": GuardrailConverseImageFormatType,
522
+ "source": GuardrailConverseImageSourceOutputTypeDef,
523
+ },
524
+ )
432
525
  GuardrailConverseTextBlockUnionTypeDef = Union[
433
526
  GuardrailConverseTextBlockTypeDef, GuardrailConverseTextBlockOutputTypeDef
434
527
  ]
435
528
 
436
529
  class GuardrailCoverageTypeDef(TypedDict):
437
530
  textCharacters: NotRequired[GuardrailTextCharactersCoverageTypeDef]
531
+ images: NotRequired[GuardrailImageCoverageTypeDef]
438
532
 
439
533
  class GuardrailWordPolicyAssessmentTypeDef(TypedDict):
440
534
  customWords: List[GuardrailCustomWordTypeDef]
@@ -455,6 +549,23 @@ ImageBlockOutputTypeDef = TypedDict(
455
549
  },
456
550
  )
457
551
 
552
+ class ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef(TypedDict):
553
+ submitTimeAfter: NotRequired[TimestampTypeDef]
554
+ submitTimeBefore: NotRequired[TimestampTypeDef]
555
+ statusEquals: NotRequired[AsyncInvokeStatusType]
556
+ sortBy: NotRequired[Literal["SubmissionTime"]]
557
+ sortOrder: NotRequired[SortOrderType]
558
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
559
+
560
+ class ListAsyncInvokesRequestRequestTypeDef(TypedDict):
561
+ submitTimeAfter: NotRequired[TimestampTypeDef]
562
+ submitTimeBefore: NotRequired[TimestampTypeDef]
563
+ statusEquals: NotRequired[AsyncInvokeStatusType]
564
+ maxResults: NotRequired[int]
565
+ nextToken: NotRequired[str]
566
+ sortBy: NotRequired[Literal["SubmissionTime"]]
567
+ sortOrder: NotRequired[SortOrderType]
568
+
458
569
  class ResponseStreamTypeDef(TypedDict):
459
570
  chunk: NotRequired[PayloadPartTypeDef]
460
571
  internalServerException: NotRequired[InternalServerExceptionTypeDef]
@@ -464,6 +575,20 @@ class ResponseStreamTypeDef(TypedDict):
464
575
  modelTimeoutException: NotRequired[ModelTimeoutExceptionTypeDef]
465
576
  serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
466
577
 
578
+ VideoSourceOutputTypeDef = TypedDict(
579
+ "VideoSourceOutputTypeDef",
580
+ {
581
+ "bytes": NotRequired[bytes],
582
+ "s3Location": NotRequired[S3LocationTypeDef],
583
+ },
584
+ )
585
+ VideoSourceTypeDef = TypedDict(
586
+ "VideoSourceTypeDef",
587
+ {
588
+ "bytes": NotRequired[BlobTypeDef],
589
+ "s3Location": NotRequired[S3LocationTypeDef],
590
+ },
591
+ )
467
592
  ToolChoiceTypeDef = TypedDict(
468
593
  "ToolChoiceTypeDef",
469
594
  {
@@ -479,7 +604,48 @@ class ToolSpecificationTypeDef(TypedDict):
479
604
  description: NotRequired[str]
480
605
 
481
606
  ToolUseBlockUnionTypeDef = Union[ToolUseBlockTypeDef, ToolUseBlockOutputTypeDef]
607
+
608
+ class AsyncInvokeSummaryTypeDef(TypedDict):
609
+ invocationArn: str
610
+ modelArn: str
611
+ submitTime: datetime
612
+ outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
613
+ clientRequestToken: NotRequired[str]
614
+ status: NotRequired[AsyncInvokeStatusType]
615
+ failureMessage: NotRequired[str]
616
+ lastModifiedTime: NotRequired[datetime]
617
+ endTime: NotRequired[datetime]
618
+
619
+ class GetAsyncInvokeResponseTypeDef(TypedDict):
620
+ invocationArn: str
621
+ modelArn: str
622
+ clientRequestToken: str
623
+ status: AsyncInvokeStatusType
624
+ failureMessage: str
625
+ submitTime: datetime
626
+ lastModifiedTime: datetime
627
+ endTime: datetime
628
+ outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
629
+ ResponseMetadata: ResponseMetadataTypeDef
630
+
631
+ class StartAsyncInvokeRequestRequestTypeDef(TypedDict):
632
+ modelId: str
633
+ modelInput: Mapping[str, Any]
634
+ outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
635
+ clientRequestToken: NotRequired[str]
636
+ tags: NotRequired[Sequence[TagTypeDef]]
637
+
482
638
  DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
639
+ GuardrailConverseImageSourceUnionTypeDef = Union[
640
+ GuardrailConverseImageSourceTypeDef, GuardrailConverseImageSourceOutputTypeDef
641
+ ]
642
+ GuardrailImageBlockTypeDef = TypedDict(
643
+ "GuardrailImageBlockTypeDef",
644
+ {
645
+ "format": GuardrailImageFormatType,
646
+ "source": GuardrailImageSourceTypeDef,
647
+ },
648
+ )
483
649
  ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
484
650
 
485
651
  class ContentBlockDeltaEventTypeDef(TypedDict):
@@ -490,35 +656,38 @@ class ContentBlockStartEventTypeDef(TypedDict):
490
656
  start: ContentBlockStartTypeDef
491
657
  contentBlockIndex: int
492
658
 
493
- class ApplyGuardrailRequestRequestTypeDef(TypedDict):
494
- guardrailIdentifier: str
495
- guardrailVersion: str
496
- source: GuardrailContentSourceType
497
- content: Sequence[GuardrailContentBlockTypeDef]
498
-
499
- class GuardrailConverseContentBlockTypeDef(TypedDict):
500
- text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
659
+ class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
660
+ text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
661
+ image: NotRequired[GuardrailConverseImageBlockOutputTypeDef]
501
662
 
502
663
  class GuardrailInvocationMetricsTypeDef(TypedDict):
503
664
  guardrailProcessingLatency: NotRequired[int]
504
665
  usage: NotRequired[GuardrailUsageTypeDef]
505
666
  guardrailCoverage: NotRequired[GuardrailCoverageTypeDef]
506
667
 
507
- class ToolResultContentBlockOutputTypeDef(TypedDict):
508
- json: NotRequired[Dict[str, Any]]
509
- text: NotRequired[str]
510
- image: NotRequired[ImageBlockOutputTypeDef]
511
- document: NotRequired[DocumentBlockOutputTypeDef]
512
-
513
668
  class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
514
669
  body: "EventStream[ResponseStreamTypeDef]"
515
670
  contentType: str
516
671
  performanceConfigLatency: PerformanceConfigLatencyType
517
672
  ResponseMetadata: ResponseMetadataTypeDef
518
673
 
674
+ VideoBlockOutputTypeDef = TypedDict(
675
+ "VideoBlockOutputTypeDef",
676
+ {
677
+ "format": VideoFormatType,
678
+ "source": VideoSourceOutputTypeDef,
679
+ },
680
+ )
681
+ VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
682
+
519
683
  class ToolTypeDef(TypedDict):
520
684
  toolSpec: NotRequired[ToolSpecificationTypeDef]
521
685
 
686
+ class ListAsyncInvokesResponseTypeDef(TypedDict):
687
+ asyncInvokeSummaries: List[AsyncInvokeSummaryTypeDef]
688
+ ResponseMetadata: ResponseMetadataTypeDef
689
+ nextToken: NotRequired[str]
690
+
522
691
  DocumentBlockTypeDef = TypedDict(
523
692
  "DocumentBlockTypeDef",
524
693
  {
@@ -527,6 +696,18 @@ DocumentBlockTypeDef = TypedDict(
527
696
  "source": DocumentSourceUnionTypeDef,
528
697
  },
529
698
  )
699
+ GuardrailConverseImageBlockTypeDef = TypedDict(
700
+ "GuardrailConverseImageBlockTypeDef",
701
+ {
702
+ "format": GuardrailConverseImageFormatType,
703
+ "source": GuardrailConverseImageSourceUnionTypeDef,
704
+ },
705
+ )
706
+
707
+ class GuardrailContentBlockTypeDef(TypedDict):
708
+ text: NotRequired[GuardrailTextBlockTypeDef]
709
+ image: NotRequired[GuardrailImageBlockTypeDef]
710
+
530
711
  ImageBlockTypeDef = TypedDict(
531
712
  "ImageBlockTypeDef",
532
713
  {
@@ -534,9 +715,6 @@ ImageBlockTypeDef = TypedDict(
534
715
  "source": ImageSourceUnionTypeDef,
535
716
  },
536
717
  )
537
- GuardrailConverseContentBlockUnionTypeDef = Union[
538
- GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
539
- ]
540
718
 
541
719
  class GuardrailAssessmentTypeDef(TypedDict):
542
720
  topicPolicy: NotRequired[GuardrailTopicPolicyAssessmentTypeDef]
@@ -546,21 +724,37 @@ class GuardrailAssessmentTypeDef(TypedDict):
546
724
  contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
547
725
  invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
548
726
 
549
- class ToolResultBlockOutputTypeDef(TypedDict):
550
- toolUseId: str
551
- content: List[ToolResultContentBlockOutputTypeDef]
552
- status: NotRequired[ToolResultStatusType]
727
+ class ToolResultContentBlockOutputTypeDef(TypedDict):
728
+ json: NotRequired[Dict[str, Any]]
729
+ text: NotRequired[str]
730
+ image: NotRequired[ImageBlockOutputTypeDef]
731
+ document: NotRequired[DocumentBlockOutputTypeDef]
732
+ video: NotRequired[VideoBlockOutputTypeDef]
733
+
734
+ VideoBlockTypeDef = TypedDict(
735
+ "VideoBlockTypeDef",
736
+ {
737
+ "format": VideoFormatType,
738
+ "source": VideoSourceUnionTypeDef,
739
+ },
740
+ )
553
741
 
554
742
  class ToolConfigurationTypeDef(TypedDict):
555
743
  tools: Sequence[ToolTypeDef]
556
744
  toolChoice: NotRequired[ToolChoiceTypeDef]
557
745
 
558
746
  DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
559
- ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
747
+ GuardrailConverseImageBlockUnionTypeDef = Union[
748
+ GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
749
+ ]
560
750
 
561
- class SystemContentBlockTypeDef(TypedDict):
562
- text: NotRequired[str]
563
- guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
751
+ class ApplyGuardrailRequestRequestTypeDef(TypedDict):
752
+ guardrailIdentifier: str
753
+ guardrailVersion: str
754
+ source: GuardrailContentSourceType
755
+ content: Sequence[GuardrailContentBlockTypeDef]
756
+
757
+ ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
564
758
 
565
759
  class ApplyGuardrailResponseTypeDef(TypedDict):
566
760
  usage: GuardrailUsageTypeDef
@@ -575,10 +769,30 @@ class GuardrailTraceAssessmentTypeDef(TypedDict):
575
769
  inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
576
770
  outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
577
771
 
772
+ class ToolResultBlockOutputTypeDef(TypedDict):
773
+ toolUseId: str
774
+ content: List[ToolResultContentBlockOutputTypeDef]
775
+ status: NotRequired[ToolResultStatusType]
776
+
777
+ VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
778
+
779
+ class GuardrailConverseContentBlockTypeDef(TypedDict):
780
+ text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
781
+ image: NotRequired[GuardrailConverseImageBlockUnionTypeDef]
782
+
783
+ class ConverseStreamTraceTypeDef(TypedDict):
784
+ guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
785
+ promptRouter: NotRequired[PromptRouterTraceTypeDef]
786
+
787
+ class ConverseTraceTypeDef(TypedDict):
788
+ guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
789
+ promptRouter: NotRequired[PromptRouterTraceTypeDef]
790
+
578
791
  class ContentBlockOutputTypeDef(TypedDict):
579
792
  text: NotRequired[str]
580
793
  image: NotRequired[ImageBlockOutputTypeDef]
581
794
  document: NotRequired[DocumentBlockOutputTypeDef]
795
+ video: NotRequired[VideoBlockOutputTypeDef]
582
796
  toolUse: NotRequired[ToolUseBlockOutputTypeDef]
583
797
  toolResult: NotRequired[ToolResultBlockOutputTypeDef]
584
798
  guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
@@ -588,12 +802,17 @@ class ToolResultContentBlockTypeDef(TypedDict):
588
802
  text: NotRequired[str]
589
803
  image: NotRequired[ImageBlockUnionTypeDef]
590
804
  document: NotRequired[DocumentBlockUnionTypeDef]
805
+ video: NotRequired[VideoBlockUnionTypeDef]
591
806
 
592
- class ConverseStreamTraceTypeDef(TypedDict):
593
- guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
807
+ GuardrailConverseContentBlockUnionTypeDef = Union[
808
+ GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
809
+ ]
594
810
 
595
- class ConverseTraceTypeDef(TypedDict):
596
- guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
811
+ class ConverseStreamMetadataEventTypeDef(TypedDict):
812
+ usage: TokenUsageTypeDef
813
+ metrics: ConverseStreamMetricsTypeDef
814
+ trace: NotRequired[ConverseStreamTraceTypeDef]
815
+ performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
597
816
 
598
817
  class MessageOutputTypeDef(TypedDict):
599
818
  role: ConversationRoleType
@@ -603,19 +822,9 @@ ToolResultContentBlockUnionTypeDef = Union[
603
822
  ToolResultContentBlockTypeDef, ToolResultContentBlockOutputTypeDef
604
823
  ]
605
824
 
606
- class ConverseStreamMetadataEventTypeDef(TypedDict):
607
- usage: TokenUsageTypeDef
608
- metrics: ConverseStreamMetricsTypeDef
609
- trace: NotRequired[ConverseStreamTraceTypeDef]
610
- performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
611
-
612
- class ConverseOutputTypeDef(TypedDict):
613
- message: NotRequired[MessageOutputTypeDef]
614
-
615
- class ToolResultBlockTypeDef(TypedDict):
616
- toolUseId: str
617
- content: Sequence[ToolResultContentBlockUnionTypeDef]
618
- status: NotRequired[ToolResultStatusType]
825
+ class SystemContentBlockTypeDef(TypedDict):
826
+ text: NotRequired[str]
827
+ guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
619
828
 
620
829
  class ConverseStreamOutputTypeDef(TypedDict):
621
830
  messageStart: NotRequired[MessageStartEventTypeDef]
@@ -630,6 +839,18 @@ class ConverseStreamOutputTypeDef(TypedDict):
630
839
  throttlingException: NotRequired[ThrottlingExceptionTypeDef]
631
840
  serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
632
841
 
842
+ class ConverseOutputTypeDef(TypedDict):
843
+ message: NotRequired[MessageOutputTypeDef]
844
+
845
+ class ToolResultBlockTypeDef(TypedDict):
846
+ toolUseId: str
847
+ content: Sequence[ToolResultContentBlockUnionTypeDef]
848
+ status: NotRequired[ToolResultStatusType]
849
+
850
+ class ConverseStreamResponseTypeDef(TypedDict):
851
+ stream: "EventStream[ConverseStreamOutputTypeDef]"
852
+ ResponseMetadata: ResponseMetadataTypeDef
853
+
633
854
  class ConverseResponseTypeDef(TypedDict):
634
855
  output: ConverseOutputTypeDef
635
856
  stopReason: StopReasonType
@@ -642,14 +863,11 @@ class ConverseResponseTypeDef(TypedDict):
642
863
 
643
864
  ToolResultBlockUnionTypeDef = Union[ToolResultBlockTypeDef, ToolResultBlockOutputTypeDef]
644
865
 
645
- class ConverseStreamResponseTypeDef(TypedDict):
646
- stream: "EventStream[ConverseStreamOutputTypeDef]"
647
- ResponseMetadata: ResponseMetadataTypeDef
648
-
649
866
  class ContentBlockTypeDef(TypedDict):
650
867
  text: NotRequired[str]
651
868
  image: NotRequired[ImageBlockUnionTypeDef]
652
869
  document: NotRequired[DocumentBlockUnionTypeDef]
870
+ video: NotRequired[VideoBlockUnionTypeDef]
653
871
  toolUse: NotRequired[ToolUseBlockUnionTypeDef]
654
872
  toolResult: NotRequired[ToolResultBlockUnionTypeDef]
655
873
  guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
@@ -670,6 +888,7 @@ class ConverseStreamRequestRequestTypeDef(TypedDict):
670
888
  additionalModelRequestFields: NotRequired[Mapping[str, Any]]
671
889
  promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
672
890
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
891
+ requestMetadata: NotRequired[Mapping[str, str]]
673
892
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
674
893
 
675
894
  MessageUnionTypeDef = Union[MessageTypeDef, MessageOutputTypeDef]
@@ -684,4 +903,5 @@ class ConverseRequestRequestTypeDef(TypedDict):
684
903
  additionalModelRequestFields: NotRequired[Mapping[str, Any]]
685
904
  promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
686
905
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
906
+ requestMetadata: NotRequired[Mapping[str, str]]
687
907
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
@@ -4,4 +4,4 @@ Source of truth for version.
4
4
  Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
- __version__ = "1.35.73"
7
+ __version__ = "1.35.75"
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: types-boto3-bedrock-runtime
3
- Version: 1.35.73
4
- Summary: Type annotations for boto3 BedrockRuntime 1.35.73 service generated with mypy-boto3-builder 8.5.0
3
+ Version: 1.35.75
4
+ Summary: Type annotations for boto3 BedrockRuntime 1.35.75 service generated with mypy-boto3-builder 8.5.0
5
5
  Home-page: https://github.com/youtype/mypy_boto3_builder
6
6
  Author: Vlad Emelianov
7
7
  Author-email: vlad.emelianov.nz@gmail.com
@@ -44,7 +44,7 @@ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
44
44
  ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
45
45
 
46
46
  Type annotations for
47
- [boto3 BedrockRuntime 1.35.73](https://pypi.org/project/boto3/) compatible with
47
+ [boto3 BedrockRuntime 1.35.75](https://pypi.org/project/boto3/) compatible with
48
48
  [VSCode](https://code.visualstudio.com/),
49
49
  [PyCharm](https://www.jetbrains.com/pycharm/),
50
50
  [Emacs](https://www.gnu.org/software/emacs/),
@@ -79,6 +79,7 @@ See how it helps you find and fix potential bugs:
79
79
  - [Pylint compatibility](#pylint-compatibility)
80
80
  - [Explicit type annotations](#explicit-type-annotations)
81
81
  - [Client annotations](#client-annotations)
82
+ - [Paginators annotations](#paginators-annotations)
82
83
  - [Literals](#literals)
83
84
  - [Type definitions](#type-definitions)
84
85
  - [How it works](#how-it-works)
@@ -315,6 +316,26 @@ client: BedrockRuntimeClient = Session().client("bedrock-runtime")
315
316
  # now client usage is checked by mypy and IDE should provide code completion
316
317
  ```
317
318
 
319
+ <a id="paginators-annotations"></a>
320
+
321
+ ### Paginators annotations
322
+
323
+ `types_boto3_bedrock_runtime.paginator` module contains type annotations for
324
+ all paginators.
325
+
326
+ ```python
327
+ from boto3.session import Session
328
+
329
+ from types_boto3_bedrock_runtime import BedrockRuntimeClient
330
+ from types_boto3_bedrock_runtime.paginator import ListAsyncInvokesPaginator
331
+
332
+ client: BedrockRuntimeClient = Session().client("bedrock-runtime")
333
+
334
+ # Explicit type annotations are optional here
335
+ # Types should be correctly discovered by mypy and IDEs
336
+ list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
337
+ ```
338
+
318
339
  <a id="literals"></a>
319
340
 
320
341
  ### Literals
@@ -326,10 +347,10 @@ Full list of `BedrockRuntime` Literals can be found in
326
347
  [docs](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/).
327
348
 
328
349
  ```python
329
- from types_boto3_bedrock_runtime.literals import ConversationRoleType
350
+ from types_boto3_bedrock_runtime.literals import AsyncInvokeStatusType
330
351
 
331
352
 
332
- def check_value(value: ConversationRoleType) -> bool: ...
353
+ def check_value(value: AsyncInvokeStatusType) -> bool: ...
333
354
  ```
334
355
 
335
356
  <a id="type-definitions"></a>