types-boto3-bedrock-runtime 1.35.74__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.
- types_boto3_bedrock_runtime/__main__.py +3 -3
- types_boto3_bedrock_runtime/literals.py +6 -0
- types_boto3_bedrock_runtime/literals.pyi +6 -0
- types_boto3_bedrock_runtime/type_defs.py +104 -24
- types_boto3_bedrock_runtime/type_defs.pyi +95 -21
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.35.74.dist-info → types_boto3_bedrock_runtime-1.35.75.dist-info}/METADATA +3 -3
- types_boto3_bedrock_runtime-1.35.75.dist-info/RECORD +18 -0
- types_boto3_bedrock_runtime-1.35.74.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.35.74.dist-info → types_boto3_bedrock_runtime-1.35.75.dist-info}/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.35.74.dist-info → types_boto3_bedrock_runtime-1.35.75.dist-info}/WHEEL +0 -0
- {types_boto3_bedrock_runtime-1.35.74.dist-info → types_boto3_bedrock_runtime-1.35.75.dist-info}/top_level.txt +0 -0
|
@@ -12,8 +12,8 @@ def print_info() -> None:
|
|
|
12
12
|
Print package info to stdout.
|
|
13
13
|
"""
|
|
14
14
|
print(
|
|
15
|
-
"Type annotations for boto3 BedrockRuntime 1.35.
|
|
16
|
-
"Version: 1.35.
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.35.75\n"
|
|
16
|
+
"Version: 1.35.75\n"
|
|
17
17
|
"Builder version: 8.5.0\n"
|
|
18
18
|
"Docs: https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#bedrockruntime\n"
|
|
@@ -26,7 +26,7 @@ def print_version() -> None:
|
|
|
26
26
|
"""
|
|
27
27
|
Print package version to stdout.
|
|
28
28
|
"""
|
|
29
|
-
print("1.35.
|
|
29
|
+
print("1.35.75")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -37,6 +37,8 @@ __all__ = (
|
|
|
37
37
|
"GuardrailContextualGroundingFilterTypeType",
|
|
38
38
|
"GuardrailContextualGroundingPolicyActionType",
|
|
39
39
|
"GuardrailConverseContentQualifierType",
|
|
40
|
+
"GuardrailConverseImageFormatType",
|
|
41
|
+
"GuardrailImageFormatType",
|
|
40
42
|
"GuardrailManagedWordTypeType",
|
|
41
43
|
"GuardrailPiiEntityTypeType",
|
|
42
44
|
"GuardrailSensitiveInformationPolicyActionType",
|
|
@@ -75,6 +77,8 @@ GuardrailContentSourceType = Literal["INPUT", "OUTPUT"]
|
|
|
75
77
|
GuardrailContextualGroundingFilterTypeType = Literal["GROUNDING", "RELEVANCE"]
|
|
76
78
|
GuardrailContextualGroundingPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
77
79
|
GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_content", "query"]
|
|
80
|
+
GuardrailConverseImageFormatType = Literal["jpeg", "png"]
|
|
81
|
+
GuardrailImageFormatType = Literal["jpeg", "png"]
|
|
78
82
|
GuardrailManagedWordTypeType = Literal["PROFANITY"]
|
|
79
83
|
GuardrailPiiEntityTypeType = Literal[
|
|
80
84
|
"ADDRESS",
|
|
@@ -173,6 +177,8 @@ ServiceName = Literal[
|
|
|
173
177
|
"bedrock",
|
|
174
178
|
"bedrock-agent",
|
|
175
179
|
"bedrock-agent-runtime",
|
|
180
|
+
"bedrock-data-automation",
|
|
181
|
+
"bedrock-data-automation-runtime",
|
|
176
182
|
"bedrock-runtime",
|
|
177
183
|
"billing",
|
|
178
184
|
"billingconductor",
|
|
@@ -36,6 +36,8 @@ __all__ = (
|
|
|
36
36
|
"GuardrailContextualGroundingFilterTypeType",
|
|
37
37
|
"GuardrailContextualGroundingPolicyActionType",
|
|
38
38
|
"GuardrailConverseContentQualifierType",
|
|
39
|
+
"GuardrailConverseImageFormatType",
|
|
40
|
+
"GuardrailImageFormatType",
|
|
39
41
|
"GuardrailManagedWordTypeType",
|
|
40
42
|
"GuardrailPiiEntityTypeType",
|
|
41
43
|
"GuardrailSensitiveInformationPolicyActionType",
|
|
@@ -73,6 +75,8 @@ GuardrailContentSourceType = Literal["INPUT", "OUTPUT"]
|
|
|
73
75
|
GuardrailContextualGroundingFilterTypeType = Literal["GROUNDING", "RELEVANCE"]
|
|
74
76
|
GuardrailContextualGroundingPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
75
77
|
GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_content", "query"]
|
|
78
|
+
GuardrailConverseImageFormatType = Literal["jpeg", "png"]
|
|
79
|
+
GuardrailImageFormatType = Literal["jpeg", "png"]
|
|
76
80
|
GuardrailManagedWordTypeType = Literal["PROFANITY"]
|
|
77
81
|
GuardrailPiiEntityTypeType = Literal[
|
|
78
82
|
"ADDRESS",
|
|
@@ -171,6 +175,8 @@ ServiceName = Literal[
|
|
|
171
175
|
"bedrock",
|
|
172
176
|
"bedrock-agent",
|
|
173
177
|
"bedrock-agent-runtime",
|
|
178
|
+
"bedrock-data-automation",
|
|
179
|
+
"bedrock-data-automation-runtime",
|
|
174
180
|
"bedrock-runtime",
|
|
175
181
|
"billing",
|
|
176
182
|
"billingconductor",
|
|
@@ -34,6 +34,8 @@ from .literals import (
|
|
|
34
34
|
GuardrailContextualGroundingFilterTypeType,
|
|
35
35
|
GuardrailContextualGroundingPolicyActionType,
|
|
36
36
|
GuardrailConverseContentQualifierType,
|
|
37
|
+
GuardrailConverseImageFormatType,
|
|
38
|
+
GuardrailImageFormatType,
|
|
37
39
|
GuardrailPiiEntityTypeType,
|
|
38
40
|
GuardrailSensitiveInformationPolicyActionType,
|
|
39
41
|
GuardrailStreamProcessingModeType,
|
|
@@ -97,11 +99,20 @@ __all__ = (
|
|
|
97
99
|
"GuardrailConverseContentBlockOutputTypeDef",
|
|
98
100
|
"GuardrailConverseContentBlockTypeDef",
|
|
99
101
|
"GuardrailConverseContentBlockUnionTypeDef",
|
|
102
|
+
"GuardrailConverseImageBlockOutputTypeDef",
|
|
103
|
+
"GuardrailConverseImageBlockTypeDef",
|
|
104
|
+
"GuardrailConverseImageBlockUnionTypeDef",
|
|
105
|
+
"GuardrailConverseImageSourceOutputTypeDef",
|
|
106
|
+
"GuardrailConverseImageSourceTypeDef",
|
|
107
|
+
"GuardrailConverseImageSourceUnionTypeDef",
|
|
100
108
|
"GuardrailConverseTextBlockOutputTypeDef",
|
|
101
109
|
"GuardrailConverseTextBlockTypeDef",
|
|
102
110
|
"GuardrailConverseTextBlockUnionTypeDef",
|
|
103
111
|
"GuardrailCoverageTypeDef",
|
|
104
112
|
"GuardrailCustomWordTypeDef",
|
|
113
|
+
"GuardrailImageBlockTypeDef",
|
|
114
|
+
"GuardrailImageCoverageTypeDef",
|
|
115
|
+
"GuardrailImageSourceTypeDef",
|
|
105
116
|
"GuardrailInvocationMetricsTypeDef",
|
|
106
117
|
"GuardrailManagedWordTypeDef",
|
|
107
118
|
"GuardrailOutputContentTypeDef",
|
|
@@ -141,6 +152,7 @@ __all__ = (
|
|
|
141
152
|
"PaginatorConfigTypeDef",
|
|
142
153
|
"PayloadPartTypeDef",
|
|
143
154
|
"PerformanceConfigurationTypeDef",
|
|
155
|
+
"PromptRouterTraceTypeDef",
|
|
144
156
|
"PromptVariableValuesTypeDef",
|
|
145
157
|
"ResponseMetadataTypeDef",
|
|
146
158
|
"ResponseStreamTypeDef",
|
|
@@ -306,6 +318,10 @@ class GuardrailStreamConfigurationTypeDef(TypedDict):
|
|
|
306
318
|
streamProcessingMode: NotRequired[GuardrailStreamProcessingModeType]
|
|
307
319
|
|
|
308
320
|
|
|
321
|
+
class PromptRouterTraceTypeDef(TypedDict):
|
|
322
|
+
invokedModelId: NotRequired[str]
|
|
323
|
+
|
|
324
|
+
|
|
309
325
|
DocumentSourceOutputTypeDef = TypedDict(
|
|
310
326
|
"DocumentSourceOutputTypeDef",
|
|
311
327
|
{
|
|
@@ -348,11 +364,24 @@ class GuardrailConverseTextBlockOutputTypeDef(TypedDict):
|
|
|
348
364
|
qualifiers: NotRequired[List[GuardrailConverseContentQualifierType]]
|
|
349
365
|
|
|
350
366
|
|
|
367
|
+
GuardrailConverseImageSourceOutputTypeDef = TypedDict(
|
|
368
|
+
"GuardrailConverseImageSourceOutputTypeDef",
|
|
369
|
+
{
|
|
370
|
+
"bytes": NotRequired[bytes],
|
|
371
|
+
},
|
|
372
|
+
)
|
|
373
|
+
|
|
374
|
+
|
|
351
375
|
class GuardrailConverseTextBlockTypeDef(TypedDict):
|
|
352
376
|
text: str
|
|
353
377
|
qualifiers: NotRequired[Sequence[GuardrailConverseContentQualifierType]]
|
|
354
378
|
|
|
355
379
|
|
|
380
|
+
class GuardrailImageCoverageTypeDef(TypedDict):
|
|
381
|
+
guarded: NotRequired[int]
|
|
382
|
+
total: NotRequired[int]
|
|
383
|
+
|
|
384
|
+
|
|
356
385
|
class GuardrailTextCharactersCoverageTypeDef(TypedDict):
|
|
357
386
|
guarded: NotRequired[int]
|
|
358
387
|
total: NotRequired[int]
|
|
@@ -475,6 +504,18 @@ DocumentSourceTypeDef = TypedDict(
|
|
|
475
504
|
"bytes": NotRequired[BlobTypeDef],
|
|
476
505
|
},
|
|
477
506
|
)
|
|
507
|
+
GuardrailConverseImageSourceTypeDef = TypedDict(
|
|
508
|
+
"GuardrailConverseImageSourceTypeDef",
|
|
509
|
+
{
|
|
510
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
511
|
+
},
|
|
512
|
+
)
|
|
513
|
+
GuardrailImageSourceTypeDef = TypedDict(
|
|
514
|
+
"GuardrailImageSourceTypeDef",
|
|
515
|
+
{
|
|
516
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
517
|
+
},
|
|
518
|
+
)
|
|
478
519
|
ImageSourceTypeDef = TypedDict(
|
|
479
520
|
"ImageSourceTypeDef",
|
|
480
521
|
{
|
|
@@ -524,10 +565,6 @@ DocumentBlockOutputTypeDef = TypedDict(
|
|
|
524
565
|
)
|
|
525
566
|
|
|
526
567
|
|
|
527
|
-
class GuardrailContentBlockTypeDef(TypedDict):
|
|
528
|
-
text: NotRequired[GuardrailTextBlockTypeDef]
|
|
529
|
-
|
|
530
|
-
|
|
531
568
|
class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
|
|
532
569
|
filters: List[GuardrailContentFilterTypeDef]
|
|
533
570
|
|
|
@@ -536,10 +573,13 @@ class GuardrailContextualGroundingPolicyAssessmentTypeDef(TypedDict):
|
|
|
536
573
|
filters: NotRequired[List[GuardrailContextualGroundingFilterTypeDef]]
|
|
537
574
|
|
|
538
575
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
576
|
+
GuardrailConverseImageBlockOutputTypeDef = TypedDict(
|
|
577
|
+
"GuardrailConverseImageBlockOutputTypeDef",
|
|
578
|
+
{
|
|
579
|
+
"format": GuardrailConverseImageFormatType,
|
|
580
|
+
"source": GuardrailConverseImageSourceOutputTypeDef,
|
|
581
|
+
},
|
|
582
|
+
)
|
|
543
583
|
GuardrailConverseTextBlockUnionTypeDef = Union[
|
|
544
584
|
GuardrailConverseTextBlockTypeDef, GuardrailConverseTextBlockOutputTypeDef
|
|
545
585
|
]
|
|
@@ -547,6 +587,7 @@ GuardrailConverseTextBlockUnionTypeDef = Union[
|
|
|
547
587
|
|
|
548
588
|
class GuardrailCoverageTypeDef(TypedDict):
|
|
549
589
|
textCharacters: NotRequired[GuardrailTextCharactersCoverageTypeDef]
|
|
590
|
+
images: NotRequired[GuardrailImageCoverageTypeDef]
|
|
550
591
|
|
|
551
592
|
|
|
552
593
|
class GuardrailWordPolicyAssessmentTypeDef(TypedDict):
|
|
@@ -668,6 +709,16 @@ class StartAsyncInvokeRequestRequestTypeDef(TypedDict):
|
|
|
668
709
|
|
|
669
710
|
|
|
670
711
|
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
712
|
+
GuardrailConverseImageSourceUnionTypeDef = Union[
|
|
713
|
+
GuardrailConverseImageSourceTypeDef, GuardrailConverseImageSourceOutputTypeDef
|
|
714
|
+
]
|
|
715
|
+
GuardrailImageBlockTypeDef = TypedDict(
|
|
716
|
+
"GuardrailImageBlockTypeDef",
|
|
717
|
+
{
|
|
718
|
+
"format": GuardrailImageFormatType,
|
|
719
|
+
"source": GuardrailImageSourceTypeDef,
|
|
720
|
+
},
|
|
721
|
+
)
|
|
671
722
|
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
672
723
|
|
|
673
724
|
|
|
@@ -681,15 +732,9 @@ class ContentBlockStartEventTypeDef(TypedDict):
|
|
|
681
732
|
contentBlockIndex: int
|
|
682
733
|
|
|
683
734
|
|
|
684
|
-
class
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
source: GuardrailContentSourceType
|
|
688
|
-
content: Sequence[GuardrailContentBlockTypeDef]
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
692
|
-
text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
|
|
735
|
+
class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
|
|
736
|
+
text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
|
|
737
|
+
image: NotRequired[GuardrailConverseImageBlockOutputTypeDef]
|
|
693
738
|
|
|
694
739
|
|
|
695
740
|
class GuardrailInvocationMetricsTypeDef(TypedDict):
|
|
@@ -733,6 +778,20 @@ DocumentBlockTypeDef = TypedDict(
|
|
|
733
778
|
"source": DocumentSourceUnionTypeDef,
|
|
734
779
|
},
|
|
735
780
|
)
|
|
781
|
+
GuardrailConverseImageBlockTypeDef = TypedDict(
|
|
782
|
+
"GuardrailConverseImageBlockTypeDef",
|
|
783
|
+
{
|
|
784
|
+
"format": GuardrailConverseImageFormatType,
|
|
785
|
+
"source": GuardrailConverseImageSourceUnionTypeDef,
|
|
786
|
+
},
|
|
787
|
+
)
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
class GuardrailContentBlockTypeDef(TypedDict):
|
|
791
|
+
text: NotRequired[GuardrailTextBlockTypeDef]
|
|
792
|
+
image: NotRequired[GuardrailImageBlockTypeDef]
|
|
793
|
+
|
|
794
|
+
|
|
736
795
|
ImageBlockTypeDef = TypedDict(
|
|
737
796
|
"ImageBlockTypeDef",
|
|
738
797
|
{
|
|
@@ -740,9 +799,6 @@ ImageBlockTypeDef = TypedDict(
|
|
|
740
799
|
"source": ImageSourceUnionTypeDef,
|
|
741
800
|
},
|
|
742
801
|
)
|
|
743
|
-
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
744
|
-
GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
|
|
745
|
-
]
|
|
746
802
|
|
|
747
803
|
|
|
748
804
|
class GuardrailAssessmentTypeDef(TypedDict):
|
|
@@ -777,12 +833,19 @@ class ToolConfigurationTypeDef(TypedDict):
|
|
|
777
833
|
|
|
778
834
|
|
|
779
835
|
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
780
|
-
|
|
836
|
+
GuardrailConverseImageBlockUnionTypeDef = Union[
|
|
837
|
+
GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
|
|
838
|
+
]
|
|
781
839
|
|
|
782
840
|
|
|
783
|
-
class
|
|
784
|
-
|
|
785
|
-
|
|
841
|
+
class ApplyGuardrailRequestRequestTypeDef(TypedDict):
|
|
842
|
+
guardrailIdentifier: str
|
|
843
|
+
guardrailVersion: str
|
|
844
|
+
source: GuardrailContentSourceType
|
|
845
|
+
content: Sequence[GuardrailContentBlockTypeDef]
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
786
849
|
|
|
787
850
|
|
|
788
851
|
class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
@@ -809,12 +872,19 @@ class ToolResultBlockOutputTypeDef(TypedDict):
|
|
|
809
872
|
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
810
873
|
|
|
811
874
|
|
|
875
|
+
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
876
|
+
text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
|
|
877
|
+
image: NotRequired[GuardrailConverseImageBlockUnionTypeDef]
|
|
878
|
+
|
|
879
|
+
|
|
812
880
|
class ConverseStreamTraceTypeDef(TypedDict):
|
|
813
881
|
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
882
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
814
883
|
|
|
815
884
|
|
|
816
885
|
class ConverseTraceTypeDef(TypedDict):
|
|
817
886
|
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
887
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
818
888
|
|
|
819
889
|
|
|
820
890
|
class ContentBlockOutputTypeDef(TypedDict):
|
|
@@ -835,6 +905,11 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
835
905
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
836
906
|
|
|
837
907
|
|
|
908
|
+
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
909
|
+
GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
|
|
910
|
+
]
|
|
911
|
+
|
|
912
|
+
|
|
838
913
|
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
839
914
|
usage: TokenUsageTypeDef
|
|
840
915
|
metrics: ConverseStreamMetricsTypeDef
|
|
@@ -852,6 +927,11 @@ ToolResultContentBlockUnionTypeDef = Union[
|
|
|
852
927
|
]
|
|
853
928
|
|
|
854
929
|
|
|
930
|
+
class SystemContentBlockTypeDef(TypedDict):
|
|
931
|
+
text: NotRequired[str]
|
|
932
|
+
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
933
|
+
|
|
934
|
+
|
|
855
935
|
class ConverseStreamOutputTypeDef(TypedDict):
|
|
856
936
|
messageStart: NotRequired[MessageStartEventTypeDef]
|
|
857
937
|
contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
|
|
@@ -34,6 +34,8 @@ from .literals import (
|
|
|
34
34
|
GuardrailContextualGroundingFilterTypeType,
|
|
35
35
|
GuardrailContextualGroundingPolicyActionType,
|
|
36
36
|
GuardrailConverseContentQualifierType,
|
|
37
|
+
GuardrailConverseImageFormatType,
|
|
38
|
+
GuardrailImageFormatType,
|
|
37
39
|
GuardrailPiiEntityTypeType,
|
|
38
40
|
GuardrailSensitiveInformationPolicyActionType,
|
|
39
41
|
GuardrailStreamProcessingModeType,
|
|
@@ -96,11 +98,20 @@ __all__ = (
|
|
|
96
98
|
"GuardrailConverseContentBlockOutputTypeDef",
|
|
97
99
|
"GuardrailConverseContentBlockTypeDef",
|
|
98
100
|
"GuardrailConverseContentBlockUnionTypeDef",
|
|
101
|
+
"GuardrailConverseImageBlockOutputTypeDef",
|
|
102
|
+
"GuardrailConverseImageBlockTypeDef",
|
|
103
|
+
"GuardrailConverseImageBlockUnionTypeDef",
|
|
104
|
+
"GuardrailConverseImageSourceOutputTypeDef",
|
|
105
|
+
"GuardrailConverseImageSourceTypeDef",
|
|
106
|
+
"GuardrailConverseImageSourceUnionTypeDef",
|
|
99
107
|
"GuardrailConverseTextBlockOutputTypeDef",
|
|
100
108
|
"GuardrailConverseTextBlockTypeDef",
|
|
101
109
|
"GuardrailConverseTextBlockUnionTypeDef",
|
|
102
110
|
"GuardrailCoverageTypeDef",
|
|
103
111
|
"GuardrailCustomWordTypeDef",
|
|
112
|
+
"GuardrailImageBlockTypeDef",
|
|
113
|
+
"GuardrailImageCoverageTypeDef",
|
|
114
|
+
"GuardrailImageSourceTypeDef",
|
|
104
115
|
"GuardrailInvocationMetricsTypeDef",
|
|
105
116
|
"GuardrailManagedWordTypeDef",
|
|
106
117
|
"GuardrailOutputContentTypeDef",
|
|
@@ -140,6 +151,7 @@ __all__ = (
|
|
|
140
151
|
"PaginatorConfigTypeDef",
|
|
141
152
|
"PayloadPartTypeDef",
|
|
142
153
|
"PerformanceConfigurationTypeDef",
|
|
154
|
+
"PromptRouterTraceTypeDef",
|
|
143
155
|
"PromptVariableValuesTypeDef",
|
|
144
156
|
"ResponseMetadataTypeDef",
|
|
145
157
|
"ResponseStreamTypeDef",
|
|
@@ -282,6 +294,9 @@ class GuardrailStreamConfigurationTypeDef(TypedDict):
|
|
|
282
294
|
trace: NotRequired[GuardrailTraceType]
|
|
283
295
|
streamProcessingMode: NotRequired[GuardrailStreamProcessingModeType]
|
|
284
296
|
|
|
297
|
+
class PromptRouterTraceTypeDef(TypedDict):
|
|
298
|
+
invokedModelId: NotRequired[str]
|
|
299
|
+
|
|
285
300
|
DocumentSourceOutputTypeDef = TypedDict(
|
|
286
301
|
"DocumentSourceOutputTypeDef",
|
|
287
302
|
{
|
|
@@ -319,10 +334,21 @@ class GuardrailConverseTextBlockOutputTypeDef(TypedDict):
|
|
|
319
334
|
text: str
|
|
320
335
|
qualifiers: NotRequired[List[GuardrailConverseContentQualifierType]]
|
|
321
336
|
|
|
337
|
+
GuardrailConverseImageSourceOutputTypeDef = TypedDict(
|
|
338
|
+
"GuardrailConverseImageSourceOutputTypeDef",
|
|
339
|
+
{
|
|
340
|
+
"bytes": NotRequired[bytes],
|
|
341
|
+
},
|
|
342
|
+
)
|
|
343
|
+
|
|
322
344
|
class GuardrailConverseTextBlockTypeDef(TypedDict):
|
|
323
345
|
text: str
|
|
324
346
|
qualifiers: NotRequired[Sequence[GuardrailConverseContentQualifierType]]
|
|
325
347
|
|
|
348
|
+
class GuardrailImageCoverageTypeDef(TypedDict):
|
|
349
|
+
guarded: NotRequired[int]
|
|
350
|
+
total: NotRequired[int]
|
|
351
|
+
|
|
326
352
|
class GuardrailTextCharactersCoverageTypeDef(TypedDict):
|
|
327
353
|
guarded: NotRequired[int]
|
|
328
354
|
total: NotRequired[int]
|
|
@@ -428,6 +454,18 @@ DocumentSourceTypeDef = TypedDict(
|
|
|
428
454
|
"bytes": NotRequired[BlobTypeDef],
|
|
429
455
|
},
|
|
430
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
|
+
)
|
|
431
469
|
ImageSourceTypeDef = TypedDict(
|
|
432
470
|
"ImageSourceTypeDef",
|
|
433
471
|
{
|
|
@@ -471,24 +509,26 @@ DocumentBlockOutputTypeDef = TypedDict(
|
|
|
471
509
|
},
|
|
472
510
|
)
|
|
473
511
|
|
|
474
|
-
class GuardrailContentBlockTypeDef(TypedDict):
|
|
475
|
-
text: NotRequired[GuardrailTextBlockTypeDef]
|
|
476
|
-
|
|
477
512
|
class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
|
|
478
513
|
filters: List[GuardrailContentFilterTypeDef]
|
|
479
514
|
|
|
480
515
|
class GuardrailContextualGroundingPolicyAssessmentTypeDef(TypedDict):
|
|
481
516
|
filters: NotRequired[List[GuardrailContextualGroundingFilterTypeDef]]
|
|
482
517
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
518
|
+
GuardrailConverseImageBlockOutputTypeDef = TypedDict(
|
|
519
|
+
"GuardrailConverseImageBlockOutputTypeDef",
|
|
520
|
+
{
|
|
521
|
+
"format": GuardrailConverseImageFormatType,
|
|
522
|
+
"source": GuardrailConverseImageSourceOutputTypeDef,
|
|
523
|
+
},
|
|
524
|
+
)
|
|
486
525
|
GuardrailConverseTextBlockUnionTypeDef = Union[
|
|
487
526
|
GuardrailConverseTextBlockTypeDef, GuardrailConverseTextBlockOutputTypeDef
|
|
488
527
|
]
|
|
489
528
|
|
|
490
529
|
class GuardrailCoverageTypeDef(TypedDict):
|
|
491
530
|
textCharacters: NotRequired[GuardrailTextCharactersCoverageTypeDef]
|
|
531
|
+
images: NotRequired[GuardrailImageCoverageTypeDef]
|
|
492
532
|
|
|
493
533
|
class GuardrailWordPolicyAssessmentTypeDef(TypedDict):
|
|
494
534
|
customWords: List[GuardrailCustomWordTypeDef]
|
|
@@ -596,6 +636,16 @@ class StartAsyncInvokeRequestRequestTypeDef(TypedDict):
|
|
|
596
636
|
tags: NotRequired[Sequence[TagTypeDef]]
|
|
597
637
|
|
|
598
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
|
+
)
|
|
599
649
|
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
600
650
|
|
|
601
651
|
class ContentBlockDeltaEventTypeDef(TypedDict):
|
|
@@ -606,14 +656,9 @@ class ContentBlockStartEventTypeDef(TypedDict):
|
|
|
606
656
|
start: ContentBlockStartTypeDef
|
|
607
657
|
contentBlockIndex: int
|
|
608
658
|
|
|
609
|
-
class
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
source: GuardrailContentSourceType
|
|
613
|
-
content: Sequence[GuardrailContentBlockTypeDef]
|
|
614
|
-
|
|
615
|
-
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
616
|
-
text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
|
|
659
|
+
class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
|
|
660
|
+
text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
|
|
661
|
+
image: NotRequired[GuardrailConverseImageBlockOutputTypeDef]
|
|
617
662
|
|
|
618
663
|
class GuardrailInvocationMetricsTypeDef(TypedDict):
|
|
619
664
|
guardrailProcessingLatency: NotRequired[int]
|
|
@@ -651,6 +696,18 @@ DocumentBlockTypeDef = TypedDict(
|
|
|
651
696
|
"source": DocumentSourceUnionTypeDef,
|
|
652
697
|
},
|
|
653
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
|
+
|
|
654
711
|
ImageBlockTypeDef = TypedDict(
|
|
655
712
|
"ImageBlockTypeDef",
|
|
656
713
|
{
|
|
@@ -658,9 +715,6 @@ ImageBlockTypeDef = TypedDict(
|
|
|
658
715
|
"source": ImageSourceUnionTypeDef,
|
|
659
716
|
},
|
|
660
717
|
)
|
|
661
|
-
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
662
|
-
GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
|
|
663
|
-
]
|
|
664
718
|
|
|
665
719
|
class GuardrailAssessmentTypeDef(TypedDict):
|
|
666
720
|
topicPolicy: NotRequired[GuardrailTopicPolicyAssessmentTypeDef]
|
|
@@ -690,11 +744,17 @@ class ToolConfigurationTypeDef(TypedDict):
|
|
|
690
744
|
toolChoice: NotRequired[ToolChoiceTypeDef]
|
|
691
745
|
|
|
692
746
|
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
693
|
-
|
|
747
|
+
GuardrailConverseImageBlockUnionTypeDef = Union[
|
|
748
|
+
GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
|
|
749
|
+
]
|
|
694
750
|
|
|
695
|
-
class
|
|
696
|
-
|
|
697
|
-
|
|
751
|
+
class ApplyGuardrailRequestRequestTypeDef(TypedDict):
|
|
752
|
+
guardrailIdentifier: str
|
|
753
|
+
guardrailVersion: str
|
|
754
|
+
source: GuardrailContentSourceType
|
|
755
|
+
content: Sequence[GuardrailContentBlockTypeDef]
|
|
756
|
+
|
|
757
|
+
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
698
758
|
|
|
699
759
|
class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
700
760
|
usage: GuardrailUsageTypeDef
|
|
@@ -716,11 +776,17 @@ class ToolResultBlockOutputTypeDef(TypedDict):
|
|
|
716
776
|
|
|
717
777
|
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
718
778
|
|
|
779
|
+
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
780
|
+
text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
|
|
781
|
+
image: NotRequired[GuardrailConverseImageBlockUnionTypeDef]
|
|
782
|
+
|
|
719
783
|
class ConverseStreamTraceTypeDef(TypedDict):
|
|
720
784
|
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
785
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
721
786
|
|
|
722
787
|
class ConverseTraceTypeDef(TypedDict):
|
|
723
788
|
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
789
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
724
790
|
|
|
725
791
|
class ContentBlockOutputTypeDef(TypedDict):
|
|
726
792
|
text: NotRequired[str]
|
|
@@ -738,6 +804,10 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
738
804
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
739
805
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
740
806
|
|
|
807
|
+
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
808
|
+
GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
|
|
809
|
+
]
|
|
810
|
+
|
|
741
811
|
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
742
812
|
usage: TokenUsageTypeDef
|
|
743
813
|
metrics: ConverseStreamMetricsTypeDef
|
|
@@ -752,6 +822,10 @@ ToolResultContentBlockUnionTypeDef = Union[
|
|
|
752
822
|
ToolResultContentBlockTypeDef, ToolResultContentBlockOutputTypeDef
|
|
753
823
|
]
|
|
754
824
|
|
|
825
|
+
class SystemContentBlockTypeDef(TypedDict):
|
|
826
|
+
text: NotRequired[str]
|
|
827
|
+
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
828
|
+
|
|
755
829
|
class ConverseStreamOutputTypeDef(TypedDict):
|
|
756
830
|
messageStart: NotRequired[MessageStartEventTypeDef]
|
|
757
831
|
contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.35.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.35.
|
|
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
|

|
|
45
45
|
|
|
46
46
|
Type annotations for
|
|
47
|
-
[boto3 BedrockRuntime 1.35.
|
|
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/),
|
|
@@ -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=pOE7ilNAocy9y2vsOcxhSAnZiUWWI5RNjVEagd_qQK0,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=pEHo0PsWMaLPmUpYOGPWef6oymDgoECD3NE8-j8I9Yo,12922
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=7jwEumw_k0d90wN7jG6enrZ6cogB6qdTz1iCLTjavSo,12920
|
|
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=suCzSWyFer7PQxrTzC1b3od-nQ0OCNluU4yLQ_q--0o,29763
|
|
12
|
+
types_boto3_bedrock_runtime/type_defs.pyi,sha256=m8hhebRaJtE9eBn40G8RkT9LlhWAlOO7gCQqtMaQgis,29646
|
|
13
|
+
types_boto3_bedrock_runtime/version.py,sha256=FzmLtS1ahLBp0wT2VFjMUO6bFICA23-GBxxyVwGf7Oo,93
|
|
14
|
+
types_boto3_bedrock_runtime-1.35.75.dist-info/LICENSE,sha256=eQDadZQZ3vRCiNF510ZT4yJV2zgo4000AOBoDRZyvKg,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.35.75.dist-info/METADATA,sha256=cSXeaxAwgSGlENb8YA3aKXOtG4tf7Q19Oe65p8OSTz0,14469
|
|
16
|
+
types_boto3_bedrock_runtime-1.35.75.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.35.75.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.35.75.dist-info/RECORD,,
|
|
@@ -1,18 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|