types-boto3-bedrock-runtime 1.35.71__py3-none-any.whl → 1.35.74__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,
@@ -37,9 +39,12 @@ from .literals import (
37
39
  GuardrailStreamProcessingModeType,
38
40
  GuardrailTraceType,
39
41
  ImageFormatType,
42
+ PerformanceConfigLatencyType,
43
+ SortOrderType,
40
44
  StopReasonType,
41
45
  ToolResultStatusType,
42
46
  TraceType,
47
+ VideoFormatType,
43
48
  )
44
49
 
45
50
  if sys.version_info >= (3, 12):
@@ -50,6 +55,9 @@ else:
50
55
  __all__ = (
51
56
  "ApplyGuardrailRequestRequestTypeDef",
52
57
  "ApplyGuardrailResponseTypeDef",
58
+ "AsyncInvokeOutputDataConfigTypeDef",
59
+ "AsyncInvokeS3OutputDataConfigTypeDef",
60
+ "AsyncInvokeSummaryTypeDef",
53
61
  "BlobTypeDef",
54
62
  "ContentBlockDeltaEventTypeDef",
55
63
  "ContentBlockDeltaTypeDef",
@@ -76,6 +84,8 @@ __all__ = (
76
84
  "DocumentSourceOutputTypeDef",
77
85
  "DocumentSourceTypeDef",
78
86
  "DocumentSourceUnionTypeDef",
87
+ "GetAsyncInvokeRequestRequestTypeDef",
88
+ "GetAsyncInvokeResponseTypeDef",
79
89
  "GuardrailAssessmentTypeDef",
80
90
  "GuardrailConfigurationTypeDef",
81
91
  "GuardrailContentBlockTypeDef",
@@ -117,6 +127,9 @@ __all__ = (
117
127
  "InvokeModelResponseTypeDef",
118
128
  "InvokeModelWithResponseStreamRequestRequestTypeDef",
119
129
  "InvokeModelWithResponseStreamResponseTypeDef",
130
+ "ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef",
131
+ "ListAsyncInvokesRequestRequestTypeDef",
132
+ "ListAsyncInvokesResponseTypeDef",
120
133
  "MessageOutputTypeDef",
121
134
  "MessageStartEventTypeDef",
122
135
  "MessageStopEventTypeDef",
@@ -124,14 +137,21 @@ __all__ = (
124
137
  "MessageUnionTypeDef",
125
138
  "ModelStreamErrorExceptionTypeDef",
126
139
  "ModelTimeoutExceptionTypeDef",
140
+ "PaginatorConfigTypeDef",
127
141
  "PayloadPartTypeDef",
142
+ "PerformanceConfigurationTypeDef",
128
143
  "PromptVariableValuesTypeDef",
129
144
  "ResponseMetadataTypeDef",
130
145
  "ResponseStreamTypeDef",
146
+ "S3LocationTypeDef",
131
147
  "ServiceUnavailableExceptionTypeDef",
132
148
  "SpecificToolChoiceTypeDef",
149
+ "StartAsyncInvokeRequestRequestTypeDef",
150
+ "StartAsyncInvokeResponseTypeDef",
133
151
  "SystemContentBlockTypeDef",
152
+ "TagTypeDef",
134
153
  "ThrottlingExceptionTypeDef",
154
+ "TimestampTypeDef",
135
155
  "TokenUsageTypeDef",
136
156
  "ToolChoiceTypeDef",
137
157
  "ToolConfigurationTypeDef",
@@ -150,6 +170,12 @@ __all__ = (
150
170
  "ToolUseBlockTypeDef",
151
171
  "ToolUseBlockUnionTypeDef",
152
172
  "ValidationExceptionTypeDef",
173
+ "VideoBlockOutputTypeDef",
174
+ "VideoBlockTypeDef",
175
+ "VideoBlockUnionTypeDef",
176
+ "VideoSourceOutputTypeDef",
177
+ "VideoSourceTypeDef",
178
+ "VideoSourceUnionTypeDef",
153
179
  )
154
180
 
155
181
  class GuardrailOutputContentTypeDef(TypedDict):
@@ -170,6 +196,11 @@ class ResponseMetadataTypeDef(TypedDict):
170
196
  RetryAttempts: int
171
197
  HostId: NotRequired[str]
172
198
 
199
+ class AsyncInvokeS3OutputDataConfigTypeDef(TypedDict):
200
+ s3Uri: str
201
+ kmsKeyId: NotRequired[str]
202
+ bucketOwner: NotRequired[str]
203
+
173
204
  BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
174
205
  ToolUseBlockDeltaTypeDef = TypedDict(
175
206
  "ToolUseBlockDeltaTypeDef",
@@ -207,6 +238,9 @@ class InferenceConfigurationTypeDef(TypedDict):
207
238
  topP: NotRequired[float]
208
239
  stopSequences: NotRequired[Sequence[str]]
209
240
 
241
+ class PerformanceConfigurationTypeDef(TypedDict):
242
+ latency: NotRequired[PerformanceConfigLatencyType]
243
+
210
244
  class PromptVariableValuesTypeDef(TypedDict):
211
245
  text: NotRequired[str]
212
246
 
@@ -255,6 +289,9 @@ DocumentSourceOutputTypeDef = TypedDict(
255
289
  },
256
290
  )
257
291
 
292
+ class GetAsyncInvokeRequestRequestTypeDef(TypedDict):
293
+ invocationArn: str
294
+
258
295
  class GuardrailTextBlockTypeDef(TypedDict):
259
296
  text: str
260
297
  qualifiers: NotRequired[Sequence[GuardrailContentQualifierType]]
@@ -332,6 +369,13 @@ ImageSourceOutputTypeDef = TypedDict(
332
369
  },
333
370
  )
334
371
 
372
+ class PaginatorConfigTypeDef(TypedDict):
373
+ MaxItems: NotRequired[int]
374
+ PageSize: NotRequired[int]
375
+ StartingToken: NotRequired[str]
376
+
377
+ TimestampTypeDef = Union[datetime, str]
378
+
335
379
  class ModelTimeoutExceptionTypeDef(TypedDict):
336
380
  message: NotRequired[str]
337
381
 
@@ -342,9 +386,17 @@ PayloadPartTypeDef = TypedDict(
342
386
  },
343
387
  )
344
388
 
389
+ class S3LocationTypeDef(TypedDict):
390
+ uri: str
391
+ bucketOwner: NotRequired[str]
392
+
345
393
  class SpecificToolChoiceTypeDef(TypedDict):
346
394
  name: str
347
395
 
396
+ class TagTypeDef(TypedDict):
397
+ key: str
398
+ value: str
399
+
348
400
  class ToolInputSchemaTypeDef(TypedDict):
349
401
  json: NotRequired[Mapping[str, Any]]
350
402
 
@@ -360,8 +412,16 @@ ToolUseBlockTypeDef = TypedDict(
360
412
  class InvokeModelResponseTypeDef(TypedDict):
361
413
  body: StreamingBody
362
414
  contentType: str
415
+ performanceConfigLatency: PerformanceConfigLatencyType
363
416
  ResponseMetadata: ResponseMetadataTypeDef
364
417
 
418
+ class StartAsyncInvokeResponseTypeDef(TypedDict):
419
+ invocationArn: str
420
+ ResponseMetadata: ResponseMetadataTypeDef
421
+
422
+ class AsyncInvokeOutputDataConfigTypeDef(TypedDict):
423
+ s3OutputDataConfig: NotRequired[AsyncInvokeS3OutputDataConfigTypeDef]
424
+
365
425
  DocumentSourceTypeDef = TypedDict(
366
426
  "DocumentSourceTypeDef",
367
427
  {
@@ -383,6 +443,7 @@ class InvokeModelRequestRequestTypeDef(TypedDict):
383
443
  trace: NotRequired[TraceType]
384
444
  guardrailIdentifier: NotRequired[str]
385
445
  guardrailVersion: NotRequired[str]
446
+ performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
386
447
 
387
448
  class InvokeModelWithResponseStreamRequestRequestTypeDef(TypedDict):
388
449
  modelId: str
@@ -392,6 +453,7 @@ class InvokeModelWithResponseStreamRequestRequestTypeDef(TypedDict):
392
453
  trace: NotRequired[TraceType]
393
454
  guardrailIdentifier: NotRequired[str]
394
455
  guardrailVersion: NotRequired[str]
456
+ performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
395
457
 
396
458
  class ContentBlockDeltaTypeDef(TypedDict):
397
459
  text: NotRequired[str]
@@ -447,6 +509,23 @@ ImageBlockOutputTypeDef = TypedDict(
447
509
  },
448
510
  )
449
511
 
512
+ class ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef(TypedDict):
513
+ submitTimeAfter: NotRequired[TimestampTypeDef]
514
+ submitTimeBefore: NotRequired[TimestampTypeDef]
515
+ statusEquals: NotRequired[AsyncInvokeStatusType]
516
+ sortBy: NotRequired[Literal["SubmissionTime"]]
517
+ sortOrder: NotRequired[SortOrderType]
518
+ PaginationConfig: NotRequired[PaginatorConfigTypeDef]
519
+
520
+ class ListAsyncInvokesRequestRequestTypeDef(TypedDict):
521
+ submitTimeAfter: NotRequired[TimestampTypeDef]
522
+ submitTimeBefore: NotRequired[TimestampTypeDef]
523
+ statusEquals: NotRequired[AsyncInvokeStatusType]
524
+ maxResults: NotRequired[int]
525
+ nextToken: NotRequired[str]
526
+ sortBy: NotRequired[Literal["SubmissionTime"]]
527
+ sortOrder: NotRequired[SortOrderType]
528
+
450
529
  class ResponseStreamTypeDef(TypedDict):
451
530
  chunk: NotRequired[PayloadPartTypeDef]
452
531
  internalServerException: NotRequired[InternalServerExceptionTypeDef]
@@ -456,6 +535,20 @@ class ResponseStreamTypeDef(TypedDict):
456
535
  modelTimeoutException: NotRequired[ModelTimeoutExceptionTypeDef]
457
536
  serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
458
537
 
538
+ VideoSourceOutputTypeDef = TypedDict(
539
+ "VideoSourceOutputTypeDef",
540
+ {
541
+ "bytes": NotRequired[bytes],
542
+ "s3Location": NotRequired[S3LocationTypeDef],
543
+ },
544
+ )
545
+ VideoSourceTypeDef = TypedDict(
546
+ "VideoSourceTypeDef",
547
+ {
548
+ "bytes": NotRequired[BlobTypeDef],
549
+ "s3Location": NotRequired[S3LocationTypeDef],
550
+ },
551
+ )
459
552
  ToolChoiceTypeDef = TypedDict(
460
553
  "ToolChoiceTypeDef",
461
554
  {
@@ -471,6 +564,37 @@ class ToolSpecificationTypeDef(TypedDict):
471
564
  description: NotRequired[str]
472
565
 
473
566
  ToolUseBlockUnionTypeDef = Union[ToolUseBlockTypeDef, ToolUseBlockOutputTypeDef]
567
+
568
+ class AsyncInvokeSummaryTypeDef(TypedDict):
569
+ invocationArn: str
570
+ modelArn: str
571
+ submitTime: datetime
572
+ outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
573
+ clientRequestToken: NotRequired[str]
574
+ status: NotRequired[AsyncInvokeStatusType]
575
+ failureMessage: NotRequired[str]
576
+ lastModifiedTime: NotRequired[datetime]
577
+ endTime: NotRequired[datetime]
578
+
579
+ class GetAsyncInvokeResponseTypeDef(TypedDict):
580
+ invocationArn: str
581
+ modelArn: str
582
+ clientRequestToken: str
583
+ status: AsyncInvokeStatusType
584
+ failureMessage: str
585
+ submitTime: datetime
586
+ lastModifiedTime: datetime
587
+ endTime: datetime
588
+ outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
589
+ ResponseMetadata: ResponseMetadataTypeDef
590
+
591
+ class StartAsyncInvokeRequestRequestTypeDef(TypedDict):
592
+ modelId: str
593
+ modelInput: Mapping[str, Any]
594
+ outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
595
+ clientRequestToken: NotRequired[str]
596
+ tags: NotRequired[Sequence[TagTypeDef]]
597
+
474
598
  DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
475
599
  ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
476
600
 
@@ -496,20 +620,29 @@ class GuardrailInvocationMetricsTypeDef(TypedDict):
496
620
  usage: NotRequired[GuardrailUsageTypeDef]
497
621
  guardrailCoverage: NotRequired[GuardrailCoverageTypeDef]
498
622
 
499
- class ToolResultContentBlockOutputTypeDef(TypedDict):
500
- json: NotRequired[Dict[str, Any]]
501
- text: NotRequired[str]
502
- image: NotRequired[ImageBlockOutputTypeDef]
503
- document: NotRequired[DocumentBlockOutputTypeDef]
504
-
505
623
  class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
506
624
  body: "EventStream[ResponseStreamTypeDef]"
507
625
  contentType: str
626
+ performanceConfigLatency: PerformanceConfigLatencyType
508
627
  ResponseMetadata: ResponseMetadataTypeDef
509
628
 
629
+ VideoBlockOutputTypeDef = TypedDict(
630
+ "VideoBlockOutputTypeDef",
631
+ {
632
+ "format": VideoFormatType,
633
+ "source": VideoSourceOutputTypeDef,
634
+ },
635
+ )
636
+ VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
637
+
510
638
  class ToolTypeDef(TypedDict):
511
639
  toolSpec: NotRequired[ToolSpecificationTypeDef]
512
640
 
641
+ class ListAsyncInvokesResponseTypeDef(TypedDict):
642
+ asyncInvokeSummaries: List[AsyncInvokeSummaryTypeDef]
643
+ ResponseMetadata: ResponseMetadataTypeDef
644
+ nextToken: NotRequired[str]
645
+
513
646
  DocumentBlockTypeDef = TypedDict(
514
647
  "DocumentBlockTypeDef",
515
648
  {
@@ -537,10 +670,20 @@ class GuardrailAssessmentTypeDef(TypedDict):
537
670
  contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
538
671
  invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
539
672
 
540
- class ToolResultBlockOutputTypeDef(TypedDict):
541
- toolUseId: str
542
- content: List[ToolResultContentBlockOutputTypeDef]
543
- status: NotRequired[ToolResultStatusType]
673
+ class ToolResultContentBlockOutputTypeDef(TypedDict):
674
+ json: NotRequired[Dict[str, Any]]
675
+ text: NotRequired[str]
676
+ image: NotRequired[ImageBlockOutputTypeDef]
677
+ document: NotRequired[DocumentBlockOutputTypeDef]
678
+ video: NotRequired[VideoBlockOutputTypeDef]
679
+
680
+ VideoBlockTypeDef = TypedDict(
681
+ "VideoBlockTypeDef",
682
+ {
683
+ "format": VideoFormatType,
684
+ "source": VideoSourceUnionTypeDef,
685
+ },
686
+ )
544
687
 
545
688
  class ToolConfigurationTypeDef(TypedDict):
546
689
  tools: Sequence[ToolTypeDef]
@@ -566,10 +709,24 @@ class GuardrailTraceAssessmentTypeDef(TypedDict):
566
709
  inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
567
710
  outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
568
711
 
712
+ class ToolResultBlockOutputTypeDef(TypedDict):
713
+ toolUseId: str
714
+ content: List[ToolResultContentBlockOutputTypeDef]
715
+ status: NotRequired[ToolResultStatusType]
716
+
717
+ VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
718
+
719
+ class ConverseStreamTraceTypeDef(TypedDict):
720
+ guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
721
+
722
+ class ConverseTraceTypeDef(TypedDict):
723
+ guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
724
+
569
725
  class ContentBlockOutputTypeDef(TypedDict):
570
726
  text: NotRequired[str]
571
727
  image: NotRequired[ImageBlockOutputTypeDef]
572
728
  document: NotRequired[DocumentBlockOutputTypeDef]
729
+ video: NotRequired[VideoBlockOutputTypeDef]
573
730
  toolUse: NotRequired[ToolUseBlockOutputTypeDef]
574
731
  toolResult: NotRequired[ToolResultBlockOutputTypeDef]
575
732
  guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
@@ -579,12 +736,13 @@ class ToolResultContentBlockTypeDef(TypedDict):
579
736
  text: NotRequired[str]
580
737
  image: NotRequired[ImageBlockUnionTypeDef]
581
738
  document: NotRequired[DocumentBlockUnionTypeDef]
739
+ video: NotRequired[VideoBlockUnionTypeDef]
582
740
 
583
- class ConverseStreamTraceTypeDef(TypedDict):
584
- guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
585
-
586
- class ConverseTraceTypeDef(TypedDict):
587
- guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
741
+ class ConverseStreamMetadataEventTypeDef(TypedDict):
742
+ usage: TokenUsageTypeDef
743
+ metrics: ConverseStreamMetricsTypeDef
744
+ trace: NotRequired[ConverseStreamTraceTypeDef]
745
+ performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
588
746
 
589
747
  class MessageOutputTypeDef(TypedDict):
590
748
  role: ConversationRoleType
@@ -594,19 +752,6 @@ ToolResultContentBlockUnionTypeDef = Union[
594
752
  ToolResultContentBlockTypeDef, ToolResultContentBlockOutputTypeDef
595
753
  ]
596
754
 
597
- class ConverseStreamMetadataEventTypeDef(TypedDict):
598
- usage: TokenUsageTypeDef
599
- metrics: ConverseStreamMetricsTypeDef
600
- trace: NotRequired[ConverseStreamTraceTypeDef]
601
-
602
- class ConverseOutputTypeDef(TypedDict):
603
- message: NotRequired[MessageOutputTypeDef]
604
-
605
- class ToolResultBlockTypeDef(TypedDict):
606
- toolUseId: str
607
- content: Sequence[ToolResultContentBlockUnionTypeDef]
608
- status: NotRequired[ToolResultStatusType]
609
-
610
755
  class ConverseStreamOutputTypeDef(TypedDict):
611
756
  messageStart: NotRequired[MessageStartEventTypeDef]
612
757
  contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
@@ -620,6 +765,18 @@ class ConverseStreamOutputTypeDef(TypedDict):
620
765
  throttlingException: NotRequired[ThrottlingExceptionTypeDef]
621
766
  serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
622
767
 
768
+ class ConverseOutputTypeDef(TypedDict):
769
+ message: NotRequired[MessageOutputTypeDef]
770
+
771
+ class ToolResultBlockTypeDef(TypedDict):
772
+ toolUseId: str
773
+ content: Sequence[ToolResultContentBlockUnionTypeDef]
774
+ status: NotRequired[ToolResultStatusType]
775
+
776
+ class ConverseStreamResponseTypeDef(TypedDict):
777
+ stream: "EventStream[ConverseStreamOutputTypeDef]"
778
+ ResponseMetadata: ResponseMetadataTypeDef
779
+
623
780
  class ConverseResponseTypeDef(TypedDict):
624
781
  output: ConverseOutputTypeDef
625
782
  stopReason: StopReasonType
@@ -627,18 +784,16 @@ class ConverseResponseTypeDef(TypedDict):
627
784
  metrics: ConverseMetricsTypeDef
628
785
  additionalModelResponseFields: Dict[str, Any]
629
786
  trace: ConverseTraceTypeDef
787
+ performanceConfig: PerformanceConfigurationTypeDef
630
788
  ResponseMetadata: ResponseMetadataTypeDef
631
789
 
632
790
  ToolResultBlockUnionTypeDef = Union[ToolResultBlockTypeDef, ToolResultBlockOutputTypeDef]
633
791
 
634
- class ConverseStreamResponseTypeDef(TypedDict):
635
- stream: "EventStream[ConverseStreamOutputTypeDef]"
636
- ResponseMetadata: ResponseMetadataTypeDef
637
-
638
792
  class ContentBlockTypeDef(TypedDict):
639
793
  text: NotRequired[str]
640
794
  image: NotRequired[ImageBlockUnionTypeDef]
641
795
  document: NotRequired[DocumentBlockUnionTypeDef]
796
+ video: NotRequired[VideoBlockUnionTypeDef]
642
797
  toolUse: NotRequired[ToolUseBlockUnionTypeDef]
643
798
  toolResult: NotRequired[ToolResultBlockUnionTypeDef]
644
799
  guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
@@ -659,6 +814,8 @@ class ConverseStreamRequestRequestTypeDef(TypedDict):
659
814
  additionalModelRequestFields: NotRequired[Mapping[str, Any]]
660
815
  promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
661
816
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
817
+ requestMetadata: NotRequired[Mapping[str, str]]
818
+ performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
662
819
 
663
820
  MessageUnionTypeDef = Union[MessageTypeDef, MessageOutputTypeDef]
664
821
 
@@ -672,3 +829,5 @@ class ConverseRequestRequestTypeDef(TypedDict):
672
829
  additionalModelRequestFields: NotRequired[Mapping[str, Any]]
673
830
  promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
674
831
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
832
+ requestMetadata: NotRequired[Mapping[str, str]]
833
+ 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.71"
7
+ __version__ = "1.35.74"
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: types-boto3-bedrock-runtime
3
- Version: 1.35.71
4
- Summary: Type annotations for boto3 BedrockRuntime 1.35.71 service generated with mypy-boto3-builder 8.4.1
3
+ Version: 1.35.74
4
+ Summary: Type annotations for boto3 BedrockRuntime 1.35.74 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
@@ -9,7 +9,7 @@ License: MIT License
9
9
  Project-URL: Documentation, https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/
10
10
  Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
11
11
  Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
12
- Keywords: boto3 bedrock-runtime type-annotations botocore mypy typeshed autocomplete
12
+ Keywords: boto3 bedrock-runtime boto3-stubs type-annotations mypy typeshed autocomplete
13
13
  Classifier: Development Status :: 5 - Production/Stable
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: Environment :: Console
@@ -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.71](https://pypi.org/project/boto3/) compatible with
47
+ [boto3 BedrockRuntime 1.35.74](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/),
@@ -53,7 +53,7 @@ Type annotations for
53
53
  [pyright](https://github.com/microsoft/pyright) and other tools.
54
54
 
55
55
  Generated by
56
- [mypy-boto3-builder 8.4.1](https://github.com/youtype/mypy_boto3_builder).
56
+ [mypy-boto3-builder 8.5.0](https://github.com/youtype/mypy_boto3_builder).
57
57
 
58
58
  More information can be found on
59
59
  [types-boto3](https://pypi.org/project/types-boto3/) page and in
@@ -61,7 +61,7 @@ More information can be found on
61
61
 
62
62
  See how it helps you find and fix potential bugs:
63
63
 
64
- ![boto3-stubs demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
64
+ ![types-boto3 demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
65
65
 
66
66
  - [types-boto3-bedrock-runtime](#types-boto3-bedrock-runtime)
67
67
  - [How to install](#how-to-install)
@@ -76,8 +76,10 @@ See how it helps you find and fix potential bugs:
76
76
  - [Other IDEs](#other-ides)
77
77
  - [mypy](#mypy)
78
78
  - [pyright](#pyright)
79
+ - [Pylint compatibility](#pylint-compatibility)
79
80
  - [Explicit type annotations](#explicit-type-annotations)
80
81
  - [Client annotations](#client-annotations)
82
+ - [Paginators annotations](#paginators-annotations)
81
83
  - [Literals](#literals)
82
84
  - [Type definitions](#type-definitions)
83
85
  - [How it works](#how-it-works)
@@ -268,6 +270,31 @@ Optionally, you can install `types-boto3` to `typings` directory.
268
270
  Type checking should now work. No explicit type annotations required, write
269
271
  your `boto3` code as usual.
270
272
 
273
+ <a id="pylint-compatibility"></a>
274
+
275
+ ### Pylint compatibility
276
+
277
+ It is totally safe to use `TYPE_CHECKING` flag in order to avoid
278
+ `types-boto3-bedrock-runtime` dependency in production. However, there is an
279
+ issue in `pylint` that it complains about undefined variables. To fix it, set
280
+ all types to `object` in non-`TYPE_CHECKING` mode.
281
+
282
+ ```python
283
+ from typing import TYPE_CHECKING
284
+
285
+ if TYPE_CHECKING:
286
+ from types_boto3_ec2 import EC2Client, EC2ServiceResource
287
+ from types_boto3_ec2.waiters import BundleTaskCompleteWaiter
288
+ from types_boto3_ec2.paginators import DescribeVolumesPaginator
289
+ else:
290
+ EC2Client = object
291
+ EC2ServiceResource = object
292
+ BundleTaskCompleteWaiter = object
293
+ DescribeVolumesPaginator = object
294
+
295
+ ...
296
+ ```
297
+
271
298
  <a id="explicit-type-annotations"></a>
272
299
 
273
300
  ## Explicit type annotations
@@ -289,6 +316,26 @@ client: BedrockRuntimeClient = Session().client("bedrock-runtime")
289
316
  # now client usage is checked by mypy and IDE should provide code completion
290
317
  ```
291
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
+
292
339
  <a id="literals"></a>
293
340
 
294
341
  ### Literals
@@ -300,10 +347,10 @@ Full list of `BedrockRuntime` Literals can be found in
300
347
  [docs](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/).
301
348
 
302
349
  ```python
303
- from types_boto3_bedrock_runtime.literals import ConversationRoleType
350
+ from types_boto3_bedrock_runtime.literals import AsyncInvokeStatusType
304
351
 
305
352
 
306
- def check_value(value: ConversationRoleType) -> bool: ...
353
+ def check_value(value: AsyncInvokeStatusType) -> bool: ...
307
354
  ```
308
355
 
309
356
  <a id="type-definitions"></a>
@@ -0,0 +1,18 @@
1
+ types_boto3_bedrock_runtime/__init__.py,sha256=Mwpd9xKG3liMABQUjeJqrcCbwBgLo_Sz__t48x--KYY,684
2
+ types_boto3_bedrock_runtime/__init__.pyi,sha256=z3ZSV0fLVUZGq5g1mUjy-4IXEM_h2S05W0MTMQaUG78,683
3
+ types_boto3_bedrock_runtime/__main__.py,sha256=CQLxmJn2qnj6nFM7cIDmxwzwTQfovzWGe5D_GVVI4g0,980
4
+ types_boto3_bedrock_runtime/client.py,sha256=4Yo8rPiMrICJIifwj1qlEc4oWvmmkGJC2_YCq5f-zBU,9102
5
+ types_boto3_bedrock_runtime/client.pyi,sha256=RqTf0hyQkig2Cg1NdgezhVLeNgb3PE-WUYbx-TvpE2s,9098
6
+ types_boto3_bedrock_runtime/literals.py,sha256=dBuIMYufxOGhVe6eSzRgVJhUvxS0SxEwWLdUhNcvQRA,12672
7
+ types_boto3_bedrock_runtime/literals.pyi,sha256=BHOZTkCaiB6Zz5-__nFqA2ynON-2dGhrpXOQ8O1GTCw,12670
8
+ types_boto3_bedrock_runtime/paginator.py,sha256=kO2rc014ZBXybo7hHNZPhuFekfDiaG83JcvOKPqWhGQ,2221
9
+ types_boto3_bedrock_runtime/paginator.pyi,sha256=cHJiRKWIvQlRoxuf8VBCDYCbRzaITMOJ_ovFNICjavo,2216
10
+ types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ types_boto3_bedrock_runtime/type_defs.py,sha256=4aw7eLXRTZY2XKh9q2GLNtT5wwAx3I5sv2xvUAXi-Wc,27401
12
+ types_boto3_bedrock_runtime/type_defs.pyi,sha256=ccoe6O3xZ2ayT3z1kN79IWw4_eZdzSbZ1OjQcQntE_k,27290
13
+ types_boto3_bedrock_runtime/version.py,sha256=B0P5JUO-cREkwttMqs7oU9i3UOmgK6CWkZC0OK5p5h4,93
14
+ types_boto3_bedrock_runtime-1.35.74.dist-info/LICENSE,sha256=eQDadZQZ3vRCiNF510ZT4yJV2zgo4000AOBoDRZyvKg,1070
15
+ types_boto3_bedrock_runtime-1.35.74.dist-info/METADATA,sha256=O1XpfmjugH0qi0yWo8fCuHnwD5MwzJ1aocnnu1VNNWs,14469
16
+ types_boto3_bedrock_runtime-1.35.74.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
17
+ types_boto3_bedrock_runtime-1.35.74.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
18
+ types_boto3_bedrock_runtime-1.35.74.dist-info/RECORD,,
@@ -1,16 +0,0 @@
1
- types_boto3_bedrock_runtime/__init__.py,sha256=r-rq-o_jkunMs_VLIQoWdKyVFPBCgxAKEY5R7CAwylM,465
2
- types_boto3_bedrock_runtime/__init__.pyi,sha256=xwBsd5gEbvm2y_5yvAkZcnTKuHFx5vvj6iARjrcKJnQ,464
3
- types_boto3_bedrock_runtime/__main__.py,sha256=x3FZsxzpMvywQqKM3s48NudGzmW-neJOPdIWqXlzIH8,980
4
- types_boto3_bedrock_runtime/client.py,sha256=t5DH__TAJgbO4636F1M9vMhvLr_5hTCcxySnAxKEOj0,6744
5
- types_boto3_bedrock_runtime/client.pyi,sha256=XH77kX0Fkfhmmpb6SORoooMpVKopeoifuLCjcEyOiOw,6740
6
- types_boto3_bedrock_runtime/literals.py,sha256=TKYeOZcARFLBaAmE6o7ehDLXnZb40NPHBDqPARAD8Vo,11938
7
- types_boto3_bedrock_runtime/literals.pyi,sha256=kvweZ_nqO5W7MuypJ6pjZIFMd-H7IyV4JPj5wh6AYJw,11936
8
- types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- types_boto3_bedrock_runtime/type_defs.py,sha256=gLYICnPBU__45myOKfu4F9awnnmv443rX83ZfxsCMcg,22073
10
- types_boto3_bedrock_runtime/type_defs.pyi,sha256=1P13MrOA_Q_bmYiaRVyLbSlCepFDD-Dy5eFsIe7xlcY,21981
11
- types_boto3_bedrock_runtime/version.py,sha256=eIS36a5iw2-mD_eS7zeepUtx_w_DQOn6RiPaBDeB7EQ,93
12
- types_boto3_bedrock_runtime-1.35.71.dist-info/LICENSE,sha256=eQDadZQZ3vRCiNF510ZT4yJV2zgo4000AOBoDRZyvKg,1070
13
- types_boto3_bedrock_runtime-1.35.71.dist-info/METADATA,sha256=F4PYzz6t5UjtrRImWsG0bkF8XPATbf4uVffgrKq5d7s,13001
14
- types_boto3_bedrock_runtime-1.35.71.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
15
- types_boto3_bedrock_runtime-1.35.71.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
16
- types_boto3_bedrock_runtime-1.35.71.dist-info/RECORD,,