types-boto3-bedrock-runtime 1.40.62__py3-none-any.whl → 1.41.0__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 +4 -4
- types_boto3_bedrock_runtime/client.py +14 -18
- types_boto3_bedrock_runtime/client.pyi +14 -18
- types_boto3_bedrock_runtime/literals.py +6 -1
- types_boto3_bedrock_runtime/literals.pyi +6 -1
- types_boto3_bedrock_runtime/type_defs.py +106 -52
- types_boto3_bedrock_runtime/type_defs.pyi +101 -52
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.40.62.dist-info → types_boto3_bedrock_runtime-1.41.0.dist-info}/METADATA +11 -25
- types_boto3_bedrock_runtime-1.41.0.dist-info/RECORD +18 -0
- types_boto3_bedrock_runtime-1.40.62.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.40.62.dist-info → types_boto3_bedrock_runtime-1.41.0.dist-info}/WHEEL +0 -0
- {types_boto3_bedrock_runtime-1.40.62.dist-info → types_boto3_bedrock_runtime-1.41.0.dist-info}/licenses/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.40.62.dist-info → types_boto3_bedrock_runtime-1.41.0.dist-info}/top_level.txt +0 -0
|
@@ -17,6 +17,7 @@ Usage::
|
|
|
17
17
|
from __future__ import annotations
|
|
18
18
|
|
|
19
19
|
import sys
|
|
20
|
+
from collections.abc import Mapping, Sequence
|
|
20
21
|
from datetime import datetime
|
|
21
22
|
from typing import IO, Any, Union
|
|
22
23
|
|
|
@@ -49,19 +50,15 @@ from .literals import (
|
|
|
49
50
|
GuardrailWordPolicyActionType,
|
|
50
51
|
ImageFormatType,
|
|
51
52
|
PerformanceConfigLatencyType,
|
|
53
|
+
ServiceTierTypeType,
|
|
52
54
|
SortOrderType,
|
|
53
55
|
StopReasonType,
|
|
54
56
|
ToolResultStatusType,
|
|
57
|
+
ToolUseTypeType,
|
|
55
58
|
TraceType,
|
|
56
59
|
VideoFormatType,
|
|
57
60
|
)
|
|
58
61
|
|
|
59
|
-
if sys.version_info >= (3, 9):
|
|
60
|
-
from builtins import dict as Dict
|
|
61
|
-
from builtins import list as List
|
|
62
|
-
from collections.abc import Mapping, Sequence
|
|
63
|
-
else:
|
|
64
|
-
from typing import Dict, List, Mapping, Sequence
|
|
65
62
|
if sys.version_info >= (3, 12):
|
|
66
63
|
from typing import Literal, NotRequired, TypedDict
|
|
67
64
|
else:
|
|
@@ -217,6 +214,12 @@ __all__ = (
|
|
|
217
214
|
"ResponseMetadataTypeDef",
|
|
218
215
|
"ResponseStreamTypeDef",
|
|
219
216
|
"S3LocationTypeDef",
|
|
217
|
+
"SearchResultBlockOutputTypeDef",
|
|
218
|
+
"SearchResultBlockTypeDef",
|
|
219
|
+
"SearchResultBlockUnionTypeDef",
|
|
220
|
+
"SearchResultContentBlockTypeDef",
|
|
221
|
+
"SearchResultLocationTypeDef",
|
|
222
|
+
"ServiceTierTypeDef",
|
|
220
223
|
"ServiceUnavailableExceptionTypeDef",
|
|
221
224
|
"SpecificToolChoiceTypeDef",
|
|
222
225
|
"StartAsyncInvokeRequestTypeDef",
|
|
@@ -275,7 +278,7 @@ class GuardrailUsageTypeDef(TypedDict):
|
|
|
275
278
|
class ResponseMetadataTypeDef(TypedDict):
|
|
276
279
|
RequestId: str
|
|
277
280
|
HTTPStatusCode: int
|
|
278
|
-
HTTPHeaders:
|
|
281
|
+
HTTPHeaders: dict[str, str]
|
|
279
282
|
RetryAttempts: int
|
|
280
283
|
HostId: NotRequired[str]
|
|
281
284
|
|
|
@@ -323,6 +326,12 @@ class DocumentPageLocationTypeDef(TypedDict):
|
|
|
323
326
|
end: NotRequired[int]
|
|
324
327
|
|
|
325
328
|
|
|
329
|
+
class SearchResultLocationTypeDef(TypedDict):
|
|
330
|
+
searchResultIndex: NotRequired[int]
|
|
331
|
+
start: NotRequired[int]
|
|
332
|
+
end: NotRequired[int]
|
|
333
|
+
|
|
334
|
+
|
|
326
335
|
class WebLocationTypeDef(TypedDict):
|
|
327
336
|
url: NotRequired[str]
|
|
328
337
|
domain: NotRequired[str]
|
|
@@ -361,8 +370,8 @@ ToolUseBlockOutputTypeDef = TypedDict(
|
|
|
361
370
|
{
|
|
362
371
|
"toolUseId": str,
|
|
363
372
|
"name": str,
|
|
364
|
-
"input":
|
|
365
|
-
"type": NotRequired[
|
|
373
|
+
"input": dict[str, Any],
|
|
374
|
+
"type": NotRequired[ToolUseTypeType],
|
|
366
375
|
},
|
|
367
376
|
)
|
|
368
377
|
ToolResultBlockStartTypeDef = TypedDict(
|
|
@@ -378,7 +387,7 @@ ToolUseBlockStartTypeDef = TypedDict(
|
|
|
378
387
|
{
|
|
379
388
|
"toolUseId": str,
|
|
380
389
|
"name": str,
|
|
381
|
-
"type": NotRequired[
|
|
390
|
+
"type": NotRequired[ToolUseTypeType],
|
|
382
391
|
},
|
|
383
392
|
)
|
|
384
393
|
|
|
@@ -412,6 +421,14 @@ class PromptVariableValuesTypeDef(TypedDict):
|
|
|
412
421
|
text: NotRequired[str]
|
|
413
422
|
|
|
414
423
|
|
|
424
|
+
ServiceTierTypeDef = TypedDict(
|
|
425
|
+
"ServiceTierTypeDef",
|
|
426
|
+
{
|
|
427
|
+
"type": ServiceTierTypeType,
|
|
428
|
+
},
|
|
429
|
+
)
|
|
430
|
+
|
|
431
|
+
|
|
415
432
|
class TokenUsageTypeDef(TypedDict):
|
|
416
433
|
inputTokens: int
|
|
417
434
|
outputTokens: int
|
|
@@ -434,7 +451,7 @@ class MessageStartEventTypeDef(TypedDict):
|
|
|
434
451
|
|
|
435
452
|
class MessageStopEventTypeDef(TypedDict):
|
|
436
453
|
stopReason: StopReasonType
|
|
437
|
-
additionalModelResponseFields: NotRequired[
|
|
454
|
+
additionalModelResponseFields: NotRequired[dict[str, Any]]
|
|
438
455
|
|
|
439
456
|
|
|
440
457
|
class ModelStreamErrorExceptionTypeDef(TypedDict):
|
|
@@ -522,7 +539,7 @@ GuardrailContextualGroundingFilterTypeDef = TypedDict(
|
|
|
522
539
|
|
|
523
540
|
class GuardrailConverseTextBlockOutputTypeDef(TypedDict):
|
|
524
541
|
text: str
|
|
525
|
-
qualifiers: NotRequired[
|
|
542
|
+
qualifiers: NotRequired[list[GuardrailConverseContentQualifierType]]
|
|
526
543
|
|
|
527
544
|
|
|
528
545
|
GuardrailConverseImageSourceOutputTypeDef = TypedDict(
|
|
@@ -617,6 +634,10 @@ class ReasoningTextBlockTypeDef(TypedDict):
|
|
|
617
634
|
signature: NotRequired[str]
|
|
618
635
|
|
|
619
636
|
|
|
637
|
+
class SearchResultContentBlockTypeDef(TypedDict):
|
|
638
|
+
text: str
|
|
639
|
+
|
|
640
|
+
|
|
620
641
|
class SpecificToolChoiceTypeDef(TypedDict):
|
|
621
642
|
name: str
|
|
622
643
|
|
|
@@ -640,7 +661,7 @@ ToolUseBlockTypeDef = TypedDict(
|
|
|
640
661
|
"toolUseId": str,
|
|
641
662
|
"name": str,
|
|
642
663
|
"input": Mapping[str, Any],
|
|
643
|
-
"type": NotRequired[
|
|
664
|
+
"type": NotRequired[ToolUseTypeType],
|
|
644
665
|
},
|
|
645
666
|
)
|
|
646
667
|
|
|
@@ -654,6 +675,7 @@ class InvokeModelResponseTypeDef(TypedDict):
|
|
|
654
675
|
body: StreamingBody
|
|
655
676
|
contentType: str
|
|
656
677
|
performanceConfigLatency: PerformanceConfigLatencyType
|
|
678
|
+
serviceTier: ServiceTierTypeType
|
|
657
679
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
658
680
|
|
|
659
681
|
|
|
@@ -695,6 +717,7 @@ class InvokeModelRequestTypeDef(TypedDict):
|
|
|
695
717
|
guardrailIdentifier: NotRequired[str]
|
|
696
718
|
guardrailVersion: NotRequired[str]
|
|
697
719
|
performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
|
|
720
|
+
serviceTier: NotRequired[ServiceTierTypeType]
|
|
698
721
|
|
|
699
722
|
|
|
700
723
|
class InvokeModelTokensRequestTypeDef(TypedDict):
|
|
@@ -710,6 +733,7 @@ class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
|
|
|
710
733
|
guardrailIdentifier: NotRequired[str]
|
|
711
734
|
guardrailVersion: NotRequired[str]
|
|
712
735
|
performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
|
|
736
|
+
serviceTier: NotRequired[ServiceTierTypeType]
|
|
713
737
|
|
|
714
738
|
|
|
715
739
|
class CitationLocationTypeDef(TypedDict):
|
|
@@ -717,6 +741,7 @@ class CitationLocationTypeDef(TypedDict):
|
|
|
717
741
|
documentChar: NotRequired[DocumentCharLocationTypeDef]
|
|
718
742
|
documentPage: NotRequired[DocumentPageLocationTypeDef]
|
|
719
743
|
documentChunk: NotRequired[DocumentChunkLocationTypeDef]
|
|
744
|
+
searchResultLocation: NotRequired[SearchResultLocationTypeDef]
|
|
720
745
|
|
|
721
746
|
|
|
722
747
|
class ContentBlockStartTypeDef(TypedDict):
|
|
@@ -730,7 +755,7 @@ DocumentSourceOutputTypeDef = TypedDict(
|
|
|
730
755
|
"bytes": NotRequired[bytes],
|
|
731
756
|
"s3Location": NotRequired[S3LocationTypeDef],
|
|
732
757
|
"text": NotRequired[str],
|
|
733
|
-
"content": NotRequired[
|
|
758
|
+
"content": NotRequired[list[DocumentContentBlockTypeDef]],
|
|
734
759
|
},
|
|
735
760
|
)
|
|
736
761
|
DocumentSourceTypeDef = TypedDict(
|
|
@@ -774,30 +799,30 @@ GuardrailAutomatedReasoningLogicWarningTypeDef = TypedDict(
|
|
|
774
799
|
"GuardrailAutomatedReasoningLogicWarningTypeDef",
|
|
775
800
|
{
|
|
776
801
|
"type": NotRequired[GuardrailAutomatedReasoningLogicWarningTypeType],
|
|
777
|
-
"premises": NotRequired[
|
|
778
|
-
"claims": NotRequired[
|
|
802
|
+
"premises": NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]],
|
|
803
|
+
"claims": NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]],
|
|
779
804
|
},
|
|
780
805
|
)
|
|
781
806
|
|
|
782
807
|
|
|
783
808
|
class GuardrailAutomatedReasoningScenarioTypeDef(TypedDict):
|
|
784
|
-
statements: NotRequired[
|
|
809
|
+
statements: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
785
810
|
|
|
786
811
|
|
|
787
812
|
class GuardrailAutomatedReasoningTranslationTypeDef(TypedDict):
|
|
788
|
-
premises: NotRequired[
|
|
789
|
-
claims: NotRequired[
|
|
790
|
-
untranslatedPremises: NotRequired[
|
|
791
|
-
untranslatedClaims: NotRequired[
|
|
813
|
+
premises: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
814
|
+
claims: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
815
|
+
untranslatedPremises: NotRequired[list[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
|
|
816
|
+
untranslatedClaims: NotRequired[list[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
|
|
792
817
|
confidence: NotRequired[float]
|
|
793
818
|
|
|
794
819
|
|
|
795
820
|
class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
|
|
796
|
-
filters:
|
|
821
|
+
filters: list[GuardrailContentFilterTypeDef]
|
|
797
822
|
|
|
798
823
|
|
|
799
824
|
class GuardrailContextualGroundingPolicyAssessmentTypeDef(TypedDict):
|
|
800
|
-
filters: NotRequired[
|
|
825
|
+
filters: NotRequired[list[GuardrailContextualGroundingFilterTypeDef]]
|
|
801
826
|
|
|
802
827
|
|
|
803
828
|
GuardrailConverseImageBlockOutputTypeDef = TypedDict(
|
|
@@ -818,17 +843,17 @@ class GuardrailCoverageTypeDef(TypedDict):
|
|
|
818
843
|
|
|
819
844
|
|
|
820
845
|
class GuardrailWordPolicyAssessmentTypeDef(TypedDict):
|
|
821
|
-
customWords:
|
|
822
|
-
managedWordLists:
|
|
846
|
+
customWords: list[GuardrailCustomWordTypeDef]
|
|
847
|
+
managedWordLists: list[GuardrailManagedWordTypeDef]
|
|
823
848
|
|
|
824
849
|
|
|
825
850
|
class GuardrailSensitiveInformationPolicyAssessmentTypeDef(TypedDict):
|
|
826
|
-
piiEntities:
|
|
827
|
-
regexes:
|
|
851
|
+
piiEntities: list[GuardrailPiiEntityFilterTypeDef]
|
|
852
|
+
regexes: list[GuardrailRegexFilterTypeDef]
|
|
828
853
|
|
|
829
854
|
|
|
830
855
|
class GuardrailTopicPolicyAssessmentTypeDef(TypedDict):
|
|
831
|
-
topics:
|
|
856
|
+
topics: list[GuardrailTopicTypeDef]
|
|
832
857
|
|
|
833
858
|
|
|
834
859
|
class InvokeModelWithBidirectionalStreamOutputTypeDef(TypedDict):
|
|
@@ -880,6 +905,20 @@ class ReasoningContentBlockTypeDef(TypedDict):
|
|
|
880
905
|
redactedContent: NotRequired[BlobTypeDef]
|
|
881
906
|
|
|
882
907
|
|
|
908
|
+
class SearchResultBlockOutputTypeDef(TypedDict):
|
|
909
|
+
source: str
|
|
910
|
+
title: str
|
|
911
|
+
content: list[SearchResultContentBlockTypeDef]
|
|
912
|
+
citations: NotRequired[CitationsConfigTypeDef]
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
class SearchResultBlockTypeDef(TypedDict):
|
|
916
|
+
source: str
|
|
917
|
+
title: str
|
|
918
|
+
content: Sequence[SearchResultContentBlockTypeDef]
|
|
919
|
+
citations: NotRequired[CitationsConfigTypeDef]
|
|
920
|
+
|
|
921
|
+
|
|
883
922
|
ToolChoiceTypeDef = TypedDict(
|
|
884
923
|
"ToolChoiceTypeDef",
|
|
885
924
|
{
|
|
@@ -950,19 +989,22 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
950
989
|
|
|
951
990
|
class CitationOutputTypeDef(TypedDict):
|
|
952
991
|
title: NotRequired[str]
|
|
953
|
-
|
|
992
|
+
source: NotRequired[str]
|
|
993
|
+
sourceContent: NotRequired[list[CitationSourceContentTypeDef]]
|
|
954
994
|
location: NotRequired[CitationLocationTypeDef]
|
|
955
995
|
|
|
956
996
|
|
|
957
997
|
class CitationTypeDef(TypedDict):
|
|
958
998
|
title: NotRequired[str]
|
|
999
|
+
source: NotRequired[str]
|
|
959
1000
|
sourceContent: NotRequired[Sequence[CitationSourceContentTypeDef]]
|
|
960
1001
|
location: NotRequired[CitationLocationTypeDef]
|
|
961
1002
|
|
|
962
1003
|
|
|
963
1004
|
class CitationsDeltaTypeDef(TypedDict):
|
|
964
1005
|
title: NotRequired[str]
|
|
965
|
-
|
|
1006
|
+
source: NotRequired[str]
|
|
1007
|
+
sourceContent: NotRequired[list[CitationSourceContentDeltaTypeDef]]
|
|
966
1008
|
location: NotRequired[CitationLocationTypeDef]
|
|
967
1009
|
|
|
968
1010
|
|
|
@@ -1002,13 +1044,13 @@ VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
|
1002
1044
|
|
|
1003
1045
|
class GuardrailAutomatedReasoningImpossibleFindingTypeDef(TypedDict):
|
|
1004
1046
|
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
1005
|
-
contradictingRules: NotRequired[
|
|
1047
|
+
contradictingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
1006
1048
|
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
1007
1049
|
|
|
1008
1050
|
|
|
1009
1051
|
class GuardrailAutomatedReasoningInvalidFindingTypeDef(TypedDict):
|
|
1010
1052
|
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
1011
|
-
contradictingRules: NotRequired[
|
|
1053
|
+
contradictingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
1012
1054
|
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
1013
1055
|
|
|
1014
1056
|
|
|
@@ -1020,13 +1062,13 @@ class GuardrailAutomatedReasoningSatisfiableFindingTypeDef(TypedDict):
|
|
|
1020
1062
|
|
|
1021
1063
|
|
|
1022
1064
|
class GuardrailAutomatedReasoningTranslationOptionTypeDef(TypedDict):
|
|
1023
|
-
translations: NotRequired[
|
|
1065
|
+
translations: NotRequired[list[GuardrailAutomatedReasoningTranslationTypeDef]]
|
|
1024
1066
|
|
|
1025
1067
|
|
|
1026
1068
|
class GuardrailAutomatedReasoningValidFindingTypeDef(TypedDict):
|
|
1027
1069
|
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
1028
1070
|
claimsTrueScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
|
|
1029
|
-
supportingRules: NotRequired[
|
|
1071
|
+
supportingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
1030
1072
|
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
1031
1073
|
|
|
1032
1074
|
|
|
@@ -1050,12 +1092,14 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
|
1050
1092
|
body: EventStream[ResponseStreamTypeDef]
|
|
1051
1093
|
contentType: str
|
|
1052
1094
|
performanceConfigLatency: PerformanceConfigLatencyType
|
|
1095
|
+
serviceTier: ServiceTierTypeType
|
|
1053
1096
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
1054
1097
|
|
|
1055
1098
|
|
|
1056
1099
|
ReasoningContentBlockUnionTypeDef = Union[
|
|
1057
1100
|
ReasoningContentBlockTypeDef, ReasoningContentBlockOutputTypeDef
|
|
1058
1101
|
]
|
|
1102
|
+
SearchResultBlockUnionTypeDef = Union[SearchResultBlockTypeDef, SearchResultBlockOutputTypeDef]
|
|
1059
1103
|
|
|
1060
1104
|
|
|
1061
1105
|
class ToolTypeDef(TypedDict):
|
|
@@ -1065,7 +1109,7 @@ class ToolTypeDef(TypedDict):
|
|
|
1065
1109
|
|
|
1066
1110
|
|
|
1067
1111
|
class ListAsyncInvokesResponseTypeDef(TypedDict):
|
|
1068
|
-
asyncInvokeSummaries:
|
|
1112
|
+
asyncInvokeSummaries: list[AsyncInvokeSummaryTypeDef]
|
|
1069
1113
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
1070
1114
|
nextToken: NotRequired[str]
|
|
1071
1115
|
|
|
@@ -1090,8 +1134,8 @@ class GuardrailContentBlockTypeDef(TypedDict):
|
|
|
1090
1134
|
|
|
1091
1135
|
|
|
1092
1136
|
class CitationsContentBlockOutputTypeDef(TypedDict):
|
|
1093
|
-
content: NotRequired[
|
|
1094
|
-
citations: NotRequired[
|
|
1137
|
+
content: NotRequired[list[CitationGeneratedContentTypeDef]]
|
|
1138
|
+
citations: NotRequired[list[CitationOutputTypeDef]]
|
|
1095
1139
|
|
|
1096
1140
|
|
|
1097
1141
|
CitationUnionTypeDef = Union[CitationTypeDef, CitationOutputTypeDef]
|
|
@@ -1100,7 +1144,7 @@ CitationUnionTypeDef = Union[CitationTypeDef, CitationOutputTypeDef]
|
|
|
1100
1144
|
class ContentBlockDeltaTypeDef(TypedDict):
|
|
1101
1145
|
text: NotRequired[str]
|
|
1102
1146
|
toolUse: NotRequired[ToolUseBlockDeltaTypeDef]
|
|
1103
|
-
toolResult: NotRequired[
|
|
1147
|
+
toolResult: NotRequired[list[ToolResultBlockDeltaTypeDef]]
|
|
1104
1148
|
reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
|
|
1105
1149
|
citation: NotRequired[CitationsDeltaTypeDef]
|
|
1106
1150
|
|
|
@@ -1125,11 +1169,12 @@ ImageBlockTypeDef = TypedDict(
|
|
|
1125
1169
|
|
|
1126
1170
|
|
|
1127
1171
|
class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
1128
|
-
json: NotRequired[
|
|
1172
|
+
json: NotRequired[dict[str, Any]]
|
|
1129
1173
|
text: NotRequired[str]
|
|
1130
1174
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
1131
1175
|
document: NotRequired[DocumentBlockOutputTypeDef]
|
|
1132
1176
|
video: NotRequired[VideoBlockOutputTypeDef]
|
|
1177
|
+
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1133
1178
|
|
|
1134
1179
|
|
|
1135
1180
|
VideoBlockTypeDef = TypedDict(
|
|
@@ -1142,8 +1187,8 @@ VideoBlockTypeDef = TypedDict(
|
|
|
1142
1187
|
|
|
1143
1188
|
|
|
1144
1189
|
class GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef(TypedDict):
|
|
1145
|
-
options: NotRequired[
|
|
1146
|
-
differenceScenarios: NotRequired[
|
|
1190
|
+
options: NotRequired[list[GuardrailAutomatedReasoningTranslationOptionTypeDef]]
|
|
1191
|
+
differenceScenarios: NotRequired[list[GuardrailAutomatedReasoningScenarioTypeDef]]
|
|
1147
1192
|
|
|
1148
1193
|
|
|
1149
1194
|
class ToolConfigurationTypeDef(TypedDict):
|
|
@@ -1180,7 +1225,7 @@ ToolResultBlockOutputTypeDef = TypedDict(
|
|
|
1180
1225
|
"ToolResultBlockOutputTypeDef",
|
|
1181
1226
|
{
|
|
1182
1227
|
"toolUseId": str,
|
|
1183
|
-
"content":
|
|
1228
|
+
"content": list[ToolResultContentBlockOutputTypeDef],
|
|
1184
1229
|
"status": NotRequired[ToolResultStatusType],
|
|
1185
1230
|
"type": NotRequired[str],
|
|
1186
1231
|
},
|
|
@@ -1194,8 +1239,8 @@ class GuardrailAutomatedReasoningFindingTypeDef(TypedDict):
|
|
|
1194
1239
|
satisfiable: NotRequired[GuardrailAutomatedReasoningSatisfiableFindingTypeDef]
|
|
1195
1240
|
impossible: NotRequired[GuardrailAutomatedReasoningImpossibleFindingTypeDef]
|
|
1196
1241
|
translationAmbiguous: NotRequired[GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef]
|
|
1197
|
-
tooComplex: NotRequired[
|
|
1198
|
-
noTranslations: NotRequired[
|
|
1242
|
+
tooComplex: NotRequired[dict[str, Any]]
|
|
1243
|
+
noTranslations: NotRequired[dict[str, Any]]
|
|
1199
1244
|
|
|
1200
1245
|
|
|
1201
1246
|
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
@@ -1219,6 +1264,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
1219
1264
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1220
1265
|
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
1221
1266
|
citationsContent: NotRequired[CitationsContentBlockOutputTypeDef]
|
|
1267
|
+
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1222
1268
|
|
|
1223
1269
|
|
|
1224
1270
|
class ToolResultContentBlockTypeDef(TypedDict):
|
|
@@ -1227,10 +1273,11 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
1227
1273
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
1228
1274
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
1229
1275
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
1276
|
+
searchResult: NotRequired[SearchResultBlockUnionTypeDef]
|
|
1230
1277
|
|
|
1231
1278
|
|
|
1232
1279
|
class GuardrailAutomatedReasoningPolicyAssessmentTypeDef(TypedDict):
|
|
1233
|
-
findings: NotRequired[
|
|
1280
|
+
findings: NotRequired[list[GuardrailAutomatedReasoningFindingTypeDef]]
|
|
1234
1281
|
|
|
1235
1282
|
|
|
1236
1283
|
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
@@ -1240,7 +1287,7 @@ GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
|
1240
1287
|
|
|
1241
1288
|
class MessageOutputTypeDef(TypedDict):
|
|
1242
1289
|
role: ConversationRoleType
|
|
1243
|
-
content:
|
|
1290
|
+
content: list[ContentBlockOutputTypeDef]
|
|
1244
1291
|
|
|
1245
1292
|
|
|
1246
1293
|
ToolResultContentBlockUnionTypeDef = Union[
|
|
@@ -1283,16 +1330,16 @@ class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
|
1283
1330
|
usage: GuardrailUsageTypeDef
|
|
1284
1331
|
action: GuardrailActionType
|
|
1285
1332
|
actionReason: str
|
|
1286
|
-
outputs:
|
|
1287
|
-
assessments:
|
|
1333
|
+
outputs: list[GuardrailOutputContentTypeDef]
|
|
1334
|
+
assessments: list[GuardrailAssessmentTypeDef]
|
|
1288
1335
|
guardrailCoverage: GuardrailCoverageTypeDef
|
|
1289
1336
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
1290
1337
|
|
|
1291
1338
|
|
|
1292
1339
|
class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
1293
|
-
modelOutput: NotRequired[
|
|
1294
|
-
inputAssessment: NotRequired[
|
|
1295
|
-
outputAssessments: NotRequired[
|
|
1340
|
+
modelOutput: NotRequired[list[str]]
|
|
1341
|
+
inputAssessment: NotRequired[dict[str, GuardrailAssessmentTypeDef]]
|
|
1342
|
+
outputAssessments: NotRequired[dict[str, list[GuardrailAssessmentTypeDef]]]
|
|
1296
1343
|
actionReason: NotRequired[str]
|
|
1297
1344
|
|
|
1298
1345
|
|
|
@@ -1320,6 +1367,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1320
1367
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1321
1368
|
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
1322
1369
|
citationsContent: NotRequired[CitationsContentBlockUnionTypeDef]
|
|
1370
|
+
searchResult: NotRequired[SearchResultBlockUnionTypeDef]
|
|
1323
1371
|
|
|
1324
1372
|
|
|
1325
1373
|
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
@@ -1327,6 +1375,7 @@ class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
|
1327
1375
|
metrics: ConverseStreamMetricsTypeDef
|
|
1328
1376
|
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
1329
1377
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1378
|
+
serviceTier: NotRequired[ServiceTierTypeDef]
|
|
1330
1379
|
|
|
1331
1380
|
|
|
1332
1381
|
class ConverseResponseTypeDef(TypedDict):
|
|
@@ -1334,9 +1383,10 @@ class ConverseResponseTypeDef(TypedDict):
|
|
|
1334
1383
|
stopReason: StopReasonType
|
|
1335
1384
|
usage: TokenUsageTypeDef
|
|
1336
1385
|
metrics: ConverseMetricsTypeDef
|
|
1337
|
-
additionalModelResponseFields:
|
|
1386
|
+
additionalModelResponseFields: dict[str, Any]
|
|
1338
1387
|
trace: ConverseTraceTypeDef
|
|
1339
1388
|
performanceConfig: PerformanceConfigurationTypeDef
|
|
1389
|
+
serviceTier: ServiceTierTypeDef
|
|
1340
1390
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
1341
1391
|
|
|
1342
1392
|
|
|
@@ -1382,6 +1432,7 @@ class ConverseRequestTypeDef(TypedDict):
|
|
|
1382
1432
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
1383
1433
|
requestMetadata: NotRequired[Mapping[str, str]]
|
|
1384
1434
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1435
|
+
serviceTier: NotRequired[ServiceTierTypeDef]
|
|
1385
1436
|
|
|
1386
1437
|
|
|
1387
1438
|
class ConverseStreamRequestTypeDef(TypedDict):
|
|
@@ -1396,11 +1447,14 @@ class ConverseStreamRequestTypeDef(TypedDict):
|
|
|
1396
1447
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
1397
1448
|
requestMetadata: NotRequired[Mapping[str, str]]
|
|
1398
1449
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1450
|
+
serviceTier: NotRequired[ServiceTierTypeDef]
|
|
1399
1451
|
|
|
1400
1452
|
|
|
1401
1453
|
class ConverseTokensRequestTypeDef(TypedDict):
|
|
1402
1454
|
messages: NotRequired[Sequence[MessageUnionTypeDef]]
|
|
1403
1455
|
system: NotRequired[Sequence[SystemContentBlockTypeDef]]
|
|
1456
|
+
toolConfig: NotRequired[ToolConfigurationTypeDef]
|
|
1457
|
+
additionalModelRequestFields: NotRequired[Mapping[str, Any]]
|
|
1404
1458
|
|
|
1405
1459
|
|
|
1406
1460
|
class CountTokensInputTypeDef(TypedDict):
|